- Update Gitea configuration (remove DEFAULT_ACTIONS_URL) - Fix deployment documentation - Update Ansible playbooks - Clean up deprecated files - Add new deployment scripts and templates
82 lines
2.4 KiB
Django/Jinja
82 lines
2.4 KiB
Django/Jinja
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;; Gitea Configuration File
|
|
;; Generated by Ansible - DO NOT EDIT MANUALLY
|
|
;; This file is based on the official Gitea example configuration
|
|
;; https://github.com/go-gitea/gitea/blob/main/custom/conf/app.example.ini
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;; General Settings
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
APP_NAME = Gitea: Git with a cup of tea
|
|
RUN_MODE = prod
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;; Server Configuration
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
[server]
|
|
PROTOCOL = http
|
|
DOMAIN = {{ gitea_domain }}
|
|
HTTP_ADDR = 0.0.0.0
|
|
HTTP_PORT = 3000
|
|
ROOT_URL = https://{{ gitea_domain }}/
|
|
PUBLIC_URL_DETECTION = auto
|
|
|
|
;; SSH Configuration
|
|
DISABLE_SSH = false
|
|
START_SSH_SERVER = true
|
|
SSH_DOMAIN = {{ gitea_domain }}
|
|
SSH_PORT = 22
|
|
SSH_LISTEN_PORT = 22
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;; Database Configuration
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
[database]
|
|
DB_TYPE = postgres
|
|
HOST = postgres:5432
|
|
NAME = {{ postgres_db | default('gitea') }}
|
|
USER = {{ postgres_user | default('gitea') }}
|
|
PASSWD = {{ postgres_password | default('gitea_password') }}
|
|
SSL_MODE = disable
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;; Cache Configuration
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
[cache]
|
|
ENABLED = false
|
|
ADAPTER = memory
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;; Session Configuration
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
[session]
|
|
PROVIDER = file
|
|
PROVIDER_CONFIG = data/sessions
|
|
COOKIE_SECURE = true
|
|
COOKIE_NAME = i_like_gitea
|
|
GC_INTERVAL_TIME = 86400
|
|
SESSION_LIFE_TIME = 86400
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;; Queue Configuration
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
[queue]
|
|
TYPE = channel
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;; Service Configuration
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
[service]
|
|
DISABLE_REGISTRATION = {{ disable_registration | default(true) | lower }}
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;; Actions Configuration
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
[actions]
|
|
ENABLED = true
|
|
;; Use "self" to use the current Gitea instance for actions (not GitHub)
|
|
;; Do NOT set DEFAULT_ACTIONS_URL to a custom URL - it's not supported
|
|
;; Leaving it unset or setting to "self" will use the current instance
|
|
;DEFAULT_ACTIONS_URL = self
|