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

[QUESTION] Is possible to allow access to web server only from localhost? #39

Open
pabloriera opened this issue Apr 29, 2020 · 2 comments

Comments

@pabloriera
Copy link

Basically, I don't want the server to be accessible from outside. Wondering if there is an easy way to set the IP like, 127.0.0.1 local only or 0.0.0.0 for any IP. Thanks

@appellod
Copy link

I'm not sure what the use-case for this is, but I'm using Mongoku behind Nginx with Basic Authentication. You can allow access by IP address, too. You would just have to create a server.whitelist and put the following:

allow 127.0.0.1; # Allow only localhost.
deny all; # Deny everyone else.

I know you asked for this to be included in Mongoku itself, but I would instead suggest this solutioon. Nginx and other proxies are specifically designed for access control and provide tons of different features to do so.

@julien-c
Copy link
Member

Yes I’ll second that

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

3 participants