The Hive - Reverse Proxy config

This commit is contained in:
Mike Reeves
2019-03-20 14:37:07 -04:00
parent c126afe3f7
commit e7964f3a40
3 changed files with 24 additions and 5 deletions

View File

@@ -137,8 +137,7 @@ http {
} }
location /thehive/ { location /thehive/ {
rewrite /thehive/(.*) /$1 break; proxy_pass http://{{ masterip }}:9000/thehive/;
proxy_pass http://{{ masterip }}:9000/;
proxy_read_timeout 90; proxy_read_timeout 90;
proxy_connect_timeout 90; proxy_connect_timeout 90;
proxy_set_header Host $host; proxy_set_header Host $host;
@@ -148,6 +147,16 @@ http {
} }
location /soctopus/ {
proxy_pass http://{{ masterip }}:7000/;
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; error_page 404 /404.html;
location = /40x.html { location = /40x.html {
} }

View File

@@ -137,8 +137,18 @@ http {
} }
location /thehive/ { location /thehive/ {
rewrite /thehive/(.*) /$1 break; proxy_pass http://{{ masterip }}:9000/thehive/;
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 "";
}
location /soctopus/ {
proxy_pass http://{{ masterip }}:7000/;
proxy_read_timeout 90; proxy_read_timeout 90;
proxy_connect_timeout 90; proxy_connect_timeout 90;
proxy_set_header Host $host; proxy_set_header Host $host;

View File

@@ -4,7 +4,7 @@
# The secret key is used to secure cryptographic functions. # The secret key is used to secure cryptographic functions.
# WARNING: If you deploy your application on several servers, make sure to use the same key. # WARNING: If you deploy your application on several servers, make sure to use the same key.
play.http.secret.key="letsdewdis" play.http.secret.key="letsdewdis"
play.http.context=/thehive/ play.http.context=\/thehive\/
# Elasticsearch # Elasticsearch
search { search {