Skip to content

Commit 85be794

Browse files
committed
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.
1 parent 850012b commit 85be794

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

docker/root/etc/templates/app.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ DISABLE_SSH = $DISABLE_SSH
2020
SSH_PORT = $SSH_PORT
2121
SSH_LISTEN_PORT = $SSH_LISTEN_PORT
2222
LFS_START_SERVER = $LFS_START_SERVER
23+
ACME_DIRECTORY = /data/gitea/acme
2324

2425
[database]
2526
PATH = /data/gitea/gitea.db

docker/rootless/etc/templates/app.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ SSH_PORT = $SSH_PORT
2323
SSH_LISTEN_PORT = $SSH_LISTEN_PORT
2424
BUILTIN_SSH_SERVER_USER = $RUN_USER
2525
LFS_START_SERVER = $LFS_START_SERVER
26+
ACME_DIRECTORY = /data/gitea/acme
2627

2728
[database]
2829
PATH = $GITEA_WORK_DIR/data/gitea.db

0 commit comments

Comments
 (0)