mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 01:32:47 +01:00
Update all nginx configs
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
{%- if ISAIRGAP is sameas true -%}
|
{%- if ISAIRGAP is sameas true -%}
|
||||||
--merged=/opt/so/rules/nids/all.rules
|
--merged=/opt/so/rules/nids/all.rules
|
||||||
--local=/opt/so/rules/nids/local.rules
|
--local=/opt/so/rules/nids/local.rules
|
||||||
--url=http://{{ MANAGERIP }}/repo/rules/emerging-all.rules
|
--url=http://{{ MANAGERIP }}:7788/rules/emerging-all.rules
|
||||||
--disable=/opt/so/idstools/etc/disable.conf
|
--disable=/opt/so/idstools/etc/disable.conf
|
||||||
--enable=/opt/so/idstools/etc/enable.conf
|
--enable=/opt/so/idstools/etc/enable.conf
|
||||||
--modify=/opt/so/idstools/etc/modify.conf
|
--modify=/opt/so/idstools/etc/modify.conf
|
||||||
|
|||||||
@@ -67,6 +67,23 @@ http {
|
|||||||
server_name _;
|
server_name _;
|
||||||
return 301 https://$host$request_uri;
|
return 301 https://$host$request_uri;
|
||||||
}
|
}
|
||||||
|
{%- if ISAIRGAP is sameas true %}
|
||||||
|
server {
|
||||||
|
listen 7788;
|
||||||
|
server_name _;
|
||||||
|
root /opt/socore/html/repo;
|
||||||
|
location /rules/ {
|
||||||
|
allow all;
|
||||||
|
sendfile on;
|
||||||
|
sendfile_max_chunk 1m;
|
||||||
|
autoindex on;
|
||||||
|
autoindex_exact_size off;
|
||||||
|
autoindex_format html;
|
||||||
|
autoindex_localtime on;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{%- endif %}
|
||||||
|
|
||||||
|
|
||||||
{% if FLEET_MANAGER %}
|
{% if FLEET_MANAGER %}
|
||||||
server {
|
server {
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ http {
|
|||||||
server {
|
server {
|
||||||
listen 7788;
|
listen 7788;
|
||||||
server_name _;
|
server_name _;
|
||||||
root /opt/socore/html/repo
|
root /opt/socore/html/repo;
|
||||||
location /rules/ {
|
location /rules/ {
|
||||||
allow all;
|
allow all;
|
||||||
sendfile on;
|
sendfile on;
|
||||||
|
|||||||
@@ -67,6 +67,23 @@ http {
|
|||||||
server_name _;
|
server_name _;
|
||||||
return 301 https://$host$request_uri;
|
return 301 https://$host$request_uri;
|
||||||
}
|
}
|
||||||
|
{%- if ISAIRGAP is sameas true %}
|
||||||
|
server {
|
||||||
|
listen 7788;
|
||||||
|
server_name _;
|
||||||
|
root /opt/socore/html/repo;
|
||||||
|
location /rules/ {
|
||||||
|
allow all;
|
||||||
|
sendfile on;
|
||||||
|
sendfile_max_chunk 1m;
|
||||||
|
autoindex on;
|
||||||
|
autoindex_exact_size off;
|
||||||
|
autoindex_format html;
|
||||||
|
autoindex_localtime on;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{%- endif %}
|
||||||
|
|
||||||
|
|
||||||
{% if FLEET_MANAGER %}
|
{% if FLEET_MANAGER %}
|
||||||
server {
|
server {
|
||||||
|
|||||||
@@ -66,6 +66,23 @@ http {
|
|||||||
server_name _;
|
server_name _;
|
||||||
return 301 https://$host$request_uri;
|
return 301 https://$host$request_uri;
|
||||||
}
|
}
|
||||||
|
{%- if ISAIRGAP is sameas true %}
|
||||||
|
server {
|
||||||
|
listen 7788;
|
||||||
|
server_name _;
|
||||||
|
root /opt/socore/html/repo;
|
||||||
|
location /rules/ {
|
||||||
|
allow all;
|
||||||
|
sendfile on;
|
||||||
|
sendfile_max_chunk 1m;
|
||||||
|
autoindex on;
|
||||||
|
autoindex_exact_size off;
|
||||||
|
autoindex_format html;
|
||||||
|
autoindex_localtime on;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{%- endif %}
|
||||||
|
|
||||||
|
|
||||||
{% if FLEET_MANAGER %}
|
{% if FLEET_MANAGER %}
|
||||||
server {
|
server {
|
||||||
|
|||||||
@@ -83,6 +83,9 @@ so-nginx:
|
|||||||
- port_bindings:
|
- port_bindings:
|
||||||
- 80:80
|
- 80:80
|
||||||
- 443:443
|
- 443:443
|
||||||
|
{% if ISAIRGAP is sameas true %}
|
||||||
|
- 7788:7788
|
||||||
|
{% enfid %}
|
||||||
{%- if FLEETMANAGER or FLEETNODE %}
|
{%- if FLEETMANAGER or FLEETNODE %}
|
||||||
- 8090:8090
|
- 8090:8090
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user