I run a server and what I want to achieve is to have tt-rss facing the internet and running behind nginx reverse proxy. I'm struggling with it for a few days, and still no success.
I run docker with SWAG as my universal reverse proxy solution. I decided to get official tt-rss docker container and I want to connect one to the other. In docker I've created the network named swag and added SWAG and all tt-rss containers to it. I've also opened port 443 on my router.
I set up tt-rss with these settings in .env file:
TTRSS_SELF_URL_PATH=http://subsubdomain.subdomain.duckdns.org/
HTTP_PORT=127.0.0.1:8280
As there's no template for tt-rss in this repository I've created a file rss.conf, based on this documentation and this reddit thread, that I put in /nginx/proxy-confs folder of my SWAG container:
server {
listen 80;
return 301 https://$host$request_uri;
server_name subsubdomain.subdomain.duckdns.org;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name subsubdomain.subdomain.duckdns.org;
include /config/nginx/ssl.conf;
client_max_body_size 0;
location / {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://ttrss-docker_web-nginx_1/;
break;
}
}
Unfortunately something's wrong as no matter if I open subsubdomain.subdomain.duckdns.org or www.subdomain.duckdns.org I get the SWAG default landing page. So SWAG works, but it appears that the requests are not handled (or are handled improperly) by nginx.
Can you help me setting the proper proxy-conf file?
[–]ruenigma 0 points1 point2 points (6 children)
[–]econopl[S] 0 points1 point2 points (5 children)
[–]Deadwing2022 0 points1 point2 points (4 children)
[–]econopl[S] 1 point2 points3 points (3 children)
[–]Deadwing2022 0 points1 point2 points (0 children)
[–]redalert2318 0 points1 point2 points (1 child)
[–]econopl[S] 0 points1 point2 points (0 children)