Merge branch 'master' of ssh://git-ssh.notandy.de:2222/ansible/roles/nginx
This commit is contained in:
commit
70f6e446eb
2 changed files with 11 additions and 15 deletions
|
|
@ -86,15 +86,6 @@
|
||||||
- name: delete nginx default config
|
- name: delete nginx default config
|
||||||
file: path=/etc/nginx/sites-enabled/default state=absent
|
file: path=/etc/nginx/sites-enabled/default state=absent
|
||||||
|
|
||||||
- name: copy monitoring config
|
|
||||||
copy:
|
|
||||||
src: monitoring.cfg
|
|
||||||
dest: /etc/check_mk/nginx_status.cfg
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
mode: 0644
|
|
||||||
when: nginx.monitoring
|
|
||||||
|
|
||||||
- name: copy nginx status config
|
- name: copy nginx status config
|
||||||
copy:
|
copy:
|
||||||
src: monitoring
|
src: monitoring
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,11 @@ server {
|
||||||
proxy_set_header X-Forwarded-Ssl $https;
|
proxy_set_header X-Forwarded-Ssl $https;
|
||||||
proxy_set_header X-Url-Scheme $scheme;
|
proxy_set_header X-Url-Scheme $scheme;
|
||||||
|
|
||||||
|
# custom proxy headers
|
||||||
|
{% for header in vhost.add_proxy_headers|d({}) if header %}
|
||||||
|
proxy_set_header {{ header }} "{{ vhost.add_proxy_headers[header] }}";
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
# Websockets
|
# Websockets
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue