Closed umer936 closed 4 months ago
Disable Cosmos authentication on the Gitea URL
Is that not what I did in this part? Am I overlooking a different setting? With the "Authentication Required" option set to false, I get the following:
Ah I see, sorry overlooked that part. The thing is, this is Gitea's API, not Cosmos telling you you are failing to authenticate
After much debugging, I agree with that. I think it's due to not passing in the Host and X-Referrer headers as putting in the HTTPS certs into Gitea and not having Cosmos-Server as the reverse proxy allowed the requests.
Additionally, thank you so much for Cosmos. It's the only tool that allows us to patch in certs in our setup. Also the GUI is extremely helpful. I aim to contribute to the docs and more in the coming months.
What happened?
I have Gitea with a URL as a ServApp in Cosmos, which is also happily passing in my HTTPS certs (*.[system-name].[org-name].edu). All works well with the web GUI.
But when attempt to use the container registry API, cosmos takes the request and does not pass it through - instead trying to get me to login.
Here's my config for it
With the "Authentication Required" option set to
false
, I get the following:With the "Authentication Required" option set to
true
, I get the following:Other url endpoints work correctly, e.g.:
the saved file is the HTML of the Gitea login page, which is correct.
What should have happened?
When I try to hit the Gitea container registry endpoints, I should be able to do so. It's as if /v2/ or other paths are not being passed through to the container.
How to reproduce the bug?
See above.
Relevant log output
No response
Other details
No response
System details