diff --git a/LCU/Maintenance/DBInterface/django_postgresql/settings.py b/LCU/Maintenance/DBInterface/django_postgresql/settings.py index 10eb4f69a1a16f5a6b67a6dbeb0bf1bd7df33835..73648b65c68351085c152f210a9d7b1a4c39e6d4 100644 --- a/LCU/Maintenance/DBInterface/django_postgresql/settings.py +++ b/LCU/Maintenance/DBInterface/django_postgresql/settings.py @@ -32,7 +32,10 @@ SECRET_KEY = 'x)5=9*2a&)32h-loh@rlt_9eyw%t$-fqao*#1j2gh^7=^bnjyy' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = os.environ.get('MDB_DEBUG', False) -ALLOWED_HOSTS = ['lofarmonitortest.control.lofar', 'localhost', '127.0.0.1'] +ALLOWED_HOSTS = ['lofarmonitortest.control.lofar', + 'lofarmonitor.control.lofar', + 'localhost', + '127.0.0.1'] # Application definition diff --git a/LCU/Maintenance/Docker/NginxProxy/nginx.conf b/LCU/Maintenance/Docker/NginxProxy/nginx.conf index 3bfae41702b8d1eb37351fdda7bf736a557ed8ba..fbcbe19d2a998b72519c64f0eeedb08e90b98dfa 100644 --- a/LCU/Maintenance/Docker/NginxProxy/nginx.conf +++ b/LCU/Maintenance/Docker/NginxProxy/nginx.conf @@ -1,14 +1,17 @@ -server { - listen 80; - server_name _; - - location /api { - proxy_pass http://lofar-maintenance-restservice:8000; - proxy_set_header Host $host; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - } - - location / { - root /opt/lofar/share/www/; - } +server{ + listen 80; + server_name _; + location / { + try_files $uri $uri/ /index.html; + root /opt/lofar/share/www; + proxy_cache_revalidate on; + } + location /api { + proxy_read_timeout 6000s; + proxy_pass http://lofar-maintenance-restservice:8000; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_pass_request_headers on; + client_max_body_size 500M; + } }