1
0
Fork 0
mirror of https://github.com/zhaofengli/attic.git synced 2024-12-14 11:57:30 +00:00

Merge pull request #185 from zhaofengli/nixos-use-hs256-placeholder-secret

nixos: Switch back to setting a placeholder HS256 secret
This commit is contained in:
Zhaofeng Li 2024-10-10 10:22:51 -06:00 committed by GitHub
commit e5c8d2d509
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,7 +16,7 @@ let
} '' } ''
cat $configFile cat $configFile
export ATTIC_SERVER_TOKEN_RS256_SECRET_BASE64="$(${pkgs.openssl}/bin/openssl genrsa -traditional 4096 | ${pkgs.coreutils}/bin/base64 -w0)" export ATTIC_SERVER_TOKEN_HS256_SECRET_BASE64="dGVzdCBzZWNyZXQ="
export ATTIC_SERVER_DATABASE_URL="sqlite://:memory:" export ATTIC_SERVER_DATABASE_URL="sqlite://:memory:"
${cfg.package}/bin/atticd --mode check-config -f $configFile ${cfg.package}/bin/atticd --mode check-config -f $configFile
cat <$configFile >$out cat <$configFile >$out