Skip to content

disabling access to admin panel via http and port 81 (after config the proxy to it) to avoid brute forcing... how? #1521

Answered by chaptergy
posta246 asked this question in Q&A
Discussion options

You must be logged in to vote

Create the proxy host as you said as something like proxy.mydomain.com targeting localhost on port 81. Then you can edit the docker-compose file and remove the line

ports:
    - '81:81'  # Remove this line

That way the admin panel will not be exposed to the outside of the container and only be accessible through the proxy host. If your npm instance ever breaks and the normal proxy host is not available, you can re-add that line to temporarily access it via port 81 once again.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@posta246
Comment options

Answer selected by chaptergy
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants