diff --git a/nginx/ng/map.jinja b/nginx/ng/map.jinja index d89c9a6..36a3254 100644 --- a/nginx/ng/map.jinja +++ b/nginx/ng/map.jinja @@ -154,7 +154,9 @@ 'disabled_postfix': '.disabled', 'symlink_opts': {}, 'rename_opts': {}, - 'managed_opts': {}, + 'managed_opts': { + 'makedirs': True, + }, 'dir_opts': { 'makedirs': True, }, diff --git a/nginx/ng/servers_config.sls b/nginx/ng/servers_config.sls index 8faddb9..b5cd9e0 100644 --- a/nginx/ng/servers_config.sls +++ b/nginx/ng/servers_config.sls @@ -112,6 +112,8 @@ nginx_server_available_dir: - name: {{ server_curpath(server) }} - source: {{ source_path }} - template: jinja + - require_in: + - service: nginx_service {% if 'source_path' not in settings.config %} - context: config: {{ settings.config|json() }}