host-git/templates/forgejo.ini
GregoryDosh 7444371eca
All checks were successful
Deploy Ansible Pipeline / Deploy Ansible Pipeline (push) Successful in 46s
feat: add COOKIE_NAME
2025-04-11 14:49:21 -05:00

227 lines
7 KiB
INI

; Private Forgejo instance for managing/automating Auengun.net
; Source available at git.auengun.net/homelab/host-git
; Copyright (C) 2024 GregoryDosh
; This program is free software: you can redistribute it and/or modify
; it under the terms of the GNU Affero General Public License as
; published by the Free Software Foundation, either version 3 of the
; License, or (at your option) any later version.
; This program is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
; GNU Affero General Public License for more details.
; You should have received a copy of the GNU Affero General Public License
; along with this program. If not, see <https://www.gnu.org/licenses/>.
; SPDX-License-Identifier: AGPL-3.0-or-later
; SPDX-FileCopyrightText: 2024 GregoryDosh
; https://forgejo.org/docs/latest/admin/config-cheat-sheet/#overall-default
APP_NAME = Forgejo
RUN_MODE = prod
WORK_PATH = /var/lib/forgejo
[repository]
; https://forgejo.org/docs/latest/admin/config-cheat-sheet/#repository-repository
ROOT = /var/lib/forgejo/repos/
DEFAULT_PRIVATE = last
MAX_CREATION_LIMIT = -1
PREFERRED_LICENSES = AGPL-3.0-only
DISABLE_HTTP_GIT = false
ENABLE_PUSH_CREATE_USER = false
ENABLE_PUSH_CREATE_ORG = false
DISABLED_REPO_UNITS = repo.projects
DEFAULT_REPO_UNITS = repo.code,repo.releases,repo.issues,repo.pulls
DISABLE_STARS = false
DEFAULT_BRANCH = main
[repository.pull-request]
; https://forgejo.org/docs/latest/admin/config-cheat-sheet/#repository---pull-request-repositorypull-request
DEFAULT_MERGE_STYLE = squash
POPULATE_SQUASH_COMMENT_WITH_COMMIT_MESSAGES = true
[repository.upload]
; https://forgejo.org/docs/latest/admin/config-cheat-sheet/#repository---upload-repositoryupload
ENABLED = true
TEMP_PATH = /var/lib/forgejo/data/tmp/uploads
[ui]
; https://forgejo.org/docs/latest/admin/config-cheat-sheet/#ui-ui
DEFAULT_THEME = forgejo-auto
SHOW_USER_EMAIL = false
[ui.meta]
; https://forgejo.org/docs/latest/admin/config-cheat-sheet/#ui---metadata-uimeta
AUTHOR = Auengun
DESCRIPTION = git.auengun.net is a self-hosted forgejo environment for learning and developing software engineering and related concepts.
KEYWORDS = go,git,self-hosted,forgejo,gitea,homelab,auengun,auengun.net,github,github-actions,code,devops,iac
[server]
; https://forgejo.org/docs/latest/admin/config-cheat-sheet/#server-server
APP_DATA_PATH = /var/lib/forgejo/data
PROTOCOL = http
DOMAIN = git.auengun.net
ROOT_URL = https://git.auengun.net
HTTP_PORT = 3000
START_SSH_SERVER = false
SSH_DOMAIN = git.auengun.net
SSH_PORT = 22
SSH_LISTEN_HOST = 0.0.0.0
SSH_LISTEN_PORT = 22
OFFLINE_MODE = true
LANDING_PAGE = https://git.auengun.net/homelab
REDIRECT_OTHER_PORT = false
PORT_TO_REDIRECT = 80
ENABLE_ACME = false
SSH_TRUSTED_USER_CA_KEYS = {{ SSH_TRUSTED_USER_CA_KEYS }}
SSH_CREATE_AUTHORIZED_PRINCIPALS_FILE = true
SSH_AUTHORIZED_PRINCIPALS_ALLOW = username,email
SSH_CREATE_AUTHORIZED_KEYS_FILE = false
SSH_ROOT_PATH = /var/lib/forgejo/ssh/
ENABLE_GZIP = true
[database]
; https://forgejo.org/docs/latest/admin/config-cheat-sheet/#database-database
DB_TYPE = postgres
HOST = {{ POSTGRES_HOST }}:5432
NAME = {{ POSTGRES_DB }}
USER = {{ POSTGRES_USER }}
PASSWD = {{ POSTGRES_PASSWORD }}
SSL_MODE = disable
[indexer]
; https://forgejo.org/docs/latest/admin/config-cheat-sheet/#indexer-indexer
ISSUE_INDEXER_PATH = /var/lib/forgejo/indexers/issues.bleve
REPO_INDEXER_ENABLED = true
REPO_INDEXER_PATH = /var/lib/forgejo/indexers/repos.bleve
REPO_INDEXER_INCLUDE =
REPO_INDEXER_EXCLUDE =
REPO_INDEXER_EXCLUDE_VENDORED = true
MAX_FILE_SIZE = 1048576
REPO_INDEXER_REPO_TYPES = sources,forks,mirrors,templates
[admin]
EXTERNAL_USER_DISABLE_FEATURES = deletion
[security]
; https://forgejo.org/docs/latest/admin/config-cheat-sheet/#security-security
INSTALL_LOCK = true
SECRET_KEY = {{ SECRET_KEY }}
COOKIE_REMEMBER_NAME = {{ COOKIE_REMEMBER_NAME }}
DISABLE_GIT_HOOKS = true
DISABLE_WEBHOOKS = false
INTERNAL_TOKEN = {{ INTERNAL_TOKEN }}
PASSWORD_CHECK_PWN = false
[oauth2_client]
; https://forgejo.org/docs/latest/admin/config-cheat-sheet/#oauth2-client-oauth2_client
ACCOUNT_LINKING = auto
OPENID_CONNECT_SCOPES = profile email forgejo
ENABLE_AUTO_REGISTRATION = true
USERNAME = nickname
UPDATE_AVATAR = true
[service]
; https://forgejo.org/docs/latest/admin/config-cheat-sheet/#service-service
REGISTER_EMAIL_CONFIRM = false
DISABLE_REGISTRATION = false
REQUIRE_SIGNIN_VIEW = false
ENABLE_NOTIFY_MAIL = true
ENABLE_CAPTCHA = false
DEFAULT_KEEP_EMAIL_PRIVATE = true
SHOW_REGISTRATION_BUTTON = false
AUTO_WATCH_NEW_REPOS = false
ALLOW_ONLY_EXTERNAL_REGISTRATION = true
AUTO_WATCH_ON_CHANGES = false
SHOW_MILESTONES_DASHBOARD_PAGE = false
REGISTER_MANUAL_CONFIRM = false
DEFAULT_ALLOW_CREATE_ORGANIZATION = false
DEFAULT_USER_IS_RESTRICTED = false
DEFAULT_USER_VISIBILITY = limited
DEFAULT_ORG_VISIBILITY = limited
ALLOW_ONLY_INTERNAL_REGISTRATION = false
ALLOW_ONLY_EXTERNAL_REGISTRATION = true
DEFAULT_ENABLE_TIMETRACKING = false
[service.explore]
; https://forgejo.org/docs/latest/admin/config-cheat-sheet/#service---explore-serviceexplore
REQUIRE_SIGNIN_VIEW = true
DISABLE_USERS_PAGE = false
[mailer]
; https://forgejo.org/docs/latest/admin/config-cheat-sheet/#mailer-mailer
ENABLED = true
PROTOCOL = smtp+starttls
SMTP_ADDR = {{ SMTP_SERVER }}
SMTP_PORT = {{ SMTP_PORT }}
USE_CLIENT_CERT = false
FORCE_TRUST_SERVER_CERT = false
USER = {{ SMTP_USERNAME }}
PASSWD = {{ SMTP_TOKEN }}
ENABLE_HELO = true
FROM = {{ SMTP_USERNAME }}
SUBJECT_PREFIX =
SEND_AS_PLAIN_TEXT = false
[cache]
ADAPTER = redis
HOST = redis://redis:6379/0?pool_size=100&idle_timeout=180s
[session]
; https://forgejo.org/docs/latest/admin/config-cheat-sheet/#session-session
PROVIDER = db
COOKIE_NAME = {{ COOKIE_NAME }}
[picture]
; https://forgejo.org/docs/latest/admin/config-cheat-sheet/#picture-picture
AVATAR_UPLOAD_PATH = /var/lib/forgejo/data/avatars
[attachment]
; https://forgejo.org/docs/latest/admin/config-cheat-sheet/#issue-and-pull-request-attachments-attachment
ENABLED = true
MAX_SIZE = 4
[log]
; https://forgejo.org/docs/latest/admin/config-cheat-sheet/#log-log
MODE = console
LEVEL = Warn
[cron.git_gc_repos]
ENABLED = true
[cron.delete_old_actions]
ENABLED = true
[cron.update_checker]
ENABLED = false
[oauth2]
; https://forgejo.org/docs/latest/admin/config-cheat-sheet/#oauth2-oauth2
ENABLED = true
JWT_SECRET = {{ JWT_SECRET }}
[federation]
; https://forgejo.org/docs/latest/admin/config-cheat-sheet/#federation-federation
ENABLED = true
SHARE_USER_STATISTICS = false
[packages]
; https://forgejo.org/docs/latest/admin/config-cheat-sheet/#packages-packages
ENABLED = true
CHUNKED_UPLOAD_PATH = /var/lib/forgejo/data/tmp/package-upload
[actions]
; https://forgejo.org/docs/latest/admin/config-cheat-sheet/#actions-actions
ENABLED = True
DEFAULT_ACTIONS_URL = https://git.auengun.net
ARTIFACT_RETENTION_DAYS = 15
SKIP_WORKFLOW_STRINGS = "[skip-ci],[skip ci],[ci skip],[no ci],[skip actions],[actions skip]"
[other]
; https://forgejo.org/docs/latest/admin/config-cheat-sheet/#other-other
SHOW_FOOTER_VERSION = false
SHOW_FOOTER_TEMPLATE_LOAD_TIME = false
ENABLE_SITEMAP = true
ENABLE_FEED = true