2023-02-27 22:48:27 +01:00
|
|
|
# Custom variables initialisation
|
|
|
|
# (can overwrite variables present in Makefile.config)
|
|
|
|
|
|
|
|
# Application
|
2023-03-02 20:27:53 +01:00
|
|
|
FLASK_APP=fittrackee
|
|
|
|
FLASK_SKIP_DOTENV=1
|
|
|
|
# HOST=
|
|
|
|
PORT=__PORT__
|
|
|
|
# APP_SETTINGS=fittrackee.config.ProductionConfig
|
|
|
|
APP_SECRET_KEY='__KEY__'
|
|
|
|
# APP_WORKERS=
|
|
|
|
APP_LOG=/var/log/__APP__/__APP__.log
|
2023-03-05 20:44:48 +01:00
|
|
|
UPLOAD_FOLDER=__DATA_DIR__
|
2023-02-27 22:48:27 +01:00
|
|
|
|
|
|
|
# PostgreSQL
|
2023-03-02 20:27:53 +01:00
|
|
|
DATABASE_URL=postgresql://__DB_USER__:__DB_PWD__@:5432/__DB_NAME__
|
|
|
|
# DATABASE_DISABLE_POOLING=
|
2023-02-27 22:48:27 +01:00
|
|
|
|
|
|
|
# Redis (required for API rate limits and email sending)
|
2023-09-14 19:16:04 +02:00
|
|
|
REDIS_URL=redis://127.0.0.1:6379/__REDIS_DB__
|
2023-02-27 22:48:27 +01:00
|
|
|
|
|
|
|
# API rate limits
|
2023-03-02 20:27:53 +01:00
|
|
|
# API_RATE_LIMITS="300 per 5 minutes"
|
2023-02-27 22:48:27 +01:00
|
|
|
|
|
|
|
# Emails
|
2023-09-03 15:15:14 +02:00
|
|
|
UI_URL=__DOMAIN__
|
2023-09-05 20:52:12 +02:00
|
|
|
EMAIL_URL=smtp://__APP__:__MAIL_PWD__@__DOMAIN__:587/?tls=True
|
2023-09-05 19:26:59 +02:00
|
|
|
SENDER_EMAIL=__APP__@__DOMAIN__
|
2023-03-02 20:27:53 +01:00
|
|
|
# WORKERS_PROCESSES=
|
2023-02-27 22:48:27 +01:00
|
|
|
|
|
|
|
# Workouts
|
2023-09-14 19:03:30 +02:00
|
|
|
TILE_SERVER_URL=https://tile.openstreetmap.org/{z}/{x}/{y}.png
|
2023-03-08 13:53:01 +01:00
|
|
|
MAP_ATTRIBUTION='© <a href="http://www.openstreetmap.org/copyright" target="_blank" rel="noopener noreferrer">OpenStreetMap</a> contributors'
|
2023-03-08 13:29:32 +01:00
|
|
|
DEFAULT_STATICMAP=False
|
|
|
|
STATICMAP_SUBDOMAINS=''
|
2023-02-27 22:48:27 +01:00
|
|
|
|
|
|
|
# Weather
|
|
|
|
# available weather API providers: darksky, visualcrossing
|
2023-03-05 20:02:47 +01:00
|
|
|
WEATHER_API_PROVIDER=__WEATHER_PROVIDER__
|
|
|
|
WEATHER_API_KEY=__WEATHER_KEY__
|
2023-02-27 22:48:27 +01:00
|
|
|
|