Core Module - Add rewrites

This commit is contained in:
Mike Reeves
2019-07-17 10:23:17 -04:00
parent 582713d027
commit b83efb51ef
2 changed files with 14 additions and 1 deletions

View File

@@ -116,7 +116,7 @@ nginxtmp:
# Start the core docker # Start the core docker
so-coreimage: so-coreimage:
cmd.run: cmd.run:
- name: docker pull --disable-content-trust=false soshybridhunter/so-core:HH1.0.7 - name: docker pull --disable-content-trust=false soshybridhunter/so-core:HH1.1.0
so-core: so-core:
docker_container.running: docker_container.running:

View File

@@ -164,6 +164,7 @@ http {
proxy_set_header Proxy ""; proxy_set_header Proxy "";
} }
location /sensoroni/ { location /sensoroni/ {
auth_basic "Security Onion"; auth_basic "Security Onion";
auth_basic_user_file /opt/so/conf/nginx/.htpasswd; auth_basic_user_file /opt/so/conf/nginx/.htpasswd;
@@ -177,6 +178,18 @@ http {
} }
location /kibana/app/sensoroni/ {
rewrite ^/kibana/app/sensoroni/(.*) /sensoroni/$1 permanent;
}
location /kibana/app/fleet/ {
rewrite ^/kibana/app/fleet/(.*) /fleet/$1 permanent;
}
location /kibana/app/soctopus/ {
rewrite ^/kibana/app/soctopus/(.*) /soctopus/$1 permanent;
}
location /sensoroniagents/ { location /sensoroniagents/ {
proxy_pass http://{{ masterip }}:9822/; proxy_pass http://{{ masterip }}:9822/;
proxy_read_timeout 90; proxy_read_timeout 90;