dataset/seed/gitea/templates/app.ini

108 lines
3.1 KiB
INI
Raw Normal View History

2022-03-08 19:42:28 +01:00
# GNUNUX https://github.com/go-gitea/gitea/blob/main/custom/conf/app.example.ini
APP_NAME = %%gitea_title
RUN_USER = gitea
RUN_MODE = prod
[database]
DB_TYPE = postgres
HOST = %%pg_client_server_domainname:5432
NAME = %%pg_client_database
USER = %%pg_client_username
PASSWD = %%pg_client_password
SCHEMA =
2022-04-08 18:52:43 +02:00
SSL_MODE = verify-full
2022-03-08 19:42:28 +01:00
CHARSET = utf8
LOG_SQL = false
[repository]
ROOT = /srv/gitea/lib/data/gitea-repositories
DEFAULT_BRANCH = main
[server]
2022-08-18 10:19:43 +02:00
SSH_DOMAIN = %%revprox_client_external_domainnames[0]
DOMAIN = %%revprox_client_external_domainnames[0]
2022-03-08 19:42:28 +01:00
HTTP_PORT = 3000
2022-08-18 10:19:43 +02:00
ROOT_URL = https://%%revprox_client_external_domainnames[0]/gitea/
2022-03-08 19:42:28 +01:00
LOCAL_ROOT_URL = https://%%domain_name_eth0:3000/
DISABLE_SSH = false
START_SSH_SERVER = true
SSH_LISTEN_PORT = 2222
SSH_PORT = 2222
LFS_START_SERVER = true
LFS_CONTENT_PATH = /srv/gitea/lib/data/lfs
LFS_JWT_SECRET = %%gitea_lfs_jwt_secret
OFFLINE_MODE = true
PROTOCOL = https
2022-10-01 19:21:55 +02:00
CERT_FILE = %%revprox_client_cert_file
KEY_FILE = %%revprox_client_key_file
2022-03-08 19:42:28 +01:00
[mailer]
ENABLED = true
HOST = %%smtp_relay_address
FROM = %%gitea_mail_sender
USER = %%smtp_relay_user@%%ip_eth0
PASSWD = %%smtp_relay_password
IS_TLS_ENABLED = true
;USE_CERTIFICATE = false
;CERT_FILE = custom/mailer/cert.pem
;KEY_FILE = custom/mailer/key.pem
[service]
REGISTER_EMAIL_CONFIRM = false
ENABLE_NOTIFY_MAIL = false
DISABLE_REGISTRATION = true
ALLOW_ONLY_EXTERNAL_REGISTRATION = false
ENABLE_CAPTCHA = false
REQUIRE_SIGNIN_VIEW = false
DEFAULT_KEEP_EMAIL_PRIVATE = false
DEFAULT_ALLOW_CREATE_ORGANIZATION = true
DEFAULT_ENABLE_TIMETRACKING = true
NO_REPLY_ADDRESS = noreply.localhost
[picture]
DISABLE_GRAVATAR = true
ENABLE_FEDERATED_AVATAR = false
[openid]
ENABLE_OPENID_SIGNIN = true
ENABLE_OPENID_SIGNUP = true
[oauth2_client]
ENABLE_AUTO_REGISTRATION = true
[session]
PROVIDER = redis
PROVIDER_CONFIG = network=tcp,addr=%%redis_client_server_domainname:6379,password=%%redis_client_password,db=0,pool_size=100,idle_timeout=180
[cache]
;; if the cache enabled
NABLED = true
;;
;; Either "memory", "redis", "memcache", or "twoqueue". default is "memory"
ADAPTER = redis
;;
;; For "memory" only, GC interval in seconds, default is 60
;INTERVAL = 60
;;
;; For "redis" and "memcache", connection host address
;; redis: network=tcp,addr=:6379,password=macaron,db=0,pool_size=100,idle_timeout=180
;; memcache: `127.0.0.1:11211`
;; twoqueue: `{"size":50000,"recent_ratio":0.25,"ghost_ratio":0.5}` or `50000`
2022-04-28 21:48:16 +02:00
HOST = network=tcp,addr=%%redis_client_server_domainname:6379,username=%%redis_client_username,password=%%redis_client_password,db=0,pool_size=100,idle_timeout=180
2022-03-08 19:42:28 +01:00
;;
;; Time to keep items in cache if not used, default is 16 hours.
;; Setting it to 0 disables caching
;ITEM_TTL = 16h
[log]
MODE = console
LEVEL = info
ROOT_PATH = /srv/gitea/lib/log
ROUTER = console
[security]
INSTALL_LOCK = true
SECRET_KEY = %%gitea_secret_key
INTERNAL_TOKEN = %%gitea_internal_token
PASSWORD_HASH_ALGO = pbkdf2