services/templates/forgejo/app.ini.gotmpl

143 lines
3.5 KiB
Go Template
Raw Normal View History

{{- $app_data_path := printf "%s/git" .Forgejo.DataContainerDirectory -}}
APP_NAME = "{{ .Forgejo.Name }}"
RUN_USER = git
RUN_MODE = {{ .Forgejo.RunMode }}
WORK_PATH = {{ .Forgejo.Work }}
[repository]
ROOT = {{ .Forgejo.DataContainerDirectory }}/git/repositories
DEFAULT_BRANCH = main
[repository.local]
LOCAL_COPY_PATH = {{ .Forgejo.Tmp }}/local-repo
[repository.upload]
TEMP_PATH = {{ .Forgejo.Tmp }}/uploads
[repository.pull-request]
DEFAULT_MERGE_STYLE = squash
[repository.signing]
SIGNING_KEY = default
INITIAL_COMMIT = pubkey, twofa
MERGES = pubkey, twofa, basesigned, commitssigned
WIKI = never
[ui]
DEFAULT_THEME = forgejo-dark
[server]
APP_DATA_PATH = {{ $app_data_path }}
DOMAIN = {{ .Forgejo.Subdomain }}.{{ .RootDomain }}
HTTP_ADDR = {{ .Forgejo.ContainerIpv4Address }}
HTTP_PORT = {{ .Forgejo.HttpPort }}
ROOT_URL = https://{{ .Forgejo.Subdomain }}.{{ .RootDomain }}
DISABLE_SSH = false
START_SSH_SERVER = true
SSH_DOMAIN = {{ .Forgejo.Subdomain }}.{{ .RootDomain }}
SSH_PORT = {{ .Traefik.ExternalSSHPort }}
SSH_LISTEN_HOST = {{ .Forgejo.ContainerIpv4Address }}
SSH_LISTEN_PORT = {{ .Forgejo.SshPort }}
BUILTIN_SSH_SERVER_USER = git
LFS_START_SERVER = true
LFS_JWT_SECRET = {{ .Forgejo.LfsJwtSecret }}
[attachment]
ENABLED = true
PATH = {{ $app_data_path }}/attachments
[lfs]
STORAGE_TYPE = local
PATH = {{ $app_data_path }}/lfs
[avatar]
PATH = {{ $app_data_path }}/avatars
[repo-avatar]
PATH = {{ $app_data_path }}/repo-avatars
[repo-archive]
PATH = {{ $app_data_path }}/repo-archive
[packages]
PATH = {{ $app_data_path }}/packages
[ssh.minimum_key_sizes]
ED25519 = 256
ECDSA = 256
RSA = 4096
DSA = -1
[database]
DB_TYPE = sqlite3
PATH = {{ .Forgejo.DataContainerDirectory }}/database/gitea.db
HOST = localhost:3306
NAME = gitea
USER = gitea
PASSWD =
LOG_SQL = false
[indexer]
ISSUE_INDEXER_PATH = {{ .Forgejo.DataContainerDirectory }}/indexers/issues.bleve
[session]
PROVIDER_CONFIG = {{ .Forgejo.DataContainerDirectory }}/sessions
[queue]
DATADIR = {{ .Forgejo.DataContainerDirectory }}/queues
[admin]
DISABLE_REGULAR_ORG_CREATION = true
DEFAULT_EMAIL_NOTIFICATION = disabled
[security]
INSTALL_LOCK = true
SECRET_KEY = {{ .Forgejo.SecretKey }}
INTERNAL_TOKEN = {{ .Forgejo.InternalToken }}
LOGIN_REMEMBER_DAYS = 1
MIN_PASSWORD_LENGTH = 16
PASSWORD_COMPLEXITY = lower,upper,digit
[service]
DISABLE_REGISTRATION = true
[service.explore]
REQUIRE_SIGNIN_VIEW = false
[log]
ROOT_PATH = {{ .Forgejo.DataContainerDirectory }}/log
MODE = console
LEVEL = {{ .Forgejo.LogLevel }}
[log.console]
STDERR = false
[i18n]
LANGS = en-US
NAMES = English
[other]
SHOW_FOOTER_BRANDING = true
SHOW_FOOTER_VERSION = false
SHOW_FOOTER_TEMPLATE_LOAD_TIME = false
[oauth2]
2024-04-28 09:16:21 +01:00
ENABLED = {{ .Forgejo.Oauth2Enable }}
JWT_SIGNING_ALGORITHM = {{ .Forgejo.Oauth2JwtSigningAlgo }}
JWT_SECRET = {{ .Forgejo.Oauth2JwtSecret }}
[federation]
ENABLED = true
[markup.asciidoc]
ENABLED = true
FILE_EXTENSIONS = .adoc,.asciidoc
RENDER_COMMAND = "asciidoctor -s -a showtitle -a skip-front-matter --out-file=- -"
; Input is not a standard input but a file
IS_INPUT_FILE = false
[actions]
ENABLED = {{ .Forgejo.Actions.Enabled }}
DEFAULT_ACTIONS_URL = {{ default .Forgejo.Actions.DefaultActionsURL "https://code.forgejo.org" }}