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

Nginx proxy managers/nginx configuration given by authentik does not work #10010

Open
SpiderUnderUrBed opened this issue Jun 6, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@SpiderUnderUrBed
Copy link

SpiderUnderUrBed commented Jun 6, 2024

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.
image
image
image

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):

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.

@SpiderUnderUrBed SpiderUnderUrBed added the bug Something isn't working label Jun 6, 2024
@pythonius21
Copy link

I can also confirm.

I found a working one from: https://geekscircuit.com/set-up-authentik-sso-with-nginx-proxy-manager/

Hopefully this helps you!

@Joey4tunato
Copy link

I'm experiencing the same sort of error except I'd get a 525 SSL handshake error. It keeps saying the SSL is invalid however I know it works since I use the same certificate to access my authentik instance on a FQDN. The tutorial mentioned above isn't helpful as I tried it 3 different times while starting over from scratch. I believe this is an actual bug.

@Joey4tunato
Copy link

Hey found a fix for you! Use an older advanced config to input into NPM.

@SpiderUnderUrBed
Copy link
Author

I found a config that worked for my awhile ago, ill share it later, anyways this is marked as a bug in hopes that a contributer will hopefully update the documentation given in authentik for setting up NPM.

@masterwishx
Copy link

i think its becouse websocket in new config ...

@IoSonoPiero
Copy link

So, the issue is still there with the latest Authentik version, 2024.6.0.
I used the link from @pythonius21, but I have problems with Websocket "enabled" applications.
I'm unable to understand how to fix this using the standard code generated by Authentik.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants