Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SELF_URL_PATH is not recognized as environment variable #11

Open
jcnoir opened this issue Jul 14, 2017 · 16 comments
Open

SELF_URL_PATH is not recognized as environment variable #11

jcnoir opened this issue Jul 14, 2017 · 16 comments

Comments

@jcnoir
Copy link

jcnoir commented Jul 14, 2017

Hi,
Thank you for this nice docker image.
I use it with the letsencrypt nginx proxy.
With the default configuration I cannot access the web page and I get an error with incorrect SELF_URL_PATH.
I tried to set SELF_URL_PATH as an environment variable but it is not used.
I did workaround by passing these environment variables:

  • TTRSS_URL=mysubdomain.mydomain.com
  • TTRSS_PROTO=https
    Setting the TTRSS_PORT as 443 does not work, I had to omit the value (even if it is 443).

I don't know if it is a bug but it should be at least documented to avoid debugging ...

Thanks.

@bobberb
Copy link

bobberb commented Jul 14, 2017 via email

@XaF
Copy link

XaF commented Jul 24, 2017

Same problem here!

@thiesschneider
Copy link

Hey @XaF
Just use -e TTRSS_URL=url and -e TTRSS_PROTO=https as @jcnoir did.

@x86dev
Copy link
Owner

x86dev commented Jul 25, 2017

Some of the latest commits to TT-RSS contained some changes to SELF_URL_PATH. That was the reason why I extended / fixed the SELF_URL_PATH generation in the startup phase.

For making this to work with e.g. https://github.com/jwilder/nginx-proxy, you also have to use -e VIRTUAL_HOST=<sub.yourdomain.tld>

Just to be sure: You pulled the latest Docker image, right?

@jcnoir
Copy link
Author

jcnoir commented Jul 25, 2017

To be sure I just pulled the latest version from the docker hub.
Same results:

  • Defining SELF_URL_PATH as env variable does not work (incorrect SELF_URL_PATH)
  • Defining TTRSS_PORT=443 as env variable does not work (incorrect SELF_URL_PATH). You have to omit this variable.

@x86dev
Copy link
Owner

x86dev commented Aug 1, 2017

I'll have a look.

@clx81
Copy link

clx81 commented Aug 4, 2017

I have the same problem (incorrect SELF_URL_PATH) !

@clx81
Copy link

clx81 commented Aug 21, 2017

The solution is to set the two env. variables to : TTRSS_SELF_URL = http://host_ip:port/ and SELF_URL_PATH = http://host_ip:port/
Two times the same value. It's work well for me.
When I found a few minutes, I will modify the script : setup-ttrss.sh

@agampe
Copy link

agampe commented Sep 3, 2017

Note: there's also an issue with TTRSS_PORT that you could also solve. It get's a double colon in lines 81 and 97.

@madsprite
Copy link

madsprite commented Sep 20, 2017

A quick note is that it seems like the request url must match exactly how the SELF_URL_PATH is set up.
browser request url = http://rss.domain.com
SELF_URL_PATH = http://rss.domain.com:80
therefore http://rss.domain.com == http://rss.domain.com:80 = false
Same thing happens with SSL on port 443 as that request url will be https://rss.domain.com.
My lazy solution is just editing setup.sh to have the static variable without ports.
This problem still persist for native http ports where browsers remove port context.

@TheLux83
Copy link

I just wanted to throw in my 2 cents into this problem.
I have the same problem.
Neither -e SELF_URL_PATH=http://rss.domain.com or -e TTRSS_URL=url works for me.

How did you workaround this problem?

@thiesschneider
Copy link

try to add these ENVs:

  -e SELF_URL_PATH=https://domain.com/ \
  -e TTRSS_SELF_URL=https://domain.com/ \
  -e TTRSS_PROTO=https \
  -e TTRSS_URL=domain.com \

its working for me this way

@TheLux83
Copy link

Thank you very much @thiesschneider
This works like a charm :)

@x86dev
Copy link
Owner

x86dev commented Nov 8, 2017

Looks like this is solved -- can we close this? Thanks for the help, @thiesschneider.

@bobberb
Copy link

bobberb commented Nov 10, 2017 via email

@wicope
Copy link

wicope commented Jan 30, 2018

Hi, its working for me this way. This is an example.

SSL:

        environment:
           TTRSS_WITH_SELFSIGNED_CERT: "1"
           TTRSS_PROTO: "https"
           TTRSS_URL: "192.168.1.124"
#           TTRSS_PORT: "8080"
           TTRSS_SELF_URL: "https://192.168.1.124/"
           SELF_URL_PATH: "https://192.168.1.124/"
           ....
        ports:
            - 443:4443

URL to open: https://192.168.1.124/


Non SSL:

        environment:
#            TTRSS_WITH_SELFSIGNED_CERT: "1"
#            TTRSS_PROTO: "http"
            TTRSS_URL: "192.168.1.124"
            TTRSS_PORT: "8080"
            TTRSS_SELF_URL: "http://192.168.1.124:8080/"
            SELF_URL_PATH: "http://192.168.1.124:8080/"
            ...
        ports:
            - 8080:8080

URL to open: http://192.168.1.124:8080/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants