ansible-edda/plays/services/roles/deploy/rproxy/files/setup/nginx-conf.d/notes.wojciechkozlowski.eu.conf

43 lines
1.1 KiB
Plaintext
Raw Normal View History

2022-11-20 15:10:07 +01:00
server {
listen 80;
server_name notes.wojciechkozlowski.eu;
location ^~ /.well-known {
allow all;
root /var/www/html;
}
location / {
return 301 https://$server_name$request_uri;
}
}
server {
listen 443 ssl;
server_name notes.wojciechkozlowski.eu;
ssl_certificate /etc/letsencrypt/live/notes.wojciechkozlowski.eu/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/notes.wojciechkozlowski.eu/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/notes.wojciechkozlowski.eu/chain.pem;
2022-11-20 18:09:44 +01:00
# Values copied from
# https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html and adjusted to
# 16G.
client_max_body_size 16G;
client_body_timeout 3600s;
client_body_buffer_size 512k;
2022-11-20 15:10:07 +01:00
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://pod-notes:22300;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}