mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-25 16:08:30 +02: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}";
|
||||
in
|
||||
{
|
||||
age.secrets."seafile/oidc-secret" = {
|
||||
file = ../../../../secrets/nuc/seafile/oidc-secret.age;
|
||||
mode = "0440";
|
||||
group = "seafile";
|
||||
};
|
||||
services.seafile = {
|
||||
enable = true;
|
||||
adminEmail = "admin@rfive.de";
|
||||
|
@ -20,7 +15,7 @@ in
|
|||
OAUTH_ENABLE_INSECURE_TRANSPORT = True
|
||||
|
||||
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_REDIRECT_URL = 'https://seafile.rfive.de/oauth/callback/'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue