From 85be79401efbd6eee0960611d6864fd792ae8f76 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Tue, 4 Nov 2025 13:45:50 +0100 Subject: [PATCH] Set default ACME_DIRECTORY for Docker installs to somewhere in a volume With the previous default, ACME certificates and accounts would be lost upon restarting the container because only the /data folder is bound to a (writable) volume in the suggested docker-compose.yml from the docs. --- docker/root/etc/templates/app.ini | 1 + docker/rootless/etc/templates/app.ini | 1 + 2 files changed, 2 insertions(+) diff --git a/docker/root/etc/templates/app.ini b/docker/root/etc/templates/app.ini index 01fb407f49..ead8c86848 100644 --- a/docker/root/etc/templates/app.ini +++ b/docker/root/etc/templates/app.ini @@ -20,6 +20,7 @@ DISABLE_SSH = $DISABLE_SSH SSH_PORT = $SSH_PORT SSH_LISTEN_PORT = $SSH_LISTEN_PORT LFS_START_SERVER = $LFS_START_SERVER +ACME_DIRECTORY = /data/gitea/acme [database] PATH = /data/gitea/gitea.db diff --git a/docker/rootless/etc/templates/app.ini b/docker/rootless/etc/templates/app.ini index 0057635062..c82673d420 100644 --- a/docker/rootless/etc/templates/app.ini +++ b/docker/rootless/etc/templates/app.ini @@ -23,6 +23,7 @@ SSH_PORT = $SSH_PORT SSH_LISTEN_PORT = $SSH_LISTEN_PORT BUILTIN_SSH_SERVER_USER = $RUN_USER LFS_START_SERVER = $LFS_START_SERVER +ACME_DIRECTORY = /data/gitea/acme [database] PATH = $GITEA_WORK_DIR/data/gitea.db