Skip to content

Commit 314e032

Browse files
authored
Add support for getting password from file
Add support for getting password from file. This is good feature for using docker secrets
1 parent 9264811 commit 314e032

File tree

1 file changed

+3
-0
lines changed
  • docker/root/etc/s6/gitea

1 file changed

+3
-0
lines changed

docker/root/etc/s6/gitea/setup

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ if [ ! -f ${GITEA_CUSTOM}/conf/app.ini ]; then
3030
if [ -n "$SECRET_KEY" ] && [ -z "$INSTALL_LOCK" ]; then
3131
INSTALL_LOCK=true
3232
fi
33+
if [ "$DB_PASSWD_FILE" ]; then
34+
DB_PASSWD=`cat $DB_PASSWD_FILE`;
35+
fi
3336

3437
# Substitute the environment variables in the template
3538
APP_NAME=${APP_NAME:-"Gitea: Git with a cup of tea"} \

0 commit comments

Comments
 (0)