62 lines
1.8 KiB
TOML
62 lines
1.8 KiB
TOML
|
# Database
|
||
|
SQLALCHEMY_DATABASE_URI = "postgresql+psycopg2://postgres:postgres@db:5432/referentielsdb"
|
||
|
SQLALCHEMY_TRACK_MODIFICATIONS = false
|
||
|
|
||
|
# JWT Auth
|
||
|
JWT_SECRET_KEY = 'jwt-secret-string'
|
||
|
JWT_BLACKLIST_ENABLED = true
|
||
|
JWT_BLACKLIST_TOKEN_CHECKS = ['access', 'refresh']
|
||
|
|
||
|
# Application
|
||
|
appName = 'GeoNature-citizen' # Application name in the home page
|
||
|
DEFAULT_LANGUAGE = 'fr'
|
||
|
|
||
|
# Debug
|
||
|
DEBUG = false
|
||
|
SQLALCHEMY_DEBUG_LEVEL = 'WARNING'
|
||
|
|
||
|
# URL_APPLICATION = "http://mydomain.org" # Replace mydomain.org by your domain
|
||
|
URL_APPLICATION = "http://taxhub:5000"
|
||
|
API_TAXHUB = "http://taxhub:5000/api/"
|
||
|
# API_TAXHUB = "http://mytaxhub.org/api/" # Replace mytaxhub.org by your TaxHub url
|
||
|
|
||
|
|
||
|
|
||
|
SECRET_KEY = 'MyS3cr3tK3y'
|
||
|
CONFIRM_MAIL_SALT = 'your-secret-salt' # secret salt for corfirm mail token
|
||
|
|
||
|
MEDIA_FOLDER = 'media'
|
||
|
|
||
|
|
||
|
[RESET_PASSWD]
|
||
|
SUBJECT = "Link"
|
||
|
FROM = 'contact@geonature-citizen.fr'
|
||
|
TEXT_TEMPLATE = '''
|
||
|
Bonjour,\r\nVoici votre nouveau mot de passe :\r\n{passwd}\r\n"{app_url}
|
||
|
'''
|
||
|
HTML_TEMPLATE = '''
|
||
|
Bonjour,<br /><br />Voici votre nouveau mot de passe :<br />
|
||
|
{passwd}
|
||
|
<br /><br />"
|
||
|
<a href="{app_url}">Connexion</a>'
|
||
|
'''
|
||
|
|
||
|
[CONFIRM_EMAIL]
|
||
|
SUBJECT = "Activez votre compte"
|
||
|
FROM = 'contact@geonature-citizen.fr'
|
||
|
HTML_TEMPLATE = '''<p> Bonjour,</p><br /><p>Nous vous confirmons que votre compte a bien été créé.</p>
|
||
|
<p> Afin d'activer votre compte veuillez <a href="{activate_url}">cliquer ici.</a>
|
||
|
<p>Nous vous souhaitons la bienvenue sur notre site.</p><br />
|
||
|
<p>Bien à vous.</p>
|
||
|
'''
|
||
|
|
||
|
[MAIL]
|
||
|
MAIL_USE_SSL = false
|
||
|
MAIL_STARTTLS = true
|
||
|
MAIL_HOST = 'smtpd host'
|
||
|
MAIL_PORT = 493 # mandatory SSL port
|
||
|
MAIL_AUTH_LOGIN = 'smtpd/relay host username'
|
||
|
MAIL_AUTH_PASSWD = 'smtpd/relay host password'
|
||
|
|
||
|
|
||
|
# API flasgger main config
|