2023-08-21 22:01:43 +01:00
|
|
|
{{- $app_data_path := printf "%s/git" .Forgejo.DataContainerDirectory -}}
|
2024-08-09 08:47:29 +01:00
|
|
|
APP_NAME = "{{ .Forgejo.Name }}"
|
|
|
|
APP_SLOGAN = "{{ .Forgejo.Slogan }}"
|
|
|
|
RUN_USER = git
|
|
|
|
RUN_MODE = {{ .Forgejo.RunMode }}
|
|
|
|
WORK_PATH = {{ .Forgejo.Work }}
|
2023-02-12 20:59:55 +00:00
|
|
|
|
|
|
|
[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
|
|
|
|
|
2023-05-22 07:44:03 +01:00
|
|
|
[repository.pull-request]
|
|
|
|
DEFAULT_MERGE_STYLE = squash
|
|
|
|
|
2023-02-12 20:59:55 +00:00
|
|
|
[repository.signing]
|
2023-05-22 07:44:03 +01:00
|
|
|
SIGNING_KEY = default
|
2023-02-12 20:59:55 +00:00
|
|
|
INITIAL_COMMIT = pubkey, twofa
|
|
|
|
MERGES = pubkey, twofa, basesigned, commitssigned
|
2023-05-22 07:44:03 +01:00
|
|
|
WIKI = never
|
2023-02-12 20:59:55 +00:00
|
|
|
|
|
|
|
[ui]
|
|
|
|
DEFAULT_THEME = forgejo-dark
|
|
|
|
|
|
|
|
[server]
|
2023-08-21 22:01:43 +01:00
|
|
|
APP_DATA_PATH = {{ $app_data_path }}
|
2023-02-12 20:59:55 +00:00
|
|
|
DOMAIN = {{ .Forgejo.Subdomain }}.{{ .RootDomain }}
|
|
|
|
HTTP_ADDR = {{ .Forgejo.ContainerIpv4Address }}
|
|
|
|
HTTP_PORT = {{ .Forgejo.HttpPort }}
|
|
|
|
ROOT_URL = https://{{ .Forgejo.Subdomain }}.{{ .RootDomain }}
|
2024-10-15 01:47:50 +01:00
|
|
|
DISABLE_SSH = {{ .Forgejo.DisableSSH }}
|
|
|
|
START_SSH_SERVER = {{ .Forgejo.StartSSHServer }}
|
2023-02-12 20:59:55 +00:00
|
|
|
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 }}
|
|
|
|
|
2023-08-21 22:01:43 +01:00
|
|
|
[attachment]
|
|
|
|
ENABLED = true
|
|
|
|
PATH = {{ $app_data_path }}/attachments
|
|
|
|
|
2023-02-12 20:59:55 +00:00
|
|
|
[lfs]
|
|
|
|
STORAGE_TYPE = local
|
2023-08-21 22:01:43 +01:00
|
|
|
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
|
2023-02-12 20:59:55 +00:00
|
|
|
|
|
|
|
[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 =
|
2023-05-22 07:44:03 +01:00
|
|
|
LOG_SQL = false
|
2023-02-12 20:59:55 +00:00
|
|
|
|
|
|
|
[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 }}
|
2023-05-11 23:17:46 +01:00
|
|
|
JWT_SIGNING_ALGORITHM = {{ .Forgejo.Oauth2JwtSigningAlgo }}
|
|
|
|
JWT_SECRET = {{ .Forgejo.Oauth2JwtSecret }}
|
2023-02-12 20:59:55 +00:00
|
|
|
|
|
|
|
[federation]
|
|
|
|
ENABLED = true
|
2023-05-22 07:44:03 +01:00
|
|
|
|
|
|
|
[markup.asciidoc]
|
|
|
|
ENABLED = true
|
|
|
|
FILE_EXTENSIONS = .adoc,.asciidoc
|
2024-02-06 00:52:29 +00:00
|
|
|
RENDER_COMMAND = "asciidoctor -s -a showtitle -a skip-front-matter --out-file=- -"
|
2023-05-22 07:44:03 +01:00
|
|
|
; Input is not a standard input but a file
|
|
|
|
IS_INPUT_FILE = false
|
2023-08-28 08:53:22 +01:00
|
|
|
|
|
|
|
[actions]
|
|
|
|
ENABLED = {{ .Forgejo.Actions.Enabled }}
|
|
|
|
DEFAULT_ACTIONS_URL = {{ default .Forgejo.Actions.DefaultActionsURL "https://code.forgejo.org" }}
|