services/templates/forgejo/app.ini.gotmpl
Dan Anglin 3340ddc475
build: automation with Go and Mage
We shall now use Go and Mage to manage the Flow services. The templates
have been converted to Go templates, Mage has replaced Make and the
helper bash scripts have been rewritten in Go.
2023-02-12 20:59:55 +00:00

112 lines
2.7 KiB
Go Template

APP_NAME = "{{ .Forgejo.Name }}"
RUN_USER = git
RUN_MODE = {{ .Forgejo.RunMode }}
[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.signing]
INITIAL_COMMIT = pubkey, twofa
MERGES = pubkey, twofa, basesigned, commitssigned
[ui]
DEFAULT_THEME = forgejo-dark
[server]
APP_DATA_PATH = {{ .Forgejo.DataContainerDirectory }}/git
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 }}
[lfs]
STORAGE_TYPE = local
PATH = {{ .Forgejo.DataContainerDirectory }}/git/lfs
[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 =
[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
[picture]
AVATAR_UPLOAD_PATH = {{ .Forgejo.DataContainerDirectory }}/avatars
REPOSITORY_AVATAR_UPLOAD_PATH = {{ .Forgejo.DataContainerDirectory }}/repo-avatars
[attachment]
ENABLED = true
PATH = {{ .Forgejo.DataContainerDirectory }}/attachments
[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]
ENABLE = false
[federation]
ENABLED = true