All checks were successful
deploy / ansible (push) Successful in 7m23s
Nothing watched the servers: tonight's asxpio crash loop was found by hand. On asxpio-ops, Prometheus (30 days), Loki (14 days) and Grafana at gf.asxp.io (WireGuard only), with blackbox_exporter probing every service from outside and postgres_exporter. On both hosts node_exporter and cAdvisor on the VPC address, and Alloy shipping container logs, the journal and Traefik's access log to Loki over the VPC. Traefik and Forgejo expose their metrics; restic and the bucket replica record their last success for node_exporter. Dashboards: an overview as home, plus hosts, containers, Traefik, probes, Postgres and logs. Alerts by email to me@asxp.io: host or service down, certificate under 14 days, disk or memory nearly full, a container restart-looping, Postgres down, backup or replica stale. Assisted-by: Claude:opus-5-5
106 lines
2.3 KiB
Django/Jinja
106 lines
2.3 KiB
Django/Jinja
APP_NAME = Git with a cup of tea
|
|
RUN_MODE = prod
|
|
WORK_PATH = /data/gitea
|
|
|
|
[server]
|
|
PROTOCOL = http
|
|
DOMAIN = {{ forgejo_domain }}
|
|
ROOT_URL = https://{{ forgejo_domain }}/
|
|
HTTP_PORT = 3000
|
|
DISABLE_SSH = false
|
|
SSH_DOMAIN = {{ forgejo_domain }}
|
|
SSH_PORT = 22
|
|
SSH_LISTEN_PORT = 22
|
|
START_SSH_SERVER = false
|
|
LFS_START_SERVER = true
|
|
OFFLINE_MODE = false
|
|
LFS_JWT_SECRET = {{ forgejo_server_lfs_jwt_secret }}
|
|
LANDING_PAGE = explore
|
|
|
|
[database]
|
|
DB_TYPE = sqlite3
|
|
PATH = /data/gitea/gitea.db
|
|
LOG_SQL = false
|
|
|
|
[repository]
|
|
ROOT = /data/git/repositories
|
|
SCRIPT_TYPE = bash
|
|
DEFAULT_BRANCH = main
|
|
DEFAULT_PRIVATE = private
|
|
ENABLE_PUSH_CREATE_USER = true
|
|
ENABLE_PUSH_CREATE_ORG = false
|
|
DISABLED_REPO_UNITS =
|
|
DEFAULT_REPO_UNITS = repo.code,repo.releases,repo.issues,repo.pulls,repo.wiki,repo.projects,repo.packages,repo.actions
|
|
|
|
[ui]
|
|
THEMES = forgejo-auto,forgejo-light,forgejo-dark,gitea-auto,gitea-light,gitea-dark
|
|
DEFAULT_THEME = forgejo-auto
|
|
|
|
[security]
|
|
INSTALL_LOCK = true
|
|
SECRET_KEY = {{ forgejo_secret_key }}
|
|
INTERNAL_TOKEN = {{ forgejo_internal_token }}
|
|
PASSWORD_HASH_ALGO = pbkdf2
|
|
|
|
[service]
|
|
DISABLE_REGISTRATION = true
|
|
REQUIRE_SIGNIN_VIEW = false
|
|
REGISTER_EMAIL_CONFIRM = false
|
|
ENABLE_NOTIFY_MAIL = true
|
|
DEFAULT_KEEP_EMAIL_PRIVATE = true
|
|
DEFAULT_ALLOW_CREATE_ORGANIZATION = true
|
|
DEFAULT_ENABLE_TIMETRACKING = true
|
|
NO_REPLY_ADDRESS = noreply.{{ forgejo_domain }}
|
|
|
|
[oauth2]
|
|
ENABLED = true
|
|
JWT_SECRET = {{ forgejo_jwt_secret }}
|
|
|
|
[mailer]
|
|
ENABLED = true
|
|
FROM = Czechoslovakia Git <noreply@asxp.io>
|
|
PROTOCOL = smtp+starttls
|
|
SMTP_ADDR = smtp.fastmail.com
|
|
SMTP_PORT = 587
|
|
USER = {{ forgejo_smtp_user }}
|
|
PASSWD = {{ forgejo_smtp_password }}
|
|
|
|
[session]
|
|
PROVIDER = file
|
|
|
|
[log]
|
|
MODE = console
|
|
LEVEL = info
|
|
ROOT_PATH = /data/gitea/log
|
|
|
|
[actions]
|
|
ENABLED = true
|
|
DEFAULT_ACTIONS_URL = https://github.com
|
|
ARTIFACT_RETENTION_DAYS = 365
|
|
|
|
[repository.upload]
|
|
ENABLED = true
|
|
|
|
[repository.pull-request]
|
|
DEFAULT_MERGE_STYLE = merge
|
|
|
|
[repository.signing]
|
|
DEFAULT_TRUST_MODEL = collaborator
|
|
|
|
[lfs]
|
|
PATH = /data/git/lfs
|
|
LFS_JWT_SECRET = {{ forgejo_lfs_jwt_secret }}
|
|
|
|
[packages]
|
|
ENABLED = true
|
|
|
|
[other]
|
|
SHOW_FOOTER_VERSION = false
|
|
SHOW_FOOTER_TEMPLATE_LOAD_TIME = false
|
|
SHOW_FOOTER_POWERED_BY = false
|
|
|
|
|
|
[metrics]
|
|
; scraped by Prometheus on asxpio-ops over the traefik network
|
|
ENABLED = true
|
|
TOKEN = {{ monitoring_forgejo_metrics_token }}
|