Docker Test with Nginx

This commit is contained in:
Yûki VACHOT 2022-02-01 16:27:57 +01:00
parent 886f22ac85
commit 1a3bee1846
14 changed files with 70 additions and 34 deletions

32
frontend/config.py Normal file
View file

@ -0,0 +1,32 @@
import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config(object):
DEBUG = False
TESTING = False
CSRF_ENABLED = True
FLASK_APP = os.environ.get('FLASK_APP', None)
FLASK_ENV = os.environ.get('FLASK_ENV', None)
FLASK_RUN_PORT = os.environ.get('FLASK_RUN_PORT', 4200)
API_URL = os.environ.get('API_URL', 'http://127.0.0.1:5000/api/')
SECRET_KEY = os.environ.get('SECRET_KEY', 'default_secret_key')
ALLOW_ORIGIN = os.environ.get('ALLOW_ORIGIN', None)
class ProductionConfig(Config):
DEBUG = False
API_URL = os.environ.get('API_URL', 'http://10.1.2.10:5000/api/')
class TestingConfig(Config):
TESTING = True
class DevelopmentConfig(Config):
DEVELOPMENT = True
DEBUG = True