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

Nginx with Cloudflare tunnel fails at login #2017

Open
yamada321 opened this issue Aug 24, 2023 · 0 comments
Open

Nginx with Cloudflare tunnel fails at login #2017

yamada321 opened this issue Aug 24, 2023 · 0 comments
Labels
help-wanted help-wanted proxy hosting behind reverse proxies support installation and configuration issues

Comments

@yamada321
Copy link

yamada321 commented Aug 24, 2023

Hello,

Thank you for the wonderful tool.

I have the following setup: Shaarli -> nginx listening to port 10001 -> cloudflare tunnel takes 10001. This doesn't work and is similar to #319 , which mentions that the web server needs to rewrite set_cookie's domain when reverse proxying.

I tried to adapt the solution above (by adding proxy_cookie_domain) to my case, where Shaarli is behind nginx and will be accessed either from localhost for testing, or from one domain that I control for daily drive. The login failure persists and I'm not sure how to fix. (Nginx's proxy_cookie_domain rewrites only when reverse proxying?)

The minimal working example is needs to be: nginx http in front of Shaarli, and be able to access Shaarli via both 127.0.0.1 and localhost. (edit: to clarify, I'm aiming to get this to work, instead of already having such setup. I believe if localhost and 127.0.0.1 both gives successful login, all I need to do is to swap 127.0.0.1 with the actual domain name.)

Cloudflare tunnel has a known issue of folding cookies, but for now, I believe that is yet irrelevant.

Thank you!

@nodiscc nodiscc added proxy hosting behind reverse proxies support installation and configuration issues help-wanted help-wanted labels Aug 25, 2023
@nodiscc nodiscc removed the help-wanted help-wanted label Nov 15, 2023
@nodiscc nodiscc added this to the backlog to the future milestone Feb 24, 2024
@nodiscc nodiscc added the help-wanted help-wanted label Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help-wanted help-wanted proxy hosting behind reverse proxies support installation and configuration issues
Projects
None yet
Development

No branches or pull requests

2 participants