Skip to content

Nginx websocket #3637

@martijndierckx

Description

@martijndierckx

Describe your question/
I use the Passtrough proxy template provided by Authentik in Nginx Proxy Manger to make sure some of my apps are shielded by Authentik login. Works like a charm.
However, those apps also run a websocket. Which doesn't work in combination with the template.
In order to get it working, I have to add the following snippet:

location /socket.io {
    proxy_pass          $forward_scheme://$server:$port;
}

This makes the websocket publicly available, without Authentik auth. Not OK, but hard to guess ... So OK for now.
I would however want that websocket being protected as well.

Any ideas on how to update the Nginx config template for this?

Relevant infos
Apps encountering this problem: EVCC, Uptime Kuma

Version and Deployment (please complete the following information):

  • authentik version: 2022.09
  • Deployment: docker-compose, portainer

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestenhancement/confirmedEnhancements that will be implemented in the future

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions