TT-RSS部署

r
发布于 2023-07-11 / 22 阅读
1

TT-RSS部署

部署方法:docker-compose

其中的xxx.xxx.xxx需要替换

下面的代码是nginx的配置,aapanel面板可以直接换成下面的配置:

# nginx.conf
upstream ttrssdev {
    server 127.0.0.1:181;
}

server {
    listen 80;
    server_name  xxxx.xxxx.xxxx;
    return 301 https://xxxx.xxxx.xxxx$request_uri;
}

server {
    listen 443 ssl;
    gzip on;
    server_name  xxxx.xxxx.xxxx;

    ssl_certificate    /www/server/panel/vhost/cert/xxxx.xxxx.xxxx/fullchain.pem;
    ssl_certificate_key    /www/server/panel/vhost/cert/xxxx.xxxx.xxxx/privkey.pem;

    location / {
        proxy_redirect off;
        proxy_pass http://ttrssdev;

        proxy_set_header  Host                $http_host;
        proxy_set_header  X-Real-IP           $remote_addr;
        proxy_set_header  X-Forwarded-Ssl     on;
        proxy_set_header  X-Forwarded-For     $proxy_add_x_forwarded_for;
        proxy_set_header  X-Forwarded-Proto   $scheme;
        proxy_set_header  X-Frame-Options     SAMEORIGIN;

        client_max_body_size        100m;
        client_body_buffer_size     128k;

        proxy_buffer_size           4k;
        proxy_buffers               4 32k;
        proxy_busy_buffers_size     64k;
        proxy_temp_file_write_size  64k;
    }
}

还需要填写一个反向代理: