Commit 8fc000ea2a42149d6cd686e9707ac4684dfba23a

Authored by Andrew Buss
1 parent f53a10aaff
Exists in master

add splunk to nginx conf

Showing 1 changed file with 16 additions and 5 deletions Side-by-side Diff

nginxconf/flashy.cards View file @ 8fc000e
... ... @@ -4,7 +4,7 @@
4 4 }
5 5  
6 6 upstream websocket_production {
7   - server localhost:7001;
  7 + server localhost:7001;
8 8 }
9 9  
10 10 server {
... ... @@ -35,10 +35,10 @@
35 35 }
36 36  
37 37 location /ws/ {
38   - proxy_http_version 1.1;
39   - proxy_set_header Upgrade $http_upgrade;
40   - proxy_set_header Connection "upgrade";
41   - proxy_pass http://websocket_production;
  38 + proxy_http_version 1.1;
  39 + proxy_set_header Upgrade $http_upgrade;
  40 + proxy_set_header Connection "upgrade";
  41 + proxy_pass http://websocket_production;
42 42 }
43 43  
44 44 location ~ /(api|admin|api-auth)/ {
... ... @@ -64,6 +64,17 @@
64 64 proxy_set_header X-Forwarded-Proto $scheme;
65 65 proxy_read_timeout 90;
66 66 }
  67 +
  68 + location ^~ /splunk {
  69 + proxy_pass http://localhost:8000;
  70 + proxy_redirect http://localhost:8000 $scheme://flashy.cards;
  71 + proxy_set_header Host $host;
  72 + proxy_set_header X-Real-IP $remote_addr;
  73 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  74 + proxy_set_header X-Forwarded-Proto $scheme;
  75 + proxy_read_timeout 90;
  76 + }
  77 +
67 78 ssl_certificate /etc/nginx/ssl/bundle.crt;
68 79 ssl_certificate_key /etc/nginx/ssl/nginx.key;
69 80 ssl_protocols TLSv1 TLSv1.1 TLSv1.2;