Migration from gitea role

This commit is contained in:
Philip (a-0) 2023-01-09 12:24:57 +01:00
commit 59ad23a45d
8 changed files with 223 additions and 0 deletions

67
templates/app.ini.j2 Normal file
View file

@ -0,0 +1,67 @@
APP_NAME = Forgejo
RUN_USER = git
RUN_MODE = prod
[security]
INTERNAL_TOKEN = {{ forgejo_internal_token }}
INSTALL_LOCK = true
SECRET_KEY = {{ forgejo_secret_key }}
PASSWORD_HASH_ALGO = pbkdf2
[database]
DB_TYPE = postgres
HOST = {{ forgejo_db_host }}
NAME = gitea
USER = gitea
PASSWD = {{ forgejo_db_password }}
SCHEMA =
SSL_MODE = disable
CHARSET = utf8
LOG_SQL = false
[repository]
ROOT = {{ forgejo_repositories_path }}
[server]
SSH_DOMAIN = {{ forgejo_ssh_domain }}
DOMAIN = {{ forgejo_domain }}
HTTP_PORT = 3000
ROOT_URL = https://{{ forgejo_domain }}/
DISABLE_SSH = false
SSH_PORT = {{ forgejo_ssh_port }}
LFS_START_SERVER = true
LFS_CONTENT_PATH = {{ forgejo_lfs_path }}
LFS_JWT_SECRET = {{ forgejo_lfs_jwt_secret }}
OFFLINE_MODE = false
[mailer]
ENABLED = false
[service]
REGISTER_EMAIL_CONFIRM = false
ENABLE_NOTIFY_MAIL = false
DISABLE_REGISTRATION = true
ALLOW_ONLY_EXTERNAL_REGISTRATION = false
ENABLE_CAPTCHA = false
REQUIRE_SIGNIN_VIEW = false
DEFAULT_KEEP_EMAIL_PRIVATE = false
DEFAULT_ALLOW_CREATE_ORGANIZATION = true
DEFAULT_ENABLE_TIMETRACKING = true
NO_REPLY_ADDRESS = noreply.localhost
[picture]
DISABLE_GRAVATAR = true
ENABLE_FEDERATED_AVATAR = true
[openid]
ENABLE_OPENID_SIGNIN = false
ENABLE_OPENID_SIGNUP = false
[session]
PROVIDER = file
[log]
MODE = console
LEVEL = info
ROOT_PATH = /var/lib/forgejo/log
ROUTER = console

View file

@ -0,0 +1,17 @@
[Unit]
Description=Forgejo
After=syslog.target
After=network.target
[Service]
RestartSec=2s
Type=simple
User=git
Group=git
WorkingDirectory=/var/lib/forgejo/
ExecStart=/usr/local/bin/forgejo web -c /etc/forgejo/app.ini
Restart=always
Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/forgejo
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,2 @@
Port {{ forgejo_ssh_port }}
AcceptEnv GIT_PROTOCOL