-
Hi, I am currently using Nginx Proxy Manager to host my Docker services and have deployed Authelia alongside for TOTP authentication. I am following the snippets provided by the Authelia documentation for Nginx Proxy Manager, and most things work well, but two of my applications are not functioning properly. I believe that these issues are due to header size and proxy buffer problems. When I use the services without Authelia or access them directly via IP and port, Nginx Proxy Manager does not cause any issues. However, when I use Authelia, I encounter problems with the following services:
It seems that both of these issues are related to proxy buffer sizes, and the Authelia snippets on the Nginx documentation seem to make the buffers smaller. Do you have any ideas on how I can fix this? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Another thing i have found is nginx-proxy-managers websocket support gets ignored when using advanced configs like authelia. |
Beta Was this translation helpful? Give feedback.
-
I'd try commenting the authelia ones, use the ones you had working. The only critical ones are the X-* headers, and the auth_request directives from memory. |
Beta Was this translation helpful? Give feedback.
-
Hello James, Thanks, i did try this solution you suggested before (commenting proxy buffer and using my own in a separate snippet) When looking at the authelia logs, i noticed that the buffer size for both reads & writes was too small by default (just 4096k) I read up on the authelia website and found: https://www.authelia.com/configuration/prologue/common/#server-buffers Still not able to get the portainer to work exec tho :( |
Beta Was this translation helpful? Give feedback.
-
OK, I finally fixed the portainer (and other container issue). In a nutshell, when using the authelia advanced config snippets, you overwrite any nginx websocket enable settings, so they are disabled, to fix this you must re add the socket settings by adding this config:
My combined solution so far is therefore:
server:
buffers:
read: 16384
write: 16384
(depends on your needs, but simply comment and replace values)
I Hope this helps someone :) |
Beta Was this translation helpful? Give feedback.
OK, I finally fixed the portainer (and other container issue).
In a nutshell, when using the authelia advanced config snippets, you overwrite any nginx websocket enable settings, so they are disabled,
to fix this you must re add the socket settings by adding this config:
My combined solution so far is therefore: