1
Fork 0

Add forgejo config

This commit is contained in:
Edgar P. Burkhart 2023-05-16 13:58:36 +02:00
parent d642e8733e
commit 57fda34995
Signed by: edpibu
GPG Key ID: 9833D3C5A25BD227
2 changed files with 61 additions and 0 deletions

5
src/Forgejo/README.md Normal file
View File

@ -0,0 +1,5 @@
# Forgejo
<https://docs.gitea.io/en-us/administration/config-cheat-sheet/>
Install to `/etc/forgejo/app.ini`.
Fill in secrets.

56
src/Forgejo/app.ini Normal file
View File

@ -0,0 +1,56 @@
APP_NAME = Forgejo sur Huascaran
[server]
PROTOCOL = unix
DOMAIN = git.edgarpierre.fr
ROOT_URL = https://git.edgarpierre.fr/
STATIC_URL_PREFIX =
HTTP_ADDR = /run/forgejo/forgejo.socket
SSH_PORT = 39529
OFFLINE_MODE = true
ENABLE_GZIP = true
ALLOW_GRACEFUL_RESTARTS = true
LFS_START_SERVER = true
LFS_JWT_SECRET = $$$
[database]
DB_TYPE = postgres
HOST = /run/postgresql
NAME = forgejo
USER = forgejo
[security]
INSTALL_LOCK = true
SECRET_KEY = $$$
INTERNAL_TOKEN = $$$
REVERSE_PROXY_TRUSTED_PROXIES = 127.0.0.0/8,::1/128
[oauth2]
ENABLE = false
[log]
ROOT_PATH = /var/log/forgejo
[service]
DISABLE_REGISTRATION = true
[repository]
ROOT = /var/lib/forgejo/repos
DEFAULT_BRANCH = main
[mailer]
ENABLED = true
SUBJECT_PREFIX = [Forgejo]
FROM = forgejo@edgarpierre.fr
SMTP_PORT = 465
SMTP_ADDR = smtp.edgarpierre.fr
USER = forgejo
PASSWD = $$$
SEND_AS_PLAIN_TEXT = true
[webhook]
ALLOWED_HOST_LIST = loopback,edgarpierre.fr,*.edgarpierre.fr
[actions]
ENABLED=true
DEFAULT_ACTIONS_URL=https://git.edgarpierre.fr