TTRSS的SELF_URL_PATH错误问题

TTRSS的SELF_URL_PATH错误问题

给自建的 TTRSS 增加https,签名完证书后时提示

1
Please set SELF_URL_PATH to the correct value for your server

解决方法如下

  • docker-compose.yml 配置中 SELF_URL_PATH 的URL需要是博客完整路径,如https://xx.xx.com
  • nginx 配置文件中 proxy_pass 只能写成http://,不能写成https://
  • 80端口自动跳转参考代码如下
    1
    2
    3
    4
    5
    server {
    listen 80;
    server_name xxx.xxx.wang;
    return 301 https://xxx.xxx.wang$request_uri;
    }

参考:https://ttrss.henry.wang/#configure-https