mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-01-18 17:11:39 +01:00
seafile: put secret on nuc
This commit is contained in:
parent
6569db6bfb
commit
3e48779929
3 changed files with 1 additions and 7 deletions
|
@ -3,11 +3,6 @@ let
|
||||||
domain = "seafile.${config.networking.domain}";
|
domain = "seafile.${config.networking.domain}";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
age.secrets."seafile/oidc-secret" = {
|
|
||||||
file = ../../../../secrets/nuc/seafile/oidc-secret.age;
|
|
||||||
mode = "0440";
|
|
||||||
group = "seafile";
|
|
||||||
};
|
|
||||||
services.seafile = {
|
services.seafile = {
|
||||||
enable = true;
|
enable = true;
|
||||||
adminEmail = "admin@rfive.de";
|
adminEmail = "admin@rfive.de";
|
||||||
|
@ -20,7 +15,7 @@ in
|
||||||
OAUTH_ENABLE_INSECURE_TRANSPORT = True
|
OAUTH_ENABLE_INSECURE_TRANSPORT = True
|
||||||
|
|
||||||
OAUTH_CLIENT_ID = "seafile"
|
OAUTH_CLIENT_ID = "seafile"
|
||||||
with open('${config.age.secrets."seafile/oidc-secret".path}') as f:
|
with open('/var/lib/seafile/.oidcSecret') as f:
|
||||||
OAUTH_CLIENT_SECRET = f.readline().rstrip()
|
OAUTH_CLIENT_SECRET = f.readline().rstrip()
|
||||||
OAUTH_REDIRECT_URL = 'https://seafile.rfive.de/oauth/callback/'
|
OAUTH_REDIRECT_URL = 'https://seafile.rfive.de/oauth/callback/'
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,6 @@ in
|
||||||
"secrets/nuc/vaultwarden.age".publicKeys = [ rouven nuc ];
|
"secrets/nuc/vaultwarden.age".publicKeys = [ rouven nuc ];
|
||||||
"secrets/nuc/keycloak/db.age".publicKeys = [ rouven nuc ];
|
"secrets/nuc/keycloak/db.age".publicKeys = [ rouven nuc ];
|
||||||
"secrets/nuc/cache.age".publicKeys = [ rouven nuc ];
|
"secrets/nuc/cache.age".publicKeys = [ rouven nuc ];
|
||||||
"secrets/nuc/seafile/oidc-secret.age".publicKeys = [ rouven nuc ];
|
|
||||||
"secrets/nuc/borg/passphrase.age".publicKeys = [ rouven nuc ];
|
"secrets/nuc/borg/passphrase.age".publicKeys = [ rouven nuc ];
|
||||||
"secrets/nuc/borg/key.age".publicKeys = [ rouven nuc ];
|
"secrets/nuc/borg/key.age".publicKeys = [ rouven nuc ];
|
||||||
|
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue