summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarat Radchenko <marat@slonopotamus.org>2019-06-24 08:33:57 +0300
committertechknowlogick <matti@mdranta.net>2019-06-24 01:33:56 -0400
commite07ff2f89064db8fa5c78a2a27a69d93183d10a4 (patch)
tree6786515f5ebc4a6870a4f9df95dd929f856d7288
parentaa7c34cf86081b71f796f6e5da60e62a3cda43ce (diff)
downloadgitea-e07ff2f89064db8fa5c78a2a27a69d93183d10a4.tar.gz
gitea-e07ff2f89064db8fa5c78a2a27a69d93183d10a4.zip
[docker] Add LFS_START_SERVER option to control git-lfs support (#7281)
-rwxr-xr-xdocker/root/etc/s6/gitea/setup1
-rw-r--r--docker/root/etc/templates/app.ini1
-rw-r--r--docs/content/doc/installation/with-docker.en-us.md1
3 files changed, 3 insertions, 0 deletions
diff --git a/docker/root/etc/s6/gitea/setup b/docker/root/etc/s6/gitea/setup
index dec0ee2b55..c4fbf5d65e 100755
--- a/docker/root/etc/s6/gitea/setup
+++ b/docker/root/etc/s6/gitea/setup
@@ -31,6 +31,7 @@ if [ ! -f ${GITEA_CUSTOM}/conf/app.ini ]; then
ROOT_URL=${ROOT_URL:-""} \
DISABLE_SSH=${DISABLE_SSH:-"false"} \
SSH_PORT=${SSH_PORT:-"22"} \
+ LFS_START_SERVER=${LFS_START_SERVER:-"false"} \
DB_TYPE=${DB_TYPE:-"sqlite3"} \
DB_HOST=${DB_HOST:-"localhost:3306"} \
DB_NAME=${DB_NAME:-"gitea"} \
diff --git a/docker/root/etc/templates/app.ini b/docker/root/etc/templates/app.ini
index 20cbb9053c..212cd854d3 100644
--- a/docker/root/etc/templates/app.ini
+++ b/docker/root/etc/templates/app.ini
@@ -17,6 +17,7 @@ HTTP_PORT = $HTTP_PORT
ROOT_URL = $ROOT_URL
DISABLE_SSH = $DISABLE_SSH
SSH_PORT = $SSH_PORT
+LFS_START_SERVER = $LFS_START_SERVER
LFS_CONTENT_PATH = /data/git/lfs
[database]
diff --git a/docs/content/doc/installation/with-docker.en-us.md b/docs/content/doc/installation/with-docker.en-us.md
index d8adc4b3a0..a403d18778 100644
--- a/docs/content/doc/installation/with-docker.en-us.md
+++ b/docs/content/doc/installation/with-docker.en-us.md
@@ -248,6 +248,7 @@ You can configure some of Gitea's settings via environment variables:
* `DISABLE_SSH`: **false**: Disable SSH feature when it's not available.
* `HTTP_PORT`: **3000**: HTTP listen port.
* `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).
+* `LFS_START_SERVER`: **false**: Enables git-lfs support.
* `DB_TYPE`: **sqlite3**: The database type in use \[mysql, postgres, mssql, sqlite3\].
* `DB_HOST`: **localhost:3306**: Database host address and port.
* `DB_NAME`: **gitea**: Database name.