refactor(slskd): Log in w/ Authelia

- Currently, Firefox reports some errors about failure to connect to a
  websocket somewhere at slsk.deertopia.net.  Further fixes may be
  required if that's a serious issue.
This commit is contained in:
Madeleine Sydney
2025-02-21 18:47:24 -07:00
parent a29fcde32d
commit c738bed3d8
2 changed files with 28 additions and 21 deletions

View File

@@ -99,10 +99,7 @@ in {
default_policy = "deny";
rules = [
{
# TODO: Remove this. It's only used for a quick demo for myself.
# The domain choice is arbitrary. It's just one I happen to have
# set up.
domain = "ldap.deertopia.net";
domain = "*.deertopia.net";
policy = "one_factor";
}
];
@@ -117,10 +114,7 @@ in {
{
domain = "deertopia.net";
authelia_url = "https://auth.deertopia.net";
# TODO: Remove this. It's only used for a quick demo for myself.
# The domain choice is arbitrary. It's just one I happen to have
# set up.
default_redirection_url = "https://ldap.deertopia.net";
default_redirection_url = "https://deertopia.net";
}
];
};
@@ -160,13 +154,13 @@ in {
forceSSL = true;
enableACME = true;
extraConfig = ''
include ${./authelia/authelia-location.conf};
'';
include ${./authelia/authelia-location.conf};
'';
locations."/".extraConfig = ''
include ${./authelia/authelia-authrequest.conf};
include ${./authelia/proxy.conf};
root /persist/deertopia.net/ldap;
'';
include ${./authelia/authelia-authrequest.conf};
include ${./authelia/proxy.conf};
root /persist/deertopia.net/ldap;
'';
};
};
});