mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-04-09 12:42:10 +07:00
Drop fastcgi_params supprort
This commit is contained in:
@@ -31,7 +31,6 @@
|
||||
- regexp: '^fastcgi_param DOCUMENT_ROOT'
|
||||
line: 'fastcgi_param DOCUMENT_ROOT $realpath_root;'
|
||||
-
|
||||
- '{{ nginx_etc_dir }}/fastcgi_params'
|
||||
- '{{ nginx_etc_dir }}/fastcgi.conf'
|
||||
when: nginx_fastcgi_fix_realpath
|
||||
|
||||
|
||||
@@ -45,27 +45,6 @@
|
||||
- sites-available
|
||||
- sites-enabled
|
||||
|
||||
- name: STAT | Check fastcgi.conf
|
||||
stat:
|
||||
path: "{{ nginx_etc_dir }}/fastcgi.conf"
|
||||
register: conf
|
||||
|
||||
- name: COPY | config
|
||||
command: "cp {{ nginx_etc_dir }}/fastcgi_params {{ nginx_etc_dir }}/fastcgi.conf"
|
||||
when: not conf.stat.exists
|
||||
notify: reload nginx
|
||||
|
||||
- name: LINEINFILE | Add fastcgi config
|
||||
lineinfile:
|
||||
line: "fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;"
|
||||
dest: "{{ nginx_etc_dir }}/fastcgi.conf"
|
||||
notify: reload nginx
|
||||
|
||||
- name: COPY | Populate proxy_params
|
||||
copy:
|
||||
content: "proxy_set_header Host $http_host;\nproxy_set_header X-Real-IP $remote_addr;\nproxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_set_header X-Forwarded-Proto $scheme;"
|
||||
dest: "{{ nginx_etc_dir }}/proxy_params"
|
||||
|
||||
- name: FILE | Create log directory
|
||||
file:
|
||||
path: "{{ nginx_log_dir }}"
|
||||
|
||||
Reference in New Issue
Block a user