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

permit_remote_admin_login doesn't work behind nginx #688

Open
neunenak opened this issue Aug 23, 2017 · 1 comment
Open

permit_remote_admin_login doesn't work behind nginx #688

neunenak opened this issue Aug 23, 2017 · 1 comment

Comments

@neunenak
Copy link

When running cherrymusic on localhost on an unprivileged port and using nginx's proxy_pass functionality to expose it to the outside world, all requests look like they are coming from localhost. So in this use case, permit_remote_admin_login does absolutely nothing to prevent admin from logging in remotely.

@oddmean
Copy link

oddmean commented Sep 12, 2017

Try adding
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
"into location /" block

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