Browse Source

Set /var/log/nginx writable by NGINX worker processes

tags/v0.55.0
George Robinson 8 years ago
parent
commit
7f5d36603d
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      nginx/ng/config.sls

+ 3
- 1
nginx/ng/config.sls View File

{% from 'nginx/ng/map.jinja' import nginx, sls_block with context %} {% from 'nginx/ng/map.jinja' import nginx, sls_block with context %}


{% if nginx.install_from_source %} {% if nginx.install_from_source %}
nginx_log_directory:
nginx_log_dir:
file.directory: file.directory:
- name: /var/log/nginx - name: /var/log/nginx
- user: {{ nginx.server.config.user }}
- group: {{ nginx.server.config.user }}
{% endif %} {% endif %}


nginx_config: nginx_config:

Loading…
Cancel
Save