aboutsummaryrefslogtreecommitdiff
path: root/cluster/prod/app/cryptpad
diff options
context:
space:
mode:
Diffstat (limited to 'cluster/prod/app/cryptpad')
-rw-r--r--cluster/prod/app/cryptpad/deploy/backup.hcl57
-rw-r--r--cluster/prod/app/cryptpad/secrets/cryptpad_backup/backup_aws_access_key_id1
-rw-r--r--cluster/prod/app/cryptpad/secrets/cryptpad_backup/backup_aws_secret_access_key1
-rw-r--r--cluster/prod/app/cryptpad/secrets/cryptpad_backup/backup_restic_password1
-rw-r--r--cluster/prod/app/cryptpad/secrets/cryptpad_backup/backup_restic_repository1
5 files changed, 0 insertions, 61 deletions
diff --git a/cluster/prod/app/cryptpad/deploy/backup.hcl b/cluster/prod/app/cryptpad/deploy/backup.hcl
deleted file mode 100644
index 99dee2f..0000000
--- a/cluster/prod/app/cryptpad/deploy/backup.hcl
+++ /dev/null
@@ -1,57 +0,0 @@
-job "cryptpad_backup" {
- datacenters = ["neptune"]
- type = "batch"
-
- priority = "60"
-
- periodic {
- cron = "@daily"
- // Do not allow overlapping runs.
- prohibit_overlap = true
- }
-
- group "backup-cryptpad" {
- constraint {
- attribute = "${attr.unique.hostname}"
- operator = "="
- value = "courgette"
- }
-
- task "main" {
- driver = "docker"
-
- config {
- image = "restic/restic:0.12.1"
- entrypoint = [ "/bin/sh", "-c" ]
- args = [ "restic backup /cryptpad && restic forget --keep-within 1m1d --keep-within-weekly 3m --keep-within-monthly 1y && restic prune --max-unused 50% --max-repack-size 2G && restic check" ]
- volumes = [
- "/mnt/storage/cryptpad:/cryptpad"
- ]
- }
-
- template {
- data = <<EOH
-AWS_ACCESS_KEY_ID={{ key "secrets/cryptpad_backup/backup_aws_access_key_id" }}
-AWS_SECRET_ACCESS_KEY={{ key "secrets/cryptpad_backup/backup_aws_secret_access_key" }}
-RESTIC_REPOSITORY={{ key "secrets/cryptpad_backup/backup_restic_repository" }}
-RESTIC_PASSWORD={{ key "secrets/cryptpad_backup/backup_restic_password" }}
-EOH
-
- destination = "secrets/env_vars"
- env = true
- }
-
- resources {
- cpu = 500
- memory = 200
- }
-
- restart {
- attempts = 2
- interval = "30m"
- delay = "15s"
- mode = "fail"
- }
- }
- }
-}
diff --git a/cluster/prod/app/cryptpad/secrets/cryptpad_backup/backup_aws_access_key_id b/cluster/prod/app/cryptpad/secrets/cryptpad_backup/backup_aws_access_key_id
deleted file mode 100644
index 9235e53..0000000
--- a/cluster/prod/app/cryptpad/secrets/cryptpad_backup/backup_aws_access_key_id
+++ /dev/null
@@ -1 +0,0 @@
-USER Backup AWS access key ID
diff --git a/cluster/prod/app/cryptpad/secrets/cryptpad_backup/backup_aws_secret_access_key b/cluster/prod/app/cryptpad/secrets/cryptpad_backup/backup_aws_secret_access_key
deleted file mode 100644
index f34677e..0000000
--- a/cluster/prod/app/cryptpad/secrets/cryptpad_backup/backup_aws_secret_access_key
+++ /dev/null
@@ -1 +0,0 @@
-USER Backup AWS secret access key
diff --git a/cluster/prod/app/cryptpad/secrets/cryptpad_backup/backup_restic_password b/cluster/prod/app/cryptpad/secrets/cryptpad_backup/backup_restic_password
deleted file mode 100644
index fbaa5fa..0000000
--- a/cluster/prod/app/cryptpad/secrets/cryptpad_backup/backup_restic_password
+++ /dev/null
@@ -1 +0,0 @@
-USER Restic password to encrypt backups
diff --git a/cluster/prod/app/cryptpad/secrets/cryptpad_backup/backup_restic_repository b/cluster/prod/app/cryptpad/secrets/cryptpad_backup/backup_restic_repository
deleted file mode 100644
index 3f6cb93..0000000
--- a/cluster/prod/app/cryptpad/secrets/cryptpad_backup/backup_restic_repository
+++ /dev/null
@@ -1 +0,0 @@
-USER Restic repository, eg. s3:https://s3.garage.tld