diff --git a/.gitlab-ci/app.ini b/.gitlab-ci/app.ini new file mode 100644 index 0000000..82daa86 --- /dev/null +++ b/.gitlab-ci/app.ini @@ -0,0 +1,68 @@ +APP_NAME = Gitea: Git with a cup of tea +RUN_USER = gitea +RUN_MODE = prod + +[oauth2] +JWT_SECRET = ZNx_gU2J4h3LaVbsKnH8uF2w7N6zpz3OY9hutxY1KUM + +[security] +INTERNAL_TOKEN = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE1OTI2NTUwNjJ9.cd4bdwfg3nK0cDb_1abVCp54skt40CgSh5gN4ltgGBE +INSTALL_LOCK = true +SECRET_KEY = 8Az2FqMaPXLFaUUT6isOZpiXATm60Wv2SLjxPBtObOnHYfCsPDmIXLugLEEpM5Wl + +[database] +DB_TYPE = sqlite3 +HOST = 127.0.0.1:5432 +NAME = gitea +USER = gitea +PASSWD = +SSL_MODE = disable +CHARSET = utf8 +PATH = /var/lib/gitea/data/gitea.db + +[repository] +ROOT = /var/lib/gitea/gitea-repositories + +[server] +SSH_DOMAIN = localhost +DOMAIN = localhost +HTTP_PORT = 3000 +ROOT_URL = http://localhost:3000/ +DISABLE_SSH = false +SSH_PORT = 22 +LFS_START_SERVER = true +LFS_CONTENT_PATH = /var/lib/gitea/data/lfs +LFS_JWT_SECRET = TYm7pYjpik1bAJeZUMCsJGedKDQHvOi3cZdu36xMotk +OFFLINE_MODE = false + +[mailer] +ENABLED = false + +[service] +REGISTER_EMAIL_CONFIRM = false +ENABLE_NOTIFY_MAIL = false +DISABLE_REGISTRATION = false +ALLOW_ONLY_EXTERNAL_REGISTRATION = false +ENABLE_CAPTCHA = false +REQUIRE_SIGNIN_VIEW = false +DEFAULT_KEEP_EMAIL_PRIVATE = false +DEFAULT_ALLOW_CREATE_ORGANIZATION = true +DEFAULT_ENABLE_TIMETRACKING = true +NO_REPLY_ADDRESS = noreply.localhost + +[picture] +DISABLE_GRAVATAR = false +ENABLE_FEDERATED_AVATAR = true + +[openid] +ENABLE_OPENID_SIGNIN = true +ENABLE_OPENID_SIGNUP = true + +[session] +PROVIDER = file + +[log] +MODE = file +LEVEL = info +ROOT_PATH = /var/lib/gitea/log + diff --git a/.gitlab-ci/data.tgz b/.gitlab-ci/data.tgz deleted file mode 100644 index 62037dc..0000000 Binary files a/.gitlab-ci/data.tgz and /dev/null differ diff --git a/.gitlab-ci/test-install.sh b/.gitlab-ci/test-install.sh index d57b20e..169804e 100644 --- a/.gitlab-ci/test-install.sh +++ b/.gitlab-ci/test-install.sh @@ -2,5 +2,5 @@ . "${CI_PROJECT_DIR}/.gitlab-ci/test.sh" -apt-get -qqy install "${CI_PROJECT_DIR}/gitea_${VERSION}-${PATCHLEVEL}_amd64.deb" +apt-get -y install "${CI_PROJECT_DIR}/gitea_${VERSION}-${PATCHLEVEL}_amd64.deb" start_gitea diff --git a/.gitlab-ci/test-update.sh b/.gitlab-ci/test-update.sh index 91e949a..fee4d3a 100644 --- a/.gitlab-ci/test-update.sh +++ b/.gitlab-ci/test-update.sh @@ -4,10 +4,10 @@ curl -sL -o /etc/apt/trusted.gpg.d/morph027-gitea.asc https://packaging.gitlab.io/gitea/gpg.key echo "deb [arch=amd64] https://packaging.gitlab.io/gitea gitea main" > /etc/apt/sources.list.d/morph027-gitea.list -apt-get -qq update -apt-get -qqy install gitea +apt-get update +apt-get -y install gitea tar -C / -xzf "/${CI_PROJECT_DIR}/.gitlab-ci/data.tgz" chown -R gitea: /var/lib/gitea /etc/gitea start_gitea -apt-get -qqy install "${CI_PROJECT_DIR}/gitea_${VERSION}-${PATCHLEVEL}_amd64.deb" +apt-get -y --allow-downgrades install "${CI_PROJECT_DIR}/gitea_${VERSION}-${PATCHLEVEL}_amd64.deb" restart_gitea diff --git a/.gitlab-ci/test.sh b/.gitlab-ci/test.sh index 3b8899d..5c69690 100644 --- a/.gitlab-ci/test.sh +++ b/.gitlab-ci/test.sh @@ -20,5 +20,5 @@ restart_gitea() { start_gitea } -apt-get -qq update -apt-get -qqy install curl jq +apt-get update +apt-get -y install curl jq