How to set SELF_URL_PATH, without proper loopback on internet box

Hi,

The internet box doesn’t do any loopback.
My dns adress is working from out side home, but from inside I need to use my local ip adress instead.
Doing that gives an error about SELF_URL_PATH being not good.

What’s the best way to bypass the loppback problem ? Modify hosts ? disable security checks ?

I’m using ttrss official docker container on synology, fully updated with postgres DB.

Thank in advance.

Teryon.

Many firewalls run DNS relay for you and support you putting in a static entry. Then assuming your devices in the network use the internal DNS it will get the internal IP when home, but get external IP using public DNS when not home. Otherwise, manually changing the host on your device would work too, just be a pain.

I have static entries loaded in my router’s dnsmasq config.

address=/host.example.com/192.168.1.2

I use this in config.php :

define(SELF_URL_PATH, $_SERVER[‘HTTP_HOST’] == ‘192.168.0.10’ ? ‘https://192.168.0.10/tt-rss/’ : ‘https://mydomain.com/tt-rss/’ );

Here is the code I use with the new config.php :slight_smile:

if ($_SERVER['HTTP_HOST'] == '192.168.0.10'){

putenv('TTRSS_SELF_URL_PATH=https://192.168.0.10/tt-rss/');

}else{

putenv('TTRSS_SELF_URL_PATH=https://mydomain.com/tt-rss/');

}

Thank you very much for this! :relieved:
.