Are you using stock Docker compose setup? NO
If not, either reproduce this issue on the official demo or switch to Docker and see if the issue is resolved.
Describe the problem you’re having:
I have upgraded to the latest RSS code (had not touched it for a long time to be honest). It is now giving me Please set SELF_URL_PATH to the correct value detected for your server
I am sync’ing the code without running docker, and serving the site using NGINX.
I have looked at the forums and wiki for this but did not find a clear answer for my problem so I appreciate your help.
Here is my current config.php
putenv('TTRSS_DB_HOST=localhost');
putenv('TTRSS_SELF_URL_PATH=https://ttrss.domain.com');
putenv('TTRSS_DB_TYPE=mysql');
putenv('TTRSS_DB_USER=user');
putenv('TTRSS_DB_NAME=rss');
putenv('TTRSS_DB_PASS=xxxx');
putenv('TTRSS_DB_PORT=3306');
And here is my NGINX virtual site setup:
server {
listen 443;
listen [::]:443;
ssl on;
ssl_certificate /etc/letsencrypt/live/xxxx
ssl_certificate_key /etc/letsencrypt/live/xxxx
ssl_trusted_certificate /etc/letsencrypt/live/xxxx;
ssl_dhparam /etc/nginx/ssl/dhparams.pem;
ssl_protocols TLSv1.2;
ssl_session_cache off;
server_name ttrss.domain.com;
root /var/www/ttrss.domain.com;
index index.html index.php
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
location / {
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php-fastcgi.socket;
fastcgi_index index.php;
include fastcgi_params;
proxy_set_header X-Forwarded-Proto $scheme;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
Include steps to reproduce the problem:
With that configuration I always get: Please set SELF_URL_PATH to the correct value detected for your server: http://ttrss.domain.com (you're using: https://ttrss.domain.com)
tt-rss version (including git commit id):
From https://git.tt-rss.org/fox/tt-rss
4fda5ccd0..bc7cb7637 master -> origin/master
* [new branch] exp-headline-flavor-images -> origin/exp-headline-flavor-images
5c6c12367..63ca6333a weblate-integration -> origin/weblate-integration
Updating 4fda5ccd0..bc7cb7637
Platform (i.e. Linux distro, PHP, PostgreSQL, etc) versions:
Debian 10.8
PHP 7.3
MariaDB 10.3.27
Nginx 1.14.2
Please provide any additional information below:
This used to work on my older installation. I have never used the skip URL trick that people mentioned on the forums. I saw a lot of posts on this forum about containers and reverse proxies but this is not quite my setup, that is why I am posting here today.
Let me know if you need anything else, I appreciate the help.