updating nginx index.html - issue/587

This commit is contained in:
m0duspwnens
2020-04-24 14:24:33 -04:00
parent 09abd723d1
commit 3136affc91
2 changed files with 12 additions and 117 deletions

View File

@@ -6,11 +6,18 @@
# Drop the correct nginx config based on role
nginxconfdir:
file.directory:
- name: /opt/so/conf/nginx
- name: /opt/so/conf/nginx/html
- user: 939
- group: 939
- makedirs: True
nginxhtml:
file.recurse:
- name: /opt/so/conf/nginx/html
- source: salt://nginx/html/
- user: 939
- group: 939
nginxconf:
file.managed:
- name: /opt/so/conf/nginx/nginx.conf
@@ -38,7 +45,7 @@ so-nginx:
- image: {{ MASTER }}:5000/soshybridhunter/so-nginx:{{ VERSION }}
- hostname: so-nginx
- binds:
- /opt/so:/opt/so:rw
- /opt/so/conf/nginx/html:/opt/socore/html: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
@@ -54,4 +61,5 @@ so-nginx:
- 8090:8090
{%- endif %}
- watch:
- file: nginxconf
- file: nginxconf
- file: nginxconfdir