Skip to content
Snippets Groups Projects
Commit ddeb4c65 authored by Mattia Mancini's avatar Mattia Mancini
Browse files

OSB-45: fix deployment small issues

parent 6e28aa66
No related branches found
No related tags found
1 merge request!89Monitoring maintenance Epic branch merge
......@@ -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
......
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;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment