aboutsummaryrefslogtreecommitdiffstats
path: root/docker/root/etc
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-11-30 20:52:04 +0100
committerGitHub <noreply@github.com>2020-11-30 14:52:04 -0500
commitbc455ed257a617bb1c033157578c4f864ff4d527 (patch)
tree7bfe311b62c43906a8fdc67ca5bf1019d15dcfe7 /docker/root/etc
parent870fd533202ee7f480e0ddc5bf48abb8e913d369 (diff)
downloadgitea-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/root/etc')
-rwxr-xr-xdocker/root/etc/s6/gitea/setup2
1 files changed, 1 insertions, 1 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"} \