diff options
author | silverwind <me@silverwind.io> | 2020-11-30 20:52:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-30 14:52:04 -0500 |
commit | bc455ed257a617bb1c033157578c4f864ff4d527 (patch) | |
tree | 7bfe311b62c43906a8fdc67ca5bf1019d15dcfe7 /docker | |
parent | 870fd533202ee7f480e0ddc5bf48abb8e913d369 (diff) | |
download | gitea-bc455ed257a617bb1c033157578c4f864ff4d527.tar.gz gitea-bc455ed257a617bb1c033157578c4f864ff4d527.zip |
Set RUN_MODE prod by default (#13765)
I think it's a bad default to have "dev" as the default run mode which
enables debugging and now also disables HTTP caching. It's better to
just default to a value suitable for general deployments.
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'docker')
-rwxr-xr-x | docker/root/etc/s6/gitea/setup | 2 | ||||
-rwxr-xr-x | docker/rootless/usr/local/bin/docker-setup.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docker/root/etc/s6/gitea/setup b/docker/root/etc/s6/gitea/setup index 892fa7fd2b..4449420b99 100755 --- a/docker/root/etc/s6/gitea/setup +++ b/docker/root/etc/s6/gitea/setup @@ -25,7 +25,7 @@ if [ ! -f ${GITEA_CUSTOM}/conf/app.ini ]; then # Substitude the environment variables in the template APP_NAME=${APP_NAME:-"Gitea: Git with a cup of tea"} \ - RUN_MODE=${RUN_MODE:-"dev"} \ + RUN_MODE=${RUN_MODE:-"prod"} \ DOMAIN=${DOMAIN:-"localhost"} \ SSH_DOMAIN=${SSH_DOMAIN:-"localhost"} \ HTTP_PORT=${HTTP_PORT:-"3000"} \ diff --git a/docker/rootless/usr/local/bin/docker-setup.sh b/docker/rootless/usr/local/bin/docker-setup.sh index 1ee8c2c97f..9764ff3c59 100755 --- a/docker/rootless/usr/local/bin/docker-setup.sh +++ b/docker/rootless/usr/local/bin/docker-setup.sh @@ -27,7 +27,7 @@ if [ ! -f ${GITEA_APP_INI} ]; then # Substitude the environment variables in the template APP_NAME=${APP_NAME:-"Gitea: Git with a cup of tea"} \ - RUN_MODE=${RUN_MODE:-"dev"} \ + RUN_MODE=${RUN_MODE:-"prod"} \ RUN_USER=${USER:-"git"} \ SSH_DOMAIN=${SSH_DOMAIN:-"localhost"} \ HTTP_PORT=${HTTP_PORT:-"3000"} \ |