Bump Gitea, fix bad usage of environment

Effectively disabling self registrations
master
Quentin Duchemin 2023-08-10 15:41:24 +02:00
parent 68257a9f01
commit 268262426c
Signed by: Chosto
GPG Key ID: 96AB8AE7DFEA3D74
3 changed files with 14 additions and 13 deletions

View File

@ -3,7 +3,7 @@
# No cows because I am not a funny person
nocows = 1
force_color = True
stdout_callback = unixy
#stdout_callback = unixy
# Default inventory file, override with -i
inventory = ./inv/static.yml

View File

@ -19,17 +19,18 @@ services:
environment:
USER_UID: 1000
USER_GID: 1000
DB_TYPE: postgres
DB_HOST: db:5432
APP_NAME: {{ gitea_name }}
RUN_MODE: prod
DOMAIN: {{ gitea_subdomain }}.{{ domain_name }}
SSH_DOMAIN: {{ gitea_subdomain }}.{{ domain_name }}
ROOT_URL: https://{{ gitea_subdomain }}.{{ domain_name }}
DISABLE_REGISTRATION: "true"
DB_NAME: gitea
DB_USER: gitea
DB_PASSWD: "{{ gitea_db_password }}"
# See https://docs.gitea.com/installation/install-with-docker#managing-deployments-with-environment-variables
GITEA__database__DB_TYPE: postgres
GITEA__database__DB_HOST: db:5432
GITEA__database__NAME: gitea
GITEA__database__USER: gitea
GITEA__database__PASSWD: "{{ gitea_db_password }}"
GITEA__DEFAULT__APP_NAME: {{ gitea_name }}
GITEA__DEFAULT__RUN_MODE: prod
GITEA__server__DOMAIN: {{ gitea_subdomain }}.{{ domain_name }}
GITEA__server__SSH_DOMAIN: {{ gitea_subdomain }}.{{ domain_name }}
GITEA__server__ROOT_URL: https://{{ gitea_subdomain }}.{{ domain_name }}
GITEA__service__DISABLE_REGISTRATION: "true"
networks:
- proxy
- db

View File

@ -1,4 +1,4 @@
gitea_version: "1.14.1"
gitea_version: "1.20"
gitea_folder_name: "{{ docker_files }}/gitea"
postgres_version: "13"
gitea_name: Chostea