40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
|
server {
|
||
|
|
||
|
server_name next.ionathan.ch;
|
||
|
client_max_body_size 512M;
|
||
|
|
||
|
location / {
|
||
|
proxy_pass http://localhost:8080;
|
||
|
proxy_set_header Host $host;
|
||
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
}
|
||
|
location = /.well-known/carddav {
|
||
|
return 301 http://localhost:8080/remote.php/dav;
|
||
|
}
|
||
|
location = /.well-known/caldav {
|
||
|
return 301 http://localhost:8080/remote.php/dav;
|
||
|
}
|
||
|
|
||
|
listen [::]:443 ssl; # managed by Certbot
|
||
|
listen 443 ssl; # managed by Certbot
|
||
|
ssl_certificate /etc/letsencrypt/live/rss.ionathan.ch/fullchain.pem; # managed by Certbot
|
||
|
ssl_certificate_key /etc/letsencrypt/live/rss.ionathan.ch/privkey.pem; # managed by Certbot
|
||
|
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
||
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
||
|
|
||
|
}
|
||
|
|
||
|
server {
|
||
|
if ($host = next.ionathan.ch) {
|
||
|
return 301 https://$host$request_uri;
|
||
|
} # managed by Certbot
|
||
|
|
||
|
|
||
|
listen 80;
|
||
|
listen [::]:80;
|
||
|
|
||
|
server_name next.ionathan.ch;
|
||
|
return 404; # managed by Certbot
|
||
|
|
||
|
|
||
|
}
|