2021-01-31 11:30:37 +01:00
|
|
|
# Custom variables initialisation
|
|
|
|
|
|
|
|
# Application
|
2023-03-11 20:33:06 +01:00
|
|
|
export FLASK_DEBUG=1
|
2021-01-31 11:30:37 +01:00
|
|
|
export FLASK_APP=fittrackee/__main__.py
|
2022-02-13 14:34:24 +01:00
|
|
|
export FLASK_SKIP_DOTENV=1
|
2021-01-31 11:30:37 +01:00
|
|
|
export APP_SETTINGS=fittrackee.config.DevelopmentConfig
|
|
|
|
export APP_SECRET_KEY='just for test'
|
|
|
|
# export APP_WORKERS=
|
|
|
|
export APP_LOG=fittrackee.log
|
2021-10-18 17:54:20 +02:00
|
|
|
export UPLOAD_FOLDER=/usr/src/app/uploads
|
2021-01-31 11:30:37 +01:00
|
|
|
|
2022-09-17 19:36:03 +02:00
|
|
|
# PostgreSQL
|
2021-04-06 13:15:26 +02:00
|
|
|
export DATABASE_URL=postgresql://fittrackee:fittrackee@fittrackee-db:5432/fittrackee
|
|
|
|
export DATABASE_TEST_URL=postgresql://fittrackee:fittrackee@fittrackee-db:5432/fittrackee_test
|
2021-07-17 12:33:11 +02:00
|
|
|
# export DATABASE_DISABLE_POOLING=
|
2021-01-31 11:30:37 +01:00
|
|
|
|
2022-09-17 19:36:03 +02:00
|
|
|
# Redis (required for API rate limits and email sending)
|
|
|
|
export REDIS_URL=redis://redis:6379
|
|
|
|
|
|
|
|
# API rate limits
|
2022-12-31 18:38:44 +01:00
|
|
|
# export API_RATE_LIMITS="300 per 5 minutes"
|
2022-09-17 19:36:03 +02:00
|
|
|
|
2021-01-31 11:30:37 +01:00
|
|
|
# Emails
|
|
|
|
export UI_URL=http://0.0.0.0:5000
|
2021-11-06 22:18:38 +01:00
|
|
|
# For development:
|
|
|
|
# export UI_URL=http://0.0.0.0:3000
|
2022-01-01 11:04:08 +01:00
|
|
|
export EMAIL_URL=smtp://mail:1025
|
2021-01-31 11:30:37 +01:00
|
|
|
export SENDER_EMAIL=fittrackee@example.com
|
|
|
|
export WORKERS_PROCESSES=2
|
|
|
|
|
2021-07-16 21:10:23 +02:00
|
|
|
# Workouts
|
2021-07-17 12:33:11 +02:00
|
|
|
# export TILE_SERVER_URL=
|
2022-12-31 18:38:44 +01:00
|
|
|
# export STATICMAP_SUBDOMAINS=
|
2021-07-17 12:33:11 +02:00
|
|
|
# export MAP_ATTRIBUTION=
|
|
|
|
# export DEFAULT_STATICMAP=False
|
2022-12-31 18:38:44 +01:00
|
|
|
|
|
|
|
# Weather
|
|
|
|
# available weather API providers: darksky, visualcrossing
|
|
|
|
# export WEATHER_API_PROVIDER=
|
2021-07-17 12:33:11 +02:00
|
|
|
# export WEATHER_API_KEY=
|