[BUG] Ui to standard when Authelia is used
The bug
Thanks for UpSnap!
I'm using it on Docker with NPM (NGINX Proxy Manager) and want to use it behind Authelia as an additional layer of security.
However, when I add the Authelia code in NPM, open UpSnap via it and log in, the UI appears, but without my set up devices (+ my favicon is gone). When I remove the Authelia code again, everything loads normally again. Apparently UpSnap is not compatible with Authelia.
Since I don't know how UpSnap works, I hope one of you can tell me which part of Authelia (see below) is interfering with UpSnap.
This is the Authelia config for NPM:
include /snippets/authelia-location.conf;
location / {
include /snippets/proxy.conf;
include /snippets/authelia-authrequest.conf;
proxy_pass $forward_scheme://$server:$port;
}
I have attached the files mentioned in the script. (I have renamed it to .txt so that GitHub will accept it) authelia-authrequest.txt proxy.txt authelia-location.txt
I am very grateful for any help! <3
The OS that UpSnap is running on
Docker
Version of UpSnap
4.2.12 (newest)
Your docker-compose.yml content
version: "3"
services:
upsnap:
container_name: upsnap
image: ghcr.io/seriousm4x/upsnap:4
network_mode: host
restart: unless-stopped
volumes:
- /data/upsnap:/app/pb_data
entrypoint: /bin/sh -c "./upsnap serve --http 0.0.0.0:4444"
Reproduction steps
Install UpSnap
Setup some Devices in the UI
Add the Authelia Code to NGINX Config
Additional information
No response
i was able to further identify the problem. it is due to the following line in "authelia-authrequest.conf":
auth_request /internal/authelia/authz;
the command ensures that users have to log in if they are not logged in.
In addition, here is the error from the browser console:
(these are the lines mentioned in the error. once underlined in red and once marked in blue)
I hope that someone can help me!
PS: I have seen that the author of the repo is from Germany... Wir können auch gerne auf Deutsch weiter schreiben, ich komme auch aus Deutschland 👋
Haven't used authelia yet, but make sure websockets are working. That's what upsnap relies on.
Also try 4.2.13-beta.2 as this fixed an issue with settings_public which you also mentioned.
Hey! Authelia user here that has just figured out the (very simple) reason why it wouldn't work. You need to forward your Authorization headers. Not sure how you would do it in NPM, but in your Location directive you need to add the following:
proxy_set_header Authorization $http_authorization;
proxy_pass_header Authorization;