Zend certified PHP/Magento developer

CURL timeout, no packet loss in PING

I’m trying to debug a problem with my Authelia acting as an OIDC provider. A Gitea instance tries to connect to https://auth.mydomain.com/.well-known/openid-configuration and fails with a timeout. When I run curl within the Gitea Docker container and also directly on the Debian server it’s running on, I get

curl: (28) Failed to connect to auth.mydomain.com port 443 after 130595 ms: Couldn't connect to server

However, ping shows no packet loss and the correct public IP. Furthermore, traceroute returns mere 2 hops.

If I try to curl from my computer, I get the expected output – so I know that Authelia is up and running.

Could you help me figure out what’s causing this behaviour, please?