Miniflux搭建:
这部分没啥说的,官方文档很清晰,照着做就完了。
配置Nginx反代:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| server{ listen [::]:443 ssl ipv6only=on; # managed by Certbot listen 443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/rss.lnception.cn/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/rss.lnception.cn/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_name rss.lnception.cn;
location / { proxy_pass http://127.0.0.1:8080/; proxy_set_header Host $host; proxy_redirect off; 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; } }
server { if ($host = rss.lnception.cn) { return 301 https://$host$request_uri; } # managed by Certbot
listen 80 ; listen [::]:80 ; server_name rss.yrpang.com; return 404; # managed by Certbot }
|
LetsEncrypt证书配置
https://certbot.eff.org/lets-encrypt/ubuntubionic-nginx
参考资料: https://docs.miniflux.app/en/2.0.7/configuration.html