update cors ????

This commit is contained in:
Baptiste Peupier 2022-02-02 10:02:04 +01:00
parent c4a6ff1312
commit aaa526756b
3 changed files with 1 additions and 12 deletions

View file

@ -1,6 +1,4 @@
print("Import backend")
from application import create_app
print("Import os")
import os
app = create_app(os.environ.get('FLASK_ENV'))

View file

@ -13,7 +13,7 @@ class Config(object):
FLASK_ENV = os.environ.get('FLASK_ENV', None)
FLASK_RUN_PORT = os.environ.get('FLASK_RUN_PORT', 5000)
API_URL = os.environ.get('API_URL', 'http://127.0.0.1:5001/api/')
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)

View file

@ -39,13 +39,4 @@ http {
}
}
# server {
# listen 80;
# access_log logs/access.log;
# location /api {
# proxy_pass http://flask-frontend;
# }
# }
}