test: CI/CD pipeline staging test - Redis aktiviert, Bad Gateway dokumentiert
This commit is contained in:
@@ -21,13 +21,22 @@ HTTP_ADDR = 0.0.0.0
|
||||
HTTP_PORT = 3000
|
||||
ROOT_URL = https://{{ gitea_domain }}/
|
||||
PUBLIC_URL_DETECTION = auto
|
||||
;; Performance settings for handling concurrent requests
|
||||
LFS_START_SERVER = true
|
||||
LFS_CONTENT_PATH = data/lfs
|
||||
LFS_JWT_SECRET =
|
||||
;; Increase timeouts for better stability under load
|
||||
READ_TIMEOUT = 60s
|
||||
WRITE_TIMEOUT = 60s
|
||||
|
||||
;; SSH Configuration
|
||||
;; Note: SSH_LISTEN_PORT should match the port exposed in docker-compose.yml
|
||||
;; If SSH is not needed, set DISABLE_SSH = true and START_SSH_SERVER = false
|
||||
DISABLE_SSH = false
|
||||
START_SSH_SERVER = true
|
||||
START_SSH_SERVER = false
|
||||
SSH_DOMAIN = {{ gitea_domain }}
|
||||
SSH_PORT = 22
|
||||
SSH_LISTEN_PORT = 22
|
||||
SSH_PORT = {{ ssh_port | default(2222) }}
|
||||
SSH_LISTEN_PORT = {{ ssh_listen_port | default(2222) }}
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Database Configuration
|
||||
@@ -39,30 +48,45 @@ NAME = {{ postgres_db | default('gitea') }}
|
||||
USER = {{ postgres_user | default('gitea') }}
|
||||
PASSWD = {{ postgres_password | default('gitea_password') }}
|
||||
SSL_MODE = disable
|
||||
;; Connection Pool Settings - Prevents "Connection reset by peer" errors
|
||||
;; Increased limits for handling concurrent requests
|
||||
MAX_OPEN_CONNS = 200
|
||||
MAX_IDLE_CONNS = 50
|
||||
CONN_MAX_LIFETIME = 600
|
||||
CONN_MAX_IDLE_TIME = 300
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Cache Configuration
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
[cache]
|
||||
ENABLED = false
|
||||
ADAPTER = memory
|
||||
ENABLED = true
|
||||
ADAPTER = redis
|
||||
HOST = redis:6379
|
||||
PASSWORD = {{ redis_password | default('gitea_redis_password') }}
|
||||
DB = 0
|
||||
;; Redis cache for better performance and persistence
|
||||
;; Cache survives container restarts
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Session Configuration
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
[session]
|
||||
PROVIDER = file
|
||||
PROVIDER_CONFIG = data/sessions
|
||||
PROVIDER = redis
|
||||
PROVIDER_CONFIG = network=tcp,addr=redis:6379,password={{ redis_password | default('gitea_redis_password') }},db=0,pool_size=100,idle_timeout=180
|
||||
COOKIE_SECURE = true
|
||||
COOKIE_NAME = i_like_gitea
|
||||
GC_INTERVAL_TIME = 86400
|
||||
SESSION_LIFE_TIME = 86400
|
||||
;; Redis sessions for better performance and scalability
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Queue Configuration
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
[queue]
|
||||
TYPE = channel
|
||||
TYPE = redis
|
||||
CONN_STR = redis://:{{ redis_password | default('gitea_redis_password') }}@redis:6379/0
|
||||
;; Redis queue for persistent job processing
|
||||
;; Jobs survive container restarts
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Service Configuration
|
||||
@@ -79,3 +103,10 @@ ENABLED = true
|
||||
;; 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
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Security Configuration
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
[security]
|
||||
;; Set INSTALL_LOCK to true to skip the initial setup page
|
||||
INSTALL_LOCK = true
|
||||
Reference in New Issue
Block a user