diff --git a/nginxconf/flashy.cards b/nginxconf/flashy.cards index 6bf86c6..0822748 100644 --- a/nginxconf/flashy.cards +++ b/nginxconf/flashy.cards @@ -4,7 +4,7 @@ upstream backend_production { } upstream websocket_production { - server localhost:7001; + server localhost:7001; } server { @@ -35,10 +35,10 @@ server { } location /ws/ { - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - proxy_pass http://websocket_production; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_pass http://websocket_production; } location ~ /(api|admin|api-auth)/ { @@ -64,6 +64,17 @@ server { proxy_set_header X-Forwarded-Proto $scheme; proxy_read_timeout 90; } + + location ^~ /splunk { + proxy_pass http://localhost:8000; + proxy_redirect http://localhost:8000 $scheme://flashy.cards; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_read_timeout 90; + } + ssl_certificate /etc/nginx/ssl/bundle.crt; ssl_certificate_key /etc/nginx/ssl/nginx.key; ssl_protocols TLSv1 TLSv1.1 TLSv1.2;