Is there a way I can configure NGINX to only allow localhost to connect to the admin panel?
I do not like that it is open to the internet.
Yes there is a way, you’ll have to edit the main nginx config file but this is not really recommended.
Also the file is replaced on every update so you’d have to edit it each time…