add the missing config.edn
This commit is contained in:
parent
6f0bf27eb0
commit
0c6fe46562
3 changed files with 21 additions and 5 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -25,8 +25,5 @@ public/js/
|
|||
*.iml
|
||||
.idea/
|
||||
|
||||
auth.edn
|
||||
config.edn
|
||||
|
||||
.eastwood
|
||||
|
||||
|
|
21
infrastructure/backup/image/resources/config.edn
Normal file
21
infrastructure/backup/image/resources/config.edn
Normal file
|
@ -0,0 +1,21 @@
|
|||
{:restic-repo {:password-file #env-or-file "RESTIC_PASSWORD_FILE"
|
||||
:restic-repository #env-or-file "RESTIC_REPOSITORY"}
|
||||
|
||||
:file-config #merge [#ref [:restic-repo]
|
||||
{:backup-path "files"
|
||||
:execution-directory "/var/backups/"
|
||||
:files ["gitea/" "git/repositories/"]}]
|
||||
|
||||
|
||||
:db-config #merge [#ref [:restic-repo]
|
||||
{:backup-path "pg-database"
|
||||
:pg-host #env-or-file "POSTGRES_SERVICE"
|
||||
:pg-port #env-or-file "POSTGRES_PORT"
|
||||
:pg-db #env-or-file "POSTGRES_DB"
|
||||
:pg-user #env-or-file "POSTGRES_USER"
|
||||
:pg-password #env-or-file "POSTGRES_PASSWORD"}]
|
||||
|
||||
:aws-config {:aws-access-key-id #env-or-file "AWS_ACCESS_KEY_ID"
|
||||
:aws-secret-access-key #env-or-file "AWS_SECRET_ACCESS_KEY"}
|
||||
|
||||
:dry-run {:dry-run true :debug true}}
|
|
@ -59,8 +59,6 @@ spec:
|
|||
value: /var/run/secrets/backup-secrets/restic-password
|
||||
- name: RESTIC_NEW_PASSWORD_FILE
|
||||
value: /var/run/secrets/backup-secrets/restic-new-password
|
||||
- name: CERTIFICATE_FILE
|
||||
value: ""
|
||||
volumeMounts:
|
||||
- name: forgejo-data-volume
|
||||
mountPath: /var/backups
|
||||
|
|
Loading…
Reference in a new issue