mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 22:43:34 -07:00
docs update
This commit is contained in:
parent
95b6ab86d0
commit
ad4bb0192b
5 changed files with 38 additions and 31 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
## Getting a Token
|
## Getting a Token
|
||||||
|
|
||||||
Currently Mealie doesn't support creating a long-live token. You can however get a token from the API. This example was pulled from the automatic API documentation provided by Mealie.
|
Mealie supports long-live api tokens in the user frontend. In you profile section you can use the
|
||||||
|
|
||||||
### Curl
|
### Curl
|
||||||
```bash
|
```bash
|
||||||
|
|
|
@ -7,7 +7,6 @@ To deploy mealie on your local network it is highly recommended to use docker to
|
||||||
[Mealie on Dockerhub](https://hub.docker.com/r/hkotel/mealie)
|
[Mealie on Dockerhub](https://hub.docker.com/r/hkotel/mealie)
|
||||||
|
|
||||||
- linux/amd64
|
- linux/amd64
|
||||||
- linux/arm/v7
|
|
||||||
- linux/arm64
|
- linux/arm64
|
||||||
|
|
||||||
|
|
||||||
|
@ -76,20 +75,21 @@ services:
|
||||||
|
|
||||||
## Env Variables
|
## Env Variables
|
||||||
|
|
||||||
| Variables | Default | Description |
|
| Variables | Default | Description |
|
||||||
| ----------------- | ------------------ | ----------------------------------------------------------------------------------- |
|
| ----------------- | --------------------- | ----------------------------------------------------------------------------------- |
|
||||||
| DEFAULT_GROUP | Home | The default group for users |
|
| DEFAULT_GROUP | Home | The default group for users |
|
||||||
| DEFAULT_EMAIL | changeme@email.com | The default username for the superuser |
|
| DEFAULT_EMAIL | changeme@email.com | The default username for the superuser |
|
||||||
| DB_ENGINE | sqlite | Optional: 'sqlite', 'postgres' |
|
| BASE_URL | http://localhost:8080 | Used for Notifications |
|
||||||
| POSTGRES_USER | mealie | Postgres database user |
|
| DB_ENGINE | sqlite | Optional: 'sqlite', 'postgres' |
|
||||||
| POSTGRES_PASSWORD | mealie | Postgres database password |
|
| POSTGRES_USER | mealie | Postgres database user |
|
||||||
| POSTGRES_SERVER | postgres | Postgres database server address |
|
| POSTGRES_PASSWORD | mealie | Postgres database password |
|
||||||
| POSTGRES_PORT | 5432 | Postgres database port |
|
| POSTGRES_SERVER | postgres | Postgres database server address |
|
||||||
| POSTGRES_DB | mealie | Postgres database name |
|
| POSTGRES_PORT | 5432 | Postgres database port |
|
||||||
| TOKEN_TIME | 2 | The time in hours that a login/auth token is valid |
|
| POSTGRES_DB | mealie | Postgres database name |
|
||||||
| API_PORT | 9000 | The port exposed by backend API. **do not change this if you're running in docker** |
|
| TOKEN_TIME | 2 | The time in hours that a login/auth token is valid |
|
||||||
| API_DOCS | True | Turns on/off access to the API documentation locally. |
|
| API_PORT | 9000 | The port exposed by backend API. **do not change this if you're running in docker** |
|
||||||
| TZ | UTC | Must be set to get correct date/time on the server |
|
| API_DOCS | True | Turns on/off access to the API documentation locally. |
|
||||||
|
| TZ | UTC | Must be set to get correct date/time on the server |
|
||||||
|
|
||||||
|
|
||||||
!!! tip "Fatal Python error: init_interp_main: can't initialize time"
|
!!! tip "Fatal Python error: init_interp_main: can't initialize time"
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -110,15 +110,19 @@ export default {
|
||||||
this.$refs.deleteRecipieConfirm.open();
|
this.$refs.deleteRecipieConfirm.open();
|
||||||
break;
|
break;
|
||||||
case "share":
|
case "share":
|
||||||
if (navigator.share){
|
if (navigator.share) {
|
||||||
navigator.share({
|
navigator
|
||||||
title: this.name,
|
.share({
|
||||||
text: this.recipeText,
|
title: this.name,
|
||||||
url: this.recipeURL,
|
text: this.recipeText,
|
||||||
})
|
url: this.recipeURL,
|
||||||
.then(() => console.log('Successful share'))
|
})
|
||||||
.catch((error) => console.log('WebShareAPI not supported', error))
|
.then(() => console.log("Successful share"))
|
||||||
} else this.updateClipboard();
|
.catch(error => {
|
||||||
|
console.log("WebShareAPI not supported", error);
|
||||||
|
this.updateClipboard();
|
||||||
|
});
|
||||||
|
} else this.updateClipboard();
|
||||||
break;
|
break;
|
||||||
case "edit":
|
case "edit":
|
||||||
this.$router.push(`/recipe/${this.slug}` + "?edit=true");
|
this.$router.push(`/recipe/${this.slug}` + "?edit=true");
|
||||||
|
@ -138,10 +142,13 @@ export default {
|
||||||
updateClipboard() {
|
updateClipboard() {
|
||||||
const copyText = this.recipeURL;
|
const copyText = this.recipeURL;
|
||||||
navigator.clipboard.writeText(copyText).then(
|
navigator.clipboard.writeText(copyText).then(
|
||||||
() => { console.log("Copied to Clipboard", copyText);
|
() => {
|
||||||
utils.notify.success("Copied to Clipboard");},
|
console.log("Copied to Clipboard", copyText);
|
||||||
() => console.log("Copied Failed", copyText));
|
utils.notify.success("Copied to Clipboard");
|
||||||
|
},
|
||||||
|
() => console.log("Copied Failed", copyText)
|
||||||
|
);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -215,7 +215,7 @@
|
||||||
"ingredient": "Ingredient",
|
"ingredient": "Ingredient",
|
||||||
"ingredients": "Ingredients",
|
"ingredients": "Ingredients",
|
||||||
"instructions": "Instructions",
|
"instructions": "Instructions",
|
||||||
"share-recipe-message": "I wanted to share you my {0} recipe.",
|
"share-recipe-message": "I wanted to share my {0} recipe with you.",
|
||||||
"key-name-required": "Key Name Required",
|
"key-name-required": "Key Name Required",
|
||||||
"landscape-view-coming-soon": "Landscape View (Coming Soon)",
|
"landscape-view-coming-soon": "Landscape View (Coming Soon)",
|
||||||
"milligrams": "milligrams",
|
"milligrams": "milligrams",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue