aboutsummaryrefslogtreecommitdiff
path: root/app/bad.nextcloud/deploy
diff options
context:
space:
mode:
Diffstat (limited to 'app/bad.nextcloud/deploy')
-rw-r--r--app/bad.nextcloud/deploy/nextcloud.hcl26
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")