瀏覽代碼

Merge pull request #177 from Perceptyx/fix_config_require

Servers config should require available/enabled dirs
tags/v0.55.0
N 6 年之前
父節點
當前提交
698f7cc724
No account linked to committer's email address
共有 2 個文件被更改,包括 5 次插入1 次删除
  1. +3
    -1
      nginx/ng/map.jinja
  2. +2
    -0
      nginx/ng/servers_config.sls

+ 3
- 1
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,
},

+ 2
- 0
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() }}

Loading…
取消
儲存