vladkens / ghstats

🤩📈 Self-hosted dashboard for tracking GitHub repos traffic history longer than 14 days.
MIT License
113 stars 1 forks source link

ghstats behind reverse proxy (nginx) #11

Closed t0mmili closed 3 weeks ago

t0mmili commented 3 weeks ago

Hi,

I'm trying to run ghstats behing nginx, so it's accessible on the nice local domain https://ghstats.something.local.

But it's failing...

2024/08/26 13:00:57 [error] 16#16: *35 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.x.x, server: ghstats.something.local, request: "GET /favicon.ico HTTP/2.0", upstream: "http://172.29.x.x:8383/favicon.ico", host: "ghstats.something.local", referrer: "https://ghstats.something.local/"

I'm running ghstats with docker compose, port redirection: 8383:8080.

Are you able to confirm or deny that it's possible currently?

I can provide additional details if needed.

t0mmili commented 3 weeks ago

Nvm, I found PORT and HOST env variables in the code. Problem solved 😄 Should be documented probably.

vladkens commented 3 weeks ago

@t0mmili hi, thank you for feedback. I was adding those variables just to have them. But now I know they may be needed. I'll add it to readme.