-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
Describe the bug
The provided configuration to put in Nginx Proxy manager and sometimes even nginx, makes nginx and nginx based configs appear as offline, yeilding a error
To Reproduce
Steps to reproduce the behavior:
Get the compose file for authentik, add a section for nginx proxy manager, then try authentiks proxy setup with Nginx proxy manager, (copy and paste it in Nginx advanced configuration box)
Expected behavior
It should work out of the box, the authentiks configuration for Nginx Proxy manager or nginx. It should not appear offline. Nginx proxy manager should not return errors for it being incorrectly configured.
Screenshots
If applicable, add screenshots to help explain your problem.



Logs
Output of docker-compose logs or kubectl logs respectively
[root@docker-98131251dcd3:/var/log/nginx]# cat error.log
2024/06/06 07:48:28 [emerg] 207#207: "map" directive is not allowed here in /data/nginx/proxy_host/3.conf:47
2024/06/06 07:48:28 [notice] 211#211: signal process started
Version and Deployment (please complete the following information):
- authentik version: [e.g. 2021.8.5]
Latest - Deployment: [e.g. docker-compose, helm]
Docker compose
Additional context
Add any other context about the problem here.
These issues have been refrenced in these github discussions
Nginx Proxy Manager - Proxy Host Custom Locations #7323 and NPM (nginx proxy manager) "map" directive is not allowed here for authentik nginx config #10004
One of which I opened recently, because I was looking for a solution specific to nginx proxy manager and the awnser given to the other discussion Nginx Proxy Manager - Proxy Host Custom Locations #7323 was for bare metal nginx
Removing the first few lines helped aliviate one error but lead to many more, this would be a headache to try and troubleshoot, #7323 goes over some of the fixes that can be made but there are more issues i encountered given that this isnt bare metal nginx.