Configure Forgejo to use Postgres
This commit is contained in:
parent
ecb8159185
commit
f3ff1388ac
5 changed files with 31 additions and 13 deletions
|
@ -23,6 +23,10 @@ in {
|
|||
LFS_JWT_SECRET = "";
|
||||
LFS_JWT_SECRET_URI = "file://${forgejoConfigPath}/lfs_jwt_secret";
|
||||
};
|
||||
database = {
|
||||
type = "postgres";
|
||||
passwordFile = "${forgejoConfigPath}/database_password";
|
||||
};
|
||||
security = {
|
||||
INSTALL_LOCK = true;
|
||||
INTERNAL_TOKEN = lib.mkForce "";
|
||||
|
@ -49,6 +53,7 @@ in {
|
|||
${pkgs.forgejo}/bin/gitea migrate
|
||||
'';
|
||||
sops.secrets = arrayToSecrets [
|
||||
"database_password"
|
||||
"internal_token"
|
||||
"lfs_jwt_secret"
|
||||
"oauth2_jwt_secret"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue