First stage refactor for dynamic app specs (napps.scm).

This commit is contained in:
2026-07-02 19:39:56 -07:00
parent 868e00ac41
commit 04407b16b0
49 changed files with 420 additions and 253 deletions

View File

@@ -0,0 +1,20 @@
DOMAIN="nextcloud.nassella.cc"
NEXTCLOUD_TRUSTED_DOMAINS=${DOMAIN}
# reverse proxy config
OVERWRITEHOST=${DOMAIN}
OVERWRITECLIURL=https://${DOMAIN}
OVERWRITEPROTOCOL=https
TRUSTED_PROXIES=172.16.0.0/24 # trust the local lb
PHP_MEMORY_LIMIT=1G
PHP_UPLOAD_LIMIT=10G
POSTGRES_HOST=db
POSTGRES_DB_FILE=/run/secrets/postgres_db
POSTGRES_USER_FILE=/run/secrets/postgres_user
POSTGRES_PASSWORD_FILE=/run/secrets/postgres_password
# admin user
NEXTCLOUD_ADMIN_PASSWORD_FILE=/run/secrets/nextcloud_admin_password
NEXTCLOUD_ADMIN_USER_FILE=/run/secrets/nextcloud_admin_user
# redis
REDIS_HOST=redis
REDIS_HOST_PASSWORD_FILE=/run/secrets/redis_password

View File

@@ -0,0 +1 @@
foodisgood

View File

@@ -0,0 +1 @@
admin

View File

@@ -0,0 +1 @@
nextcloud

View File

@@ -0,0 +1 @@
dbpassword

View File

@@ -0,0 +1 @@
nextcloud

View File

@@ -0,0 +1 @@
redispassword

View File

@@ -0,0 +1,25 @@
((name . "Nextcloud")
(key . nextcloud)
(dir . "nextcloud")
(current-version . "34")
(versions . (("34")))
(website . "https://nextcloud.com")
(docker-secrets . (("NEXTCLOUD_ADMIN_USER" "nextcloud_admin_user")
("NEXTCLOUD_ADMIN_PASSWORD" "nextcloud_admin_password")
("NEXTCLOUD_POSTGRES_DB" "postgres_db")
("NEXTCLOUD_POSTGRES_USER" "postgres_user")
("NEXTCLOUD_POSTGRES_PASSWORD" "postgres_password")
("NEXTCLOUD_REDIS_PASSWORD" "redis_password")))
(scripts . (("make-nextcloud-env.sh"
((deps . ("nextcloud.env.tmpl"))
(output . "nextcloud.env")))))
(apps-config . (("NEXTCLOUD_ADMIN_USER" admin-user)
("NEXTCLOUD_ADMIN_PASSWORD" admin-password)
("NEXTCLOUD_POSTGRES_DB" "nextcloud")
("NEXTCLOUD_POSTGRES_USER" "nextcloud")
("NEXTCLOUD_POSTGRES_PASSWORD" postgres-password)
("NEXTCLOUD_REDIS_PASSWORD" redis-password)))
(general . ((smtp . #t)))
(caddyfile . " reverse_proxy http://nextcloud:80")
(passwd . ((name . "nextcloud")
(uid . "1001"))))