OIDC Initialization issue #83

Closed
opened 2025-12-29 09:22:44 +01:00 by adam · 7 comments
Owner

Originally created by @yusing on GitHub (May 31, 2025).

Like I said in last reply. The url should not be localhost:port.

it was not set to localhost

Try this: add extra_hosts to docker compose and point the domain to 127.0.0.1 instead.

services:
container: godoxy
...
extra_hosts:
- authentication.domain.com:127.0.0.1

same shit

05-28 11:56 ERR http proxy error error="dial tcp 172.28.0.3:80: connect: connection refused" url=autentication.mydomain.com:8443/.well-known/openid-configuration
05-28 11:56 FTL failed to initialize authentication error="failed to initialize OIDC provider: 502 Bad Gateway: Origin server is not reachable."
Container stopped

Originally posted by @Fuckingnameless in #108

Originally created by @yusing on GitHub (May 31, 2025). > Like I said in last reply. The url should not be localhost:port. > > it was not set to localhost > > Try this: add `extra_hosts` to docker compose and point the domain to `127.0.0.1` instead. > > services: > container: godoxy > ... > extra_hosts: > - authentication.domain.com:127.0.0.1 > > same shit > > ``` > 05-28 11:56 ERR http proxy error error="dial tcp 172.28.0.3:80: connect: connection refused" url=autentication.mydomain.com:8443/.well-known/openid-configuration > 05-28 11:56 FTL failed to initialize authentication error="failed to initialize OIDC provider: 502 Bad Gateway: Origin server is not reachable." > Container stopped > ``` _Originally posted by @Fuckingnameless in [#108](https://github.com/yusing/godoxy/issues/108#issuecomment-2916648120)_
adam closed this issue 2025-12-29 09:22:44 +01:00
Author
Owner

@yusing commented on GitHub (May 31, 2025):

same shit

There's a spelling error, your url is "autentication.mydomain.com"

Either change it to "authentication.domain.com" or change the one in extra_hosts

@yusing commented on GitHub (May 31, 2025): > same shit There's a spelling error, your url is "autentication.mydomain.com" Either change it to "authentication.domain.com" or change the one in `extra_hosts`
Author
Owner

@yusing commented on GitHub (May 31, 2025):

@Fuckingnameless

@yusing commented on GitHub (May 31, 2025): @Fuckingnameless
Author
Owner

@siper commented on GitHub (May 31, 2025):

Have same issue. I use pocket-id in docker container over godoxy proxy, with domain pocket-id.example.com. If set

extra_hosts:
  - pocket-id.example.com:127.0.0.1

error changes to:
05-31 15:04 FTL failed to initialize authentication error="failed to initialize OIDC provider: Get "https://pocket-id.example.com/.well-known/openid-configuration": tls: failed to verify certificate: x509: certificate is valid for synology, not pocket-id.example.com"

@siper commented on GitHub (May 31, 2025): Have same issue. I use pocket-id in docker container over godoxy proxy, with domain pocket-id.example.com. If set ``` extra_hosts: - pocket-id.example.com:127.0.0.1 ``` error changes to: 05-31 15:04 FTL failed to initialize authentication error="failed to initialize OIDC provider: Get \"https://pocket-id.example.com/.well-known/openid-configuration\": tls: failed to verify certificate: x509: certificate is valid for synology, not pocket-id.example.com"
Author
Owner

@yusing commented on GitHub (May 31, 2025):

@siper

certificate is valid for synology, not pocket-id.example.com

Which means 443 was allocated by synology, change GODOXY_HTTP_ADDR to something like :8443 and then add the port number to GODOXY_OIDC_ISSUER_URL.

@yusing commented on GitHub (May 31, 2025): @siper > certificate is valid for synology, not pocket-id.example.com Which means 443 was allocated by synology, change `GODOXY_HTTP_ADDR` to something like `:8443` and then add the port number to `GODOXY_OIDC_ISSUER_URL`.
Author
Owner

@siper commented on GitHub (May 31, 2025):

Sorry, my issue belongs to breaking changes from 0.x to 1.x in pocket id. Thanks for help.

@siper commented on GitHub (May 31, 2025): Sorry, my issue belongs to breaking changes from 0.x to 1.x in pocket id. Thanks for help.
Author
Owner

@yusing commented on GitHub (May 31, 2025):

Sorry, my issue belongs to breaking changes from 0.x to 1.x in pocket id. Thanks for help.

No problem

@yusing commented on GitHub (May 31, 2025): > Sorry, my issue belongs to breaking changes from 0.x to 1.x in pocket id. Thanks for help. No problem
Author
Owner

@gilbrotheraway commented on GitHub (Aug 20, 2025):

same shit

There's a spelling error, your url is "autentication.mydomain.com"

Either change it to "authentication.domain.com" or change the one in extra_hosts

it was not an error, i edited the link obviously

@gilbrotheraway commented on GitHub (Aug 20, 2025): > > same shit > > There's a spelling error, your url is "autentication.mydomain.com" > > Either change it to "authentication.domain.com" or change the one in `extra_hosts` it was not an error, i edited the link obviously
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/godoxy#83