Compare commits
2 commits
88673b582e
...
02720387a4
Author | SHA1 | Date | |
---|---|---|---|
|
02720387a4 | ||
|
054143d378 |
1 changed files with 6 additions and 0 deletions
|
@ -8,8 +8,12 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
# listen only on localhost
|
||||||
LISTEN_ADDR = "localhost:${builtins.toString port}";
|
LISTEN_ADDR = "localhost:${builtins.toString port}";
|
||||||
|
|
||||||
|
# setup the correct baseurl
|
||||||
|
BASE_URL = "https://${svc_domain}";
|
||||||
|
|
||||||
# disable admin account, disable local auth
|
# disable admin account, disable local auth
|
||||||
CREATE_ADMIN = 0;
|
CREATE_ADMIN = 0;
|
||||||
DISABLE_LOCAL_AUTH = "true";
|
DISABLE_LOCAL_AUTH = "true";
|
||||||
|
@ -29,6 +33,8 @@ in {
|
||||||
locations."/" = config.mine.shared.lib.authelia.mkProtectedLocation {
|
locations."/" = config.mine.shared.lib.authelia.mkProtectedLocation {
|
||||||
proxyPass = "http://localhost:${builtins.toString port}";
|
proxyPass = "http://localhost:${builtins.toString port}";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
locations."/v1".proxyPass = "http://localhost:${builtins.toString port}";
|
||||||
};
|
};
|
||||||
|
|
||||||
# meta
|
# meta
|
||||||
|
|
Loading…
Reference in a new issue