mirror of
https://github.com/joaovitoriasilva/endurain.git
synced 2026-01-09 15:57:59 -05:00
Update env and compose examples, fix distance formatting
Improved comments and guidance in .env.example for DB variables, clarified volume path in docker-compose.yml.example #336 Fixed formatDistanceRaw usage in UserGoalsStatsComponent.vue by adding the missing argument.
This commit is contained in:
10
.env.example
10
.env.example
@@ -2,15 +2,17 @@
|
|||||||
# These are just the variable you have to set to be up and running.
|
# These are just the variable you have to set to be up and running.
|
||||||
# There is many more variable you could set. Check them out here: https://docs.endurain.com/getting-started/advanced-started/#supported-environment-variables
|
# There is many more variable you could set. Check them out here: https://docs.endurain.com/getting-started/advanced-started/#supported-environment-variables
|
||||||
|
|
||||||
DB_PASSWORD=changeme
|
DB_PASSWORD=changeme # Set a strong password here. Check if there are no trailing whitespaces in the beginning and end. Must be the same as POSTGRES_PASSWORD
|
||||||
POSTGRES_PASSWORD=changeme
|
POSTGRES_PASSWORD=changeme # Must be the same as DB_PASSWORD
|
||||||
SECRET_KEY=changeme
|
SECRET_KEY=changeme
|
||||||
FERNET_KEY=changeme
|
FERNET_KEY=changeme
|
||||||
TZ=Europe/Lisbon
|
TZ=Europe/Lisbon
|
||||||
ENDURAIN_HOST=https://endurain.example.com
|
ENDURAIN_HOST=https://endurain.example.com
|
||||||
BEHIND_PROXY=true
|
BEHIND_PROXY=true
|
||||||
POSTGRES_DB=endurain
|
POSTGRES_DB=endurain # If you change this, you also have to change DB_DATABASE
|
||||||
POSTGRES_USER=endurain
|
# DB_DATABASE=endurain # Uncomment and set it to the same as POSTGRES_DB if you change it
|
||||||
|
POSTGRES_USER=endurain # If you change this, you also have to change DB_USER
|
||||||
|
# DB_USER=endurain # Uncomment and set it to the same as POSTGRES_USER if you change it
|
||||||
PGDATA=/var/lib/postgresql/data/pgdata
|
PGDATA=/var/lib/postgresql/data/pgdata
|
||||||
|
|
||||||
# Email configuration (for password reset functionality)
|
# Email configuration (for password reset functionality)
|
||||||
|
|||||||
@@ -27,5 +27,5 @@ services:
|
|||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
volumes:
|
volumes:
|
||||||
- /opt/endurain/postgres:/var/lib/postgresql/data
|
- <local_path>/endurain/postgres:/var/lib/postgresql/data
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
}}{{ goal.goal_activities_number }} {{ $t('userGoalsStatsComponent.activities') }}</span
|
}}{{ goal.goal_activities_number }} {{ $t('userGoalsStatsComponent.activities') }}</span
|
||||||
>
|
>
|
||||||
<span v-if="goal.goal_type === 3"
|
<span v-if="goal.goal_type === 3"
|
||||||
>{{ formatDistanceRaw(t, goal.total_distance, authStore.user.units)
|
>{{ formatDistanceRaw(t, goal.total_distance, authStore.user.units, false)
|
||||||
}}{{ $t('generalItems.ofWithSpaces')
|
}}{{ $t('generalItems.ofWithSpaces')
|
||||||
}}{{ formatDistanceRaw(t, goal.goal_distance, authStore.user.units) }}</span
|
}}{{ formatDistanceRaw(t, goal.goal_distance, authStore.user.units) }}</span
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user