2021-10-23 05:04:25 +00:00
|
|
|
upstream freshrss {
|
2021-10-23 05:17:11 +00:00
|
|
|
server localhost:8080;
|
|
|
|
keepalive 64;
|
2021-10-23 05:04:25 +00:00
|
|
|
}
|
|
|
|
|
2020-10-22 06:17:02 +00:00
|
|
|
server {
|
2021-10-23 05:04:25 +00:00
|
|
|
server_name rss.ionathan.ch;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
# The final `/` is important.
|
|
|
|
proxy_pass http://freshrss/;
|
|
|
|
add_header X-Frame-Options SAMEORIGIN;
|
|
|
|
add_header X-XSS-Protection "1; mode=block";
|
|
|
|
proxy_redirect off;
|
|
|
|
proxy_buffering off;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
proxy_set_header X-Forwarded-Port $server_port;
|
|
|
|
proxy_read_timeout 90;
|
|
|
|
|
|
|
|
# Forward the Authorization header for the Google Reader API.
|
|
|
|
proxy_set_header Authorization $http_authorization;
|
|
|
|
proxy_pass_header Authorization;
|
|
|
|
}
|
2020-10-22 06:17:02 +00:00
|
|
|
|
2021-10-23 05:17:11 +00:00
|
|
|
listen 443 ssl; # managed by Certbot
|
2022-11-24 14:03:05 +00:00
|
|
|
listen [::]:443 ssl;
|
2021-10-23 05:17:11 +00:00
|
|
|
ssl_certificate /etc/letsencrypt/live/next.ionathan.ch/fullchain.pem; # managed by Certbot
|
|
|
|
ssl_certificate_key /etc/letsencrypt/live/next.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
|
2020-10-22 06:17:02 +00:00
|
|
|
}
|
2020-12-29 08:11:34 +00:00
|
|
|
|
2020-10-22 06:17:02 +00:00
|
|
|
server {
|
2021-10-23 05:17:11 +00:00
|
|
|
if ($host = rss.ionathan.ch) {
|
|
|
|
return 301 https://$host$request_uri;
|
|
|
|
} # managed by Certbot
|
2021-10-23 05:04:25 +00:00
|
|
|
|
2021-10-23 05:17:11 +00:00
|
|
|
server_name rss.ionathan.ch;
|
|
|
|
listen 80;
|
2022-11-24 14:03:05 +00:00
|
|
|
listen [::]:80;
|
2021-10-23 05:17:11 +00:00
|
|
|
return 404; # managed by Certbot
|
|
|
|
}
|