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-03-02 20:27:53 +01:00
|
|
|
REDIS_URL=redis://
|
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-04 19:37:52 +02:00
|
|
|
EMAIL_URL=smtp://__APP__:__MAIL_PWD__@__MAIN_DOMAIN__:587/?tls=True
|
|
|
|
SENDER_EMAIL=__APP__@__MAIN_DOMAIN__
|
2023-03-02 20:27:53 +01:00
|
|
|
# WORKERS_PROCESSES=
|
2023-02-27 22:48:27 +01:00
|
|
|
|
|
|
|
# Workouts
|
2023-03-08 13:29:32 +01:00
|
|
|
TILE_SERVER_URL=https://{s}.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
|
|
|
|