diff options
author | Armaël Guéneau <armael.gueneau@ens-lyon.org> | 2024-11-28 21:28:48 +0100 |
---|---|---|
committer | Armaël Guéneau <armael.gueneau@ens-lyon.org> | 2024-11-28 21:28:48 +0100 |
commit | 412f4018f9434be71def102b68883adb92dd5074 (patch) | |
tree | 8ab31ee15eb373e22e585b99cced0374f851fd3f | |
parent | 83060bab27a829cd7116167e0331cabe4726ae78 (diff) | |
download | nixcfg-412f4018f9434be71def102b68883adb92dd5074.tar.gz nixcfg-412f4018f9434be71def102b68883adb92dd5074.zip |
suppression de cryptpad-debug
-rw-r--r-- | cluster/prod/app/cryptpad/deploy/cryptpad-debug.hcl | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/cluster/prod/app/cryptpad/deploy/cryptpad-debug.hcl b/cluster/prod/app/cryptpad/deploy/cryptpad-debug.hcl deleted file mode 100644 index 7788273..0000000 --- a/cluster/prod/app/cryptpad/deploy/cryptpad-debug.hcl +++ /dev/null @@ -1,80 +0,0 @@ -job "cryptpad-debug" { - datacenters = ["neptune"] - type = "service" - - group "cryptpad" { - count = 1 - - network { - port "http" { - to = 3000 - } - } - - restart { - attempts = 10 - delay = "30s" - } - - task "main" { - driver = "docker" - - constraint { - attribute = "${attr.unique.hostname}" - operator = "=" - value = "courgette" - } - - config { - image = "armael/cryptpad:2024.9.0" - ports = [ "http" ] - - volumes = [ - "/mnt/ssd/cryptpad-debug:/mnt", - "secrets/config-debug.js:/cryptpad/config.js", - ] - } - env { - CRYPTPAD_CONFIG = "/cryptpad/config.js" - } - - template { - data = file("../config/config-debug.js") - destination = "secrets/config-debug.js" - } - - /* Disabled because it requires modifications to the docker image and I do not want to invest the time yet - template { - data = file("../config/application_config-debug.js") - destination = "secrets/config-debug.js" - } - */ - - resources { - memory = 1000 - cpu = 500 - } - - service { - name = "cryptpad-debug" - port = "http" - tags = [ - "tricot pad-debug.deuxfleurs.fr", - "tricot pad-sandbox-debug.deuxfleurs.fr", - "tricot-add-header Cross-Origin-Resource-Policy cross-origin", - "tricot-add-header Cross-Origin-Embedder-Policy require-corp", - "tricot-add-header Access-Control-Allow-Origin *", - "tricot-add-header Access-Control-Allow-Credentials true", - "d53-cname pad-debug.deuxfleurs.fr", - "d53-cname pad-sandbox-debug.deuxfleurs.fr", - ] - check { - type = "http" - path = "/" - interval = "10s" - timeout = "2s" - } - } - } - } -} |