0.1.4-DEV-20191031-074215
------------------------- * ADD: - added client_max_body_size in proxy_site.j2 template so sites may permit uploads of larger files * MODIFY: - modified several sites to make use of client_max_body_size option
This commit is contained in:
parent
bba2602f4f
commit
bd82ec227c
@ -1,8 +1,8 @@
|
|||||||
---
|
---
|
||||||
proxy_site_conf_dir : /etc/nginx/conf.d
|
proxy_site_conf_dir : /etc/nginx/conf.d
|
||||||
proxy_site_file : "{{ proxy_site_conf_dir }}/zen_proxy.conf"
|
proxy_site_file : "{{ proxy_site_conf_dir }}/zen_proxy.conf"
|
||||||
proxy_site_version : 1.4
|
proxy_site_version : 1.5
|
||||||
proxy_site_revision : 20191029-101338
|
proxy_site_revision : 20191030-213756
|
||||||
|
|
||||||
|
|
||||||
proxy_site_log_path : /proxy_logs
|
proxy_site_log_path : /proxy_logs
|
||||||
@ -19,3 +19,8 @@
|
|||||||
# many websites are run from our apache host
|
# many websites are run from our apache host
|
||||||
# ...lets define it here to make things easier
|
# ...lets define it here to make things easier
|
||||||
proxy_default_host : zg-lxwb04.thezengarden.net
|
proxy_default_host : zg-lxwb04.thezengarden.net
|
||||||
|
|
||||||
|
|
||||||
|
# some of our sites require uploads, and those uploads
|
||||||
|
# can be rather large; lets set a default max upload size:
|
||||||
|
proxy_default_max_upload: 512M
|
||||||
|
@ -8,9 +8,10 @@ proxy_sites:
|
|||||||
|
|
||||||
|
|
||||||
git.thezengarden.net:
|
git.thezengarden.net:
|
||||||
proto : https
|
proto : https
|
||||||
dest : gitlab.thezengarden.net
|
dest : gitlab.thezengarden.net
|
||||||
port : 443
|
port : 443
|
||||||
|
max_upload : "{{ proxy_default_max_upload }}"
|
||||||
|
|
||||||
|
|
||||||
hastebin.thezengarden.net:
|
hastebin.thezengarden.net:
|
||||||
@ -55,10 +56,10 @@ proxy_sites:
|
|||||||
port : 9090
|
port : 9090
|
||||||
|
|
||||||
|
|
||||||
hme-3.thezengarden.net:
|
# hme-3.thezengarden.net:
|
||||||
proto : https
|
# proto : https
|
||||||
dest : kaiju.thezengarden.net
|
# dest : kaiju.thezengarden.net
|
||||||
port : 8006
|
# port : 8006
|
||||||
|
|
||||||
|
|
||||||
chat.thezengarden.net:
|
chat.thezengarden.net:
|
||||||
@ -86,9 +87,10 @@ proxy_sites:
|
|||||||
|
|
||||||
|
|
||||||
seafile.thezengarden.net:
|
seafile.thezengarden.net:
|
||||||
proto : http
|
proto : http
|
||||||
dest : sa.thezengarden.net
|
dest : sa.thezengarden.net
|
||||||
port : 8000
|
port : 8000
|
||||||
|
max_upload : "{{ proxy_default_max_upload }}"
|
||||||
|
|
||||||
|
|
||||||
awx.thezengarden.net:
|
awx.thezengarden.net:
|
||||||
@ -104,24 +106,27 @@ proxy_sites:
|
|||||||
|
|
||||||
|
|
||||||
images.thezengarden.net:
|
images.thezengarden.net:
|
||||||
proto : https
|
proto : https
|
||||||
dest : "{{ proxy_default_host }}"
|
dest : "{{ proxy_default_host }}"
|
||||||
port : 443
|
port : 443
|
||||||
|
max_upload : "{{ proxy_default_max_upload }}"
|
||||||
|
|
||||||
|
|
||||||
cloud.thezengarden.net:
|
cloud.thezengarden.net:
|
||||||
proto : https
|
proto : https
|
||||||
dest : zg-lxoc01.thezengarden.net
|
dest : zg-lxoc01.thezengarden.net
|
||||||
port : 443
|
port : 443
|
||||||
|
max_upload : "{{ proxy_default_max_upload }}"
|
||||||
|
|
||||||
|
|
||||||
lakeshorebulldogs.com:
|
lakeshorebulldogs.com:
|
||||||
aliases : www.lakeshorebulldogs.com
|
aliases : www.lakeshorebulldogs.com
|
||||||
proto : http
|
proto : http
|
||||||
dest : "{{ proxy_default_host }}"
|
dest : "{{ proxy_default_host }}"
|
||||||
port : 80
|
port : 80
|
||||||
ssl_cert : "{{ proxy_site_ssl_directory }}/lakeshorebulldogs.com/fullchain1.pem"
|
ssl_cert : "{{ proxy_site_ssl_directory }}/lakeshorebulldogs.com/fullchain1.pem"
|
||||||
ssl_key : "{{ proxy_site_ssl_directory }}/lakeshorebulldogs.com/privkey1.pem"
|
ssl_key : "{{ proxy_site_ssl_directory }}/lakeshorebulldogs.com/privkey1.pem"
|
||||||
|
max_upload : "{{ proxy_default_max_upload }}"
|
||||||
|
|
||||||
|
|
||||||
resources.thezengarden.net:
|
resources.thezengarden.net:
|
||||||
@ -131,10 +136,11 @@ proxy_sites:
|
|||||||
|
|
||||||
|
|
||||||
thezengarden.net:
|
thezengarden.net:
|
||||||
aliases : www.thezengarden.net
|
aliases : www.thezengarden.net
|
||||||
proto : https
|
proto : https
|
||||||
dest : "{{ proxy_default_host }}"
|
dest : "{{ proxy_default_host }}"
|
||||||
port : 443
|
port : 443
|
||||||
|
max_upload : "{{ proxy_default_max_upload }}"
|
||||||
|
|
||||||
|
|
||||||
devel.thezengarden.net:
|
devel.thezengarden.net:
|
||||||
|
@ -1,10 +1,18 @@
|
|||||||
---
|
---
|
||||||
# tasks file for zen_rev_proxy
|
# tasks file for zen_rev_proxy
|
||||||
|
|
||||||
- name: install nginx/aptitude
|
- name: install nginx/aptitude for debian nodes
|
||||||
package:
|
package:
|
||||||
name : ['nginx','aptitude']
|
name : ['nginx','aptitude']
|
||||||
state : present
|
state : present
|
||||||
|
when : ansible_distribution == "Debian"
|
||||||
|
|
||||||
|
|
||||||
|
- name: install nginx for centos nodes
|
||||||
|
package:
|
||||||
|
name : nginx
|
||||||
|
state : present
|
||||||
|
when: ansible_distribution == "CentOS"
|
||||||
|
|
||||||
|
|
||||||
- name: enable nginx at boot time
|
- name: enable nginx at boot time
|
||||||
|
@ -23,6 +23,10 @@ server {
|
|||||||
|
|
||||||
access_log {{ proxy_site_log_path }}/{{ item.key }}.log;
|
access_log {{ proxy_site_log_path }}/{{ item.key }}.log;
|
||||||
|
|
||||||
|
{% if proxy_sites[item.key]['max_upload'] is defined %}
|
||||||
|
client_max_body_size {{ proxy_sites[item.key]['max_upload'] }};
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-Host $host;
|
proxy_set_header X-Forwarded-Host $host;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user