diff options
author | crupest <crupest@outlook.com> | 2022-11-20 13:37:05 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-11-20 13:37:05 +0800 |
commit | 598556d62e3653342c83a148b90c18cc16bedd40 (patch) | |
tree | e438ebe543bee5e2afba086609096ec5ef4fc437 /template/nginx/static-file.conf.template | |
parent | ce5d73b998ca151968621eed49fda5ce32ed2a13 (diff) | |
download | crupest-598556d62e3653342c83a148b90c18cc16bedd40.tar.gz crupest-598556d62e3653342c83a148b90c18cc16bedd40.tar.bz2 crupest-598556d62e3653342c83a148b90c18cc16bedd40.zip |
Fix some nginx bugs.
Diffstat (limited to 'template/nginx/static-file.conf.template')
-rw-r--r-- | template/nginx/static-file.conf.template | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/template/nginx/static-file.conf.template b/template/nginx/static-file.conf.template index 2097302..1597d10 100644 --- a/template/nginx/static-file.conf.template +++ b/template/nginx/static-file.conf.template @@ -7,4 +7,16 @@ server { ssl_certificate_key /etc/letsencrypt/live/${CRUPEST_DOMAIN}/privkey.pem; root ${CRUPEST_NGINX_ROOT}; + + client_max_body_size 5G; +} + +server { + listen 80; + listen [::]:80; + server_name ${CRUPEST_NGINX_SUBDOMAIN}.${CRUPEST_DOMAIN}; + + location / { + return 301 https://$host$request_uri; + } } |