I am trying to install Tiny Tiny RSS using Docker Compose and I tried to set my domain to the TTRSS_SELF_URL_PATH variable in .env file but I keep getting this error when I visit my domain.
Seeing the error I though I am missing
/tt-rss but adding that to
TTRSS_SELF_URL_PATH didn’t help either.
I did not edit the compose file at all and only modified few variables in .env file by copying .env-dist to .env.
Here you can see the
git remote diff and the
diff of
.env-dist and the copied
.env
Am I doing something wrong here?
fox
2
you need to fix your ssl terminating proxy to pass X-Forwarded-Proto otherwise tt-rss doesn’t know you’re using https.
proxy_set_header X-Forwarded-Proto $scheme;
I see. Where do I need to make this edit? Which file?
fox
4
this has nothing to do with tt-rss. consider asking for help with your reverse proxy setup in a more appropriate place.
Had a look around the forum, seems like a common problem. I have 36 other services running in the same way I am trying to configure tt-rss over SSL without a problem. Not sure whats wrong here.
Tried editing NginxProxyManager Custom location advanced configuration and all no luck.
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;
Even tried adding define('_SKIP_SELF_URL_PATH_CHECKS', true); to app/config.docker.php and re-built the container but still no luck.
wn_name
6
You might want to create a test file to check the HTTP request headers.
<?php
print_r(getallheaders());
Sorry, I am not a web developer. If you can tell me where do I create this file and what I need to do to test it that would help.
wn_name
8
Okay, well the point is that tt-rss isn’t getting the X-Forwarded-For request header with a value of https. As mentioned by fox, that will need to be sorted out in your reverse proxy setup (and this isn’t the appropriate forum to troubleshoot that).
I see. Well in that case I’ll go with FreshRSS. Thank you for your time.
I changed TTRSS_SELF_URL_PATH from TTRSS_SELF_URL_PATH=https://mydomain.com/tt-rss to TTRSS_SELF_URL_PATH=http://mydomain.com/tt-rss and I see the login page. I still access it over SSL because of proxy. Can’t get custom location to work so I don’t have to add /tt-rss. It should not be hard-coded be default any way perhaps have a env-var to set BASE_URL like a lot of other services.
After logging in I again see a error,

then I see this progress bar stuck at 30%,

Anyways, just sharing in-case it helps anyone else.