diff options
author | Alex Auvolat <alex@adnab.me> | 2022-02-27 20:21:55 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-02-27 20:21:55 +0100 |
commit | 3b90fd15dbe447706a9d1eb7682887474058bd38 (patch) | |
tree | 2f6d4313403987eabc75d1870f0678aa9cdbfa60 /app/bad.nextcloud/deploy/nextcloud.hcl | |
parent | 02ed668286cebfa3ac079ab5263950a22816f61c (diff) | |
download | nixcfg-3b90fd15dbe447706a9d1eb7682887474058bd38.tar.gz nixcfg-3b90fd15dbe447706a9d1eb7682887474058bd38.zip |
tiny progress on nextcloud but still bad
Diffstat (limited to 'app/bad.nextcloud/deploy/nextcloud.hcl')
-rw-r--r-- | app/bad.nextcloud/deploy/nextcloud.hcl | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/app/bad.nextcloud/deploy/nextcloud.hcl b/app/bad.nextcloud/deploy/nextcloud.hcl index 8311bbe..45d1b6e 100644 --- a/app/bad.nextcloud/deploy/nextcloud.hcl +++ b/app/bad.nextcloud/deploy/nextcloud.hcl @@ -37,6 +37,7 @@ job "nextcloud" { "secrets/litestream.yml:/etc/litestream.yml" ] } + user = "33" template { data = file("../config/litestream.yml") @@ -54,19 +55,24 @@ job "nextcloud" { config { image = "nextcloud:22.2.3-apache" ports = [ "http" ] + #entrypoint = [ "/bin/sh", "-c" ] + #command = "apache2-foreground" volumes = [ - "../alloc/data:/ephemeral", + "../alloc/data:/var/www/html/data", ] } + user = "33" template { data = <<EOH -SQLITE_DATABASE=/ephemeral/nextcloud.db +SQLITE_DATABASE=nextcloud NEXTCLOUD_ADMIN_USER={{ key "secrets/nextcloud/admin_user" }} NEXTCLOUD_ADMIN_PASSWORD={{ key "secrets/nextcloud/admin_pass" }} NEXTCLOUD_TRUSTED_DOMAINS=cloud.home.adnab.me -OBJECTSTORE_S3_HOST={{ env "node.unique.network.ip-address" }} +OVERWRITEHOST=cloud.home.adnab.me +OVERWRITEPROTOCOL=https +OBJECTSTORE_S3_HOST={{ env "attr.unique.network.ip-address" }} OBJECTSTORE_S3_PORT=3990 OBJECTSTORE_S3_BUCKET=nextcloud-data OBJECTSTORE_S3_KEY={{ key "secrets/nextcloud/s3_access_key" }} @@ -90,10 +96,15 @@ EOH "tricot cloud.home.adnab.me 100", ] check { - type = "http" - path = "/" - interval = "10s" - timeout = "2s" + type = "tcp" + port = "http" + interval = "60s" + timeout = "5s" + check_restart { + limit = 3 + grace = "90s" + ignore_warnings = false + } } } } @@ -110,6 +121,7 @@ EOH "secrets/litestream.yml:/etc/litestream.yml" ] } + user = "33" template { data = file("../config/litestream.yml") |