diff options
author | Fluf <36822577+flufmonster@users.noreply.github.com> | 2018-05-23 11:31:12 -0400 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2018-05-23 23:31:12 +0800 |
commit | b299d7bceb808e2dc4aa2c92ba5310e73c8508a8 (patch) | |
tree | 6fde117bcc4133ae52da8790cc608a61eef890af /docker/etc/s6/gitea/setup | |
parent | 60d95a0b858aa0c22bb621cbe079fb70261d594c (diff) | |
download | gitea-b299d7bceb808e2dc4aa2c92ba5310e73c8508a8.tar.gz gitea-b299d7bceb808e2dc4aa2c92ba5310e73c8508a8.zip |
Add Environment Variables to Docker template (#4012)
* Add disable registration as an environment variable
for docker
* Add REQUIRE_SIGNIN_VIEW as env var to docker
* Add variables to template
* Update docker docs
Diffstat (limited to 'docker/etc/s6/gitea/setup')
-rwxr-xr-x | docker/etc/s6/gitea/setup | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docker/etc/s6/gitea/setup b/docker/etc/s6/gitea/setup index 6ca9b82123..500cca584c 100755 --- a/docker/etc/s6/gitea/setup +++ b/docker/etc/s6/gitea/setup @@ -35,6 +35,8 @@ if [ ! -f /data/gitea/conf/app.ini ]; then DB_USER=${DB_USER:-"root"} \ DB_PASSWD=${DB_PASSWD:-""} \ INSTALL_LOCK=${INSTALL_LOCK:-"false"} \ + DISABLE_REGISTRATION=${DISABLE_REGISTRATION:-"false"} \ + REQUIRE_SIGNIN_VIEW=${REQUIRE_SIGNIN_VIEW:-"false"} \ SECRET_KEY=${SECRET_KEY:-""} \ envsubst < /etc/templates/app.ini > /data/gitea/conf/app.ini fi |