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

[BUG] Ui to standard when Authelia is used #715

Open
XHyperDEVX opened this issue Aug 5, 2024 · 2 comments
Open

[BUG] Ui to standard when Authelia is used #715

XHyperDEVX opened this issue Aug 5, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@XHyperDEVX
Copy link

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

@XHyperDEVX XHyperDEVX added the bug Something isn't working label Aug 5, 2024
@XHyperDEVX
Copy link
Author

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:
image
(these are the lines mentioned in the error. once underlined in red and once marked in blue)
image
image

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 👋

@seriousm4x
Copy link
Owner

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.

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

2 participants