added nolocal flag to nginx configuration for nextcloud and fixed nextcloud remote config
This commit is contained in:
parent
887df39849
commit
1e9094e3cb
2 changed files with 2 additions and 0 deletions
0
states/roles/maintain/nginx-proxy/empty.conf
Normal file
0
states/roles/maintain/nginx-proxy/empty.conf
Normal file
|
@ -49,6 +49,8 @@ nginx:
|
||||||
- makedirs: true
|
- makedirs: true
|
||||||
{%- if portal is defined %}
|
{%- if portal is defined %}
|
||||||
- source: salt://roles/maintain/nginx-proxy/remote.conf
|
- source: salt://roles/maintain/nginx-proxy/remote.conf
|
||||||
|
{%- elif pillar['nginx'][name]['nolocal'] is defined and pillar['nginx'][name]['nolocal'] == 'true' %}
|
||||||
|
- source: salt://roles/maintain/nginx-proxy/empty.conf
|
||||||
{%- else %}
|
{%- else %}
|
||||||
- source: salt://roles/maintain/nginx-proxy/local.conf
|
- source: salt://roles/maintain/nginx-proxy/local.conf
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
Loading…
Add table
Reference in a new issue