-
Please check server url of system setting to make sure it is also
onedev.domain.local -
Thanks for the reply. The domains are the same. I created two other VM instances with Gitea and Forgejo, and I'm experiencing the same issue with them. Therefore, I'm leaning towards this being a Traefik configuration issue.
-
Hmm... You may clone via OneDev's 6610 port directly to see if it works. If works, it should be Traefik configuration issue.
-
Hmm... You may clone via OneDev's 6610 port directly to see if it works. If works, it should be Traefik configuration issue.
Exactly... it seems it is Traefik :/
-
@robin does OneDev app facilitate anything similar to REVERSE_PROXY_TRUSTED_PROXIES config setting?
-
No, OneDev does not make use of that. I have not tested with Traefik, but it works with Nginx, Apache, Caddy, or IIS without any issues.
-
I identified that the custom Traefik error-catcher middleware was the source of the problem. When first request hit the self-hosted GIT instance and there are no creds provided yet it responds with 401 and this is a moment whern middleware took over.
Thx for your time anyways!
-
Previous Value Current Value Open
Closed
-
Thanks for the info. In this case, OneDev will respond wth 401 together with header WWW-Authenticate, which is the standard behavior. Frontend should present a login form instead of just failed.
-
Thanks for the info. In this case, OneDev will respond wth 401 together with header WWW-Authenticate, which is the standard behavior. Frontend should present a login form instead of just failed.
Indeed and I saw it in logs and finally understood it.... I cloned middleware and excluded 401, it helped! Thank you!
| Type |
Question
|
| Priority |
Normal
|
| Assignee | |
| Labels |
No labels
|
I'm having trouble logging in with Docker from the terminal nor cloning repositories from my self-hosted onedev instance that is deployed behind a Traefik reverse proxy.
The onedev server is running in a Docker container with the following Docker Compose configuration:
The host is secured with TLS 1.3 and accessible via a web GUI.
Could you please help me troubleshoot this issue? I'm not sure if there's a problem with the Traefik configuration or the onedev Docker Compose setup.