ansible-edda/playbooks/files/services/deploy/lrproxy/nginx-conf.d/notes.wojciechkozlowski.eu.conf

43 lines
1.1 KiB
Plaintext

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 127.0.0.1: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;
# 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;
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;
}
}