.
This commit is contained in:
parent
cd080150d3
commit
b5a560c7b8
|
@ -34,6 +34,7 @@ local config = {
|
||||||
publicSecrets,
|
publicSecrets,
|
||||||
secretSecrets,
|
secretSecrets,
|
||||||
[
|
[
|
||||||
|
'SCHEME',
|
||||||
'DOMAIN',
|
'DOMAIN',
|
||||||
'REGISTRY_DOMAIN',
|
'REGISTRY_DOMAIN',
|
||||||
'REGISTRY_PORT',
|
'REGISTRY_PORT',
|
||||||
|
|
|
@ -154,6 +154,7 @@ steps:
|
||||||
- drone_build_number
|
- drone_build_number
|
||||||
- drone_repo_name
|
- drone_repo_name
|
||||||
- drone_repo_namespace
|
- drone_repo_namespace
|
||||||
|
- scheme
|
||||||
- domain
|
- domain
|
||||||
- registry_domain
|
- registry_domain
|
||||||
- registry_port
|
- registry_port
|
||||||
|
@ -177,6 +178,7 @@ steps:
|
||||||
- export GITEA_MAILER_FROM=$${GITEA_MAILER_FROM}
|
- export GITEA_MAILER_FROM=$${GITEA_MAILER_FROM}
|
||||||
- export GITEA_MAILER_USER=$${GITEA_MAILER_USER}
|
- export GITEA_MAILER_USER=$${GITEA_MAILER_USER}
|
||||||
- export GITEA_APP_NAME=$${GITEA_APP_NAME}
|
- export GITEA_APP_NAME=$${GITEA_APP_NAME}
|
||||||
|
- export SCHEME=$${SCHEME}
|
||||||
- export DOMAIN=$${DOMAIN}
|
- export DOMAIN=$${DOMAIN}
|
||||||
- export REGISTRY_DOMAIN=$${REGISTRY_DOMAIN}
|
- export REGISTRY_DOMAIN=$${REGISTRY_DOMAIN}
|
||||||
- export REGISTRY_PORT=$${REGISTRY_PORT}
|
- export REGISTRY_PORT=$${REGISTRY_PORT}
|
||||||
|
|
|
@ -12,6 +12,7 @@ services:
|
||||||
- USER_UID=1000
|
- USER_UID=1000
|
||||||
- USER_GID=1000
|
- USER_GID=1000
|
||||||
- SSH_DOMAIN=${DOMAIN}
|
- SSH_DOMAIN=${DOMAIN}
|
||||||
|
- SCHEME=${SCHEME}
|
||||||
- GITEA_APP_NAME=${GITEA_APP_NAME}
|
- GITEA_APP_NAME=${GITEA_APP_NAME}
|
||||||
- GITEA_DOMAIN=${DOMAIN}
|
- GITEA_DOMAIN=${DOMAIN}
|
||||||
- GITEA_SERVER_LFS_JWT_SECRET=$GITEA_SERVER_LFS_JWT_SECRET
|
- GITEA_SERVER_LFS_JWT_SECRET=$GITEA_SERVER_LFS_JWT_SECRET
|
||||||
|
|
|
@ -17,7 +17,7 @@ TEMP_PATH = /data/gitea/uploads
|
||||||
APP_DATA_PATH = /data/gitea
|
APP_DATA_PATH = /data/gitea
|
||||||
SSH_DOMAIN = ${DOMAIN}
|
SSH_DOMAIN = ${DOMAIN}
|
||||||
HTTP_PORT = 3000
|
HTTP_PORT = 3000
|
||||||
ROOT_URL = https://${GITEA_DOMAIN}/git/
|
ROOT_URL = ${SCHEME}://${GITEA_DOMAIN}/git/
|
||||||
DISABLE_SSH = false
|
DISABLE_SSH = false
|
||||||
SSH_PORT = 22
|
SSH_PORT = 22
|
||||||
SSH_LISTEN_PORT = 22
|
SSH_LISTEN_PORT = 22
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
envsubst < /init/app.ini > /data/gitea/conf/app.ini
|
envsubst < /init/app.ini > /data/gitea/conf/app.ini
|
||||||
mkdir /data/gitea/templates
|
mkdir -p /data/gitea/templates
|
||||||
for file in /init/templates/*
|
for file in /init/templates/*
|
||||||
do
|
do
|
||||||
FILENAME=$(basename "$file")
|
FILENAME=$(basename "$file")
|
||||||
|
|
Loading…
Reference in New Issue