mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-04-25 22:17:49 +02:00
common salt module - fix file perms for nginx
This commit is contained in:
+19
-3
@@ -59,6 +59,19 @@ nginxconf:
|
|||||||
- template: jinja
|
- template: jinja
|
||||||
- source: salt://common/nginx/nginx.conf.{{ grains.role }}
|
- source: salt://common/nginx/nginx.conf.{{ grains.role }}
|
||||||
|
|
||||||
|
nginxlogdir:
|
||||||
|
file.directory:
|
||||||
|
- name: /opt/so/log/nginx/
|
||||||
|
- user: 939
|
||||||
|
- group: 939
|
||||||
|
|
||||||
|
nginxtmp:
|
||||||
|
file.directory:
|
||||||
|
- name: /opt/so/tmp/nginx/tmp
|
||||||
|
- user: 939
|
||||||
|
- group: 939
|
||||||
|
- makedirs: True
|
||||||
|
|
||||||
# Start the core docker
|
# Start the core docker
|
||||||
so-core:
|
so-core:
|
||||||
docker_container.running:
|
docker_container.running:
|
||||||
@@ -68,8 +81,11 @@ so-core:
|
|||||||
- binds:
|
- binds:
|
||||||
- /opt/so:/opt/so:rw
|
- /opt/so:/opt/so:rw
|
||||||
- /opt/so/conf/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
- /opt/so/conf/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
||||||
|
- /opt/so/log/nginx/:/var/log/nginx:rw
|
||||||
|
- /opt/so/tmp/nginx/:/var/lib/nginx:rw
|
||||||
|
- /opt/so/tmp/nginx/:/run:rw
|
||||||
- network_mode: so-elastic-net
|
- network_mode: so-elastic-net
|
||||||
- cap_add: NET_BIND_SERVICE
|
- cap_add: NET_BIND_SERVICE
|
||||||
- ports:
|
- port_bindings:
|
||||||
- 80
|
- 80:80
|
||||||
- 443
|
- 443:443
|
||||||
|
|||||||
Reference in New Issue
Block a user