2021-01-31 11:30:37 +01:00
|
|
|
# Custom variables initialisation
|
|
|
|
|
|
|
|
# Application
|
2021-10-16 20:16:49 +02:00
|
|
|
export FLASK_ENV=development
|
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
|
|
|
|
# export API_RATE_LIMITS=300 per 5 minutes
|
|
|
|
|
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=
|
|
|
|
# export MAP_ATTRIBUTION=
|
|
|
|
# export DEFAULT_STATICMAP=False
|
|
|
|
# export WEATHER_API_KEY=
|