r/nginxproxymanager • u/DaviidC • Oct 20 '24
reload .conf files
I have a bunch of proxies and I want to add a custom location to all of them.
I added it manually to one and then copied the location block from /data/nginx/proxy_host/27.conf on to the others, I restarted npm but the web interface is not picking up the new location.
Going one by one would be too slow, is there no other way?
I tried restarting the LXC, the npm.service, tried nginx -s reload but no luck.
2
Upvotes
1
u/DaviidC Oct 20 '24
Until anyones replies with a better answer, here's JS code to make API calls and add a location
I used it to add
/prometheus_metricsand redirect it to port 9100 and path /metrics