Set SSH domain

This commit is contained in:
Luke Murphy 2020-03-23 15:19:29 +01:00
parent d4b757162f
commit 5c9ea73187
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
3 changed files with 3 additions and 0 deletions

View File

@ -104,6 +104,7 @@
JWT_SECRET: "{{ jwt_secret }}"
RUN_MODE: "prod"
SECRET_KEY: "{{ secret_key}}"
SSH_DOMAIN: "{{ ssh_domain }}"
STARTUP_TIMEOUT: "{{ startup_timeout }}"
USER_GID: "{{ gitea_user_guid }}"
USER_UID: "{{ gitea_user_uid }}"

View File

@ -12,3 +12,4 @@ enable_openid_signup: "true"
install_lock: "true"
startup_timeout: "0"
whitelist_uris: "https://git.autonomic.zone"
ssh_domain: "git.autonomic.zon"

View File

@ -63,6 +63,7 @@ setup_app_ini() {
crudini --set "$app_ini" server ROOT_URL "https://%(DOMAIN)s/"
crudini --set "$app_ini" server HTTP_ADDR ""
crudini --set "$app_ini" server HTTP_PORT "3000"
crudini --set "$app_ini" server SSH_DOMAIN "${SSH_DOMAIN}"
crudini --set "$app_ini" service DISABLE_REGISTRATION "${DISABLE_REGISTRATION}"
crudini --set "$app_ini" service ALLOW_ONLY_EXTERNAL_REGISTRATION "${ALLOW_ONLY_EXTERNAL_REGISTRATION}"