Skip to content

Commit e07ff2f

Browse files
slonopotamustechknowlogick
authored andcommitted
[docker] Add LFS_START_SERVER option to control git-lfs support (#7281)
1 parent aa7c34c commit e07ff2f

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

docker/root/etc/s6/gitea/setup

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ if [ ! -f ${GITEA_CUSTOM}/conf/app.ini ]; then
3131
ROOT_URL=${ROOT_URL:-""} \
3232
DISABLE_SSH=${DISABLE_SSH:-"false"} \
3333
SSH_PORT=${SSH_PORT:-"22"} \
34+
LFS_START_SERVER=${LFS_START_SERVER:-"false"} \
3435
DB_TYPE=${DB_TYPE:-"sqlite3"} \
3536
DB_HOST=${DB_HOST:-"localhost:3306"} \
3637
DB_NAME=${DB_NAME:-"gitea"} \

docker/root/etc/templates/app.ini

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ HTTP_PORT = $HTTP_PORT
1717
ROOT_URL = $ROOT_URL
1818
DISABLE_SSH = $DISABLE_SSH
1919
SSH_PORT = $SSH_PORT
20+
LFS_START_SERVER = $LFS_START_SERVER
2021
LFS_CONTENT_PATH = /data/git/lfs
2122

2223
[database]

docs/content/doc/installation/with-docker.en-us.md

+1
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ You can configure some of Gitea's settings via environment variables:
248248
* `DISABLE_SSH`: **false**: Disable SSH feature when it's not available.
249249
* `HTTP_PORT`: **3000**: HTTP listen port.
250250
* `ROOT_URL`: **""**: Overwrite the automatically generated public URL. This is useful if the internal and the external URL don't match (e.g. in Docker).
251+
* `LFS_START_SERVER`: **false**: Enables git-lfs support.
251252
* `DB_TYPE`: **sqlite3**: The database type in use \[mysql, postgres, mssql, sqlite3\].
252253
* `DB_HOST`: **localhost:3306**: Database host address and port.
253254
* `DB_NAME`: **gitea**: Database name.

0 commit comments

Comments
 (0)