Nginx with Cloudflare tunnel fails at login #2017
Labels
help-wanted
help-wanted
proxy
hosting behind reverse proxies
support
installation and configuration issues
Milestone
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'sproxy_cookie_domain
rewrites only when reverse proxying?)The minimal working example
isneeds 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!
The text was updated successfully, but these errors were encountered: