update cors ????
This commit is contained in:
parent
c4a6ff1312
commit
aaa526756b
3 changed files with 1 additions and 12 deletions
|
|
@ -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'))
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -39,13 +39,4 @@ http {
|
|||
}
|
||||
}
|
||||
|
||||
# server {
|
||||
# listen 80;
|
||||
# access_log logs/access.log;
|
||||
|
||||
# location /api {
|
||||
# proxy_pass http://flask-frontend;
|
||||
# }
|
||||
# }
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue