From 6e29ad90c7d9c38d5bceb14682c5f498303e3ea1 Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Thu, 14 Mar 2019 09:35:45 -0400 Subject: [PATCH] Nginx Module - add hive support --- salt/common/nginx/nginx.conf.so-eval | 12 ++++++++++++ salt/common/nginx/nginx.conf.so-master | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/salt/common/nginx/nginx.conf.so-eval b/salt/common/nginx/nginx.conf.so-eval index 50f48497d..f137ced15 100644 --- a/salt/common/nginx/nginx.conf.so-eval +++ b/salt/common/nginx/nginx.conf.so-eval @@ -136,6 +136,18 @@ http { } + location /thehive/ { + rewrite /thehive/(.*) /$1 break; + proxy_pass http://{{ masterip }}:9000/; + proxy_read_timeout 90; + proxy_connect_timeout 90; + 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 Proxy ""; + + } + error_page 404 /404.html; location = /40x.html { } diff --git a/salt/common/nginx/nginx.conf.so-master b/salt/common/nginx/nginx.conf.so-master index 50f48497d..f73c9620a 100644 --- a/salt/common/nginx/nginx.conf.so-master +++ b/salt/common/nginx/nginx.conf.so-master @@ -136,6 +136,18 @@ http { } + location /thehive/ { + rewrite /thehive/(.*) /$1 break; + proxy_pass http://{{ masterip }}:9000/; + proxy_read_timeout 90; + proxy_connect_timeout 90; + 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 Proxy ""; + + } + error_page 404 /404.html; location = /40x.html { }