Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set it up in Cloudflare? #291

Open
vk2r opened this issue Dec 29, 2024 · 2 comments
Open

How to set it up in Cloudflare? #291

vk2r opened this issue Dec 29, 2024 · 2 comments

Comments

@vk2r
Copy link

vk2r commented Dec 29, 2024

I have a problem with Cloudflare.

My case is that I have self-hosted the Glance server, behind a Cloudflare Tunnel, so I get a 403 error.

I was wondering if the problem could be the correct host and base-url configuration for a Cloudflare subdomain of this style:

https://my.domain.com

Has anyone had this problem?
How would be the host and base-url configuration?

@svilenmarkov
Copy link
Member

Hey, 403 is an authentication/authorization error and Glance itself doesn't have any endpoints that can return that kind of status code, so the issue is likely related to Cloudflare Tunnel's configuration or something else that gets hit before Glance.

As for the host and base-url options, leaving them both blank should suffice in your case. You only need to specify host if you want to limit access to a specific interface, and you only need to specify the base-url if your instance is hosted under a directory rather than a subdomain, such as https://my.domain.com/glance.

@vk2r
Copy link
Author

vk2r commented Dec 29, 2024

Oye, 403 es un error de autenticación/autorización y Glance en sí no tiene ningún punto final que pueda devolver ese tipo de código de estado, por lo que el problema probablemente esté relacionado con la configuración de Cloudflare Tunnel o algo más que se detecta antes que Glance.

En cuanto a la host y base-url opciones, dejarlas en blanco debería ser suficiente en su caso. Sólo necesitas especificar host si desea limitar el acceso a una interfaz específica y solo necesita especificar el base-url si su instancia está alojada en un directorio en lugar de un subdominio, como https://my.domain.com/glance.

I understand. I appreciate your comments. I will check my Cloudflare configuration, in case I have forgotten something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants