added nolocal flag to nginx configuration for nextcloud and fixed nextcloud remote config

This commit is contained in:
Actaeus Curabitur 2024-07-31 00:46:57 -05:00
parent 887df39849
commit 1e9094e3cb
2 changed files with 2 additions and 0 deletions

View 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 %}