This repository has been archived on 2024-11-01. You can view files and clone it, but cannot push or open issues or pull requests.
services/roles/forgejo/vars/main.yml

94 lines
3 KiB
YAML
Raw Normal View History

2023-12-13 01:43:15 +00:00
---
2023-12-14 01:20:13 +00:00
forgejo_svc:
2023-12-13 01:43:15 +00:00
domain: git.serguzim.me
2023-12-04 02:23:23 +00:00
name: forgejo
port: 3000
caddy_extra: header /attachments/* Access-Control-Allow-Origin *
db:
host: "{{ postgres.host }}"
port: "{{ postgres.port }}"
ssh_port: 22
2023-12-14 01:20:13 +00:00
forgejo_env:
2023-12-13 01:43:15 +00:00
FORGEJO__database__DB_TYPE: postgres
2023-12-04 02:23:23 +00:00
FORGEJO__database__HOST: "{{ svc.db.host }}:{{ svc.db.port }}"
2023-12-13 01:43:15 +00:00
FORGEJO__database__NAME: forgejo
2023-12-04 02:23:23 +00:00
FORGEJO__database__USER: "{{ vault_forgejo.db.user }}"
FORGEJO__database__PASSWD: "{{ vault_forgejo.db.pass }}"
2023-12-13 01:43:15 +00:00
FORGEJO__database__SSL_MODE: verify-full
2023-12-04 02:23:23 +00:00
FORGEJO__repository__ENABLE_PUSH_CREATE_USER: true
FORGEJO__repository__ENABLE_PUSH_CREATE_ORG: true
2023-12-13 01:43:15 +00:00
FORGEJO__repository__DEFAULT_BRANCH: main
2023-12-04 02:23:23 +00:00
FORGEJO__cors__ENABLED: true
2023-12-13 01:43:15 +00:00
FORGEJO__cors__SCHEME: https
2023-12-04 02:23:23 +00:00
2023-12-13 01:43:15 +00:00
FORGEJO__ui__DEFAULT_THEME: arc-green
2023-12-04 02:23:23 +00:00
FORGEJO__server__DOMAIN: "{{ svc.domain }}"
FORGEJO__server__SSH_DOMAIN: "{{ svc.domain }}"
FORGEJO__server__SSH_PORT: "{{ svc.ssh_port }}"
2023-12-13 01:43:15 +00:00
FORGEJO__server__ROOT_URL: https://{{ svc.domain }}
2023-12-04 02:23:23 +00:00
FORGEJO__server__OFFLINE_MODE: true
FORGEJO__server__LFS_JWT_SECRET: "{{ vault_forgejo.server_lfs_jwt_secret }}"
FORGEJO__server__LFS_START_SERVER: true
FORGEJO__security__INSTALL_LOCK: true
FORGEJO__security__INTERNAL_TOKEN: "{{ vault_forgejo.security_internal_token }}"
FORGEJO__security__SECRET_KEY: "{{ vault_forgejo.security_secret_key }}"
FORGEJO__openid__ENABLE_OPENID_SIGNUP: true
FORGEJO__openid__ENABLE_OPENID_SIGNIN: false
FORGEJO__service__ALLOW_ONLY_EXTERNAL_REGISTRATION: true
FORGEJO__service__ENABLE_BASIC_AUTHENTICATION: false
FORGEJO__service__DEFAULT_KEEP_EMAIL_PRIVATE: true
2023-12-13 01:43:15 +00:00
FORGEJO__service__NO_REPLY_ADDRESS: discard.msrg.cc
2023-12-04 02:23:23 +00:00
FORGEJO__webhook__DELIVER_TIMEOUT: 60
FORGEJO__mailer__ENABLED: true
2023-12-13 01:43:15 +00:00
FORGEJO__mailer__PROTOCOL: smtp+starttls
FORGEJO__mailer__SMTP_ADDR: mail.serguzim.me
2023-12-04 02:23:23 +00:00
FORGEJO__mailer__SMTP_PORT: 587
2023-12-13 01:43:15 +00:00
FORGEJO__mailer__FROM: Forgejo <git@serguzim.me>
FORGEJO__mailer__USER: git@serguzim.me
2023-12-04 02:23:23 +00:00
FORGEJO__mailer__PASSWD: "{{ vault_forgejo.mailer_passwd }}"
FORGEJO__mailer__SEND_AS_PLAIN_TEXT: true
FORGEJO__picture__DISABLE_GRAVATAR: true
2023-12-13 01:43:15 +00:00
FORGEJO__oauth2__JWT_SECRET: "{{ vault_forgejo.oauth2_jwt_secret }}"
2023-12-04 02:23:23 +00:00
FORGEJO__metrics__ENABLED: true
2023-12-08 00:55:57 +00:00
FORGEJO__metrics__TOKEN: "{{ vault_metrics_token }}"
2023-12-04 02:23:23 +00:00
FORGEJO__actions__ENABLED: true
2023-12-13 01:43:15 +00:00
FORGEJO__storage__STORAGE_TYPE: minio
FORGEJO__storage__MINIO_ENDPOINT: s3.serguzim.me
2023-12-04 02:23:23 +00:00
FORGEJO__storage__MINIO_ACCESS_KEY_ID: "{{ vault_forgejo.minio.access_key_id }}"
FORGEJO__storage__MINIO_SECRET_ACCESS_KEY: "{{ vault_forgejo.minio.secret_access_key }}"
2023-12-13 01:43:15 +00:00
FORGEJO__storage__MINIO_BUCKET: forgejo
FORGEJO__storage__MINIO_LOCATION: de-contabo-1
2023-12-04 02:23:23 +00:00
FORGEJO__storage__MINIO_USE_SSL: true
FORGEJO__other__SHOW_FOOTER_VERSION: true
FORGEJO__other__SHOW_FOOTER_TEMPLATE_LOAD_TIME: false
2023-12-14 01:20:13 +00:00
forgejo_compose:
2023-12-04 02:23:23 +00:00
watchtower: true
2023-12-04 20:36:32 +00:00
image: codeberg.org/forgejo/forgejo:1.21
2023-12-04 02:23:23 +00:00
volumes:
- data:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
file:
2023-12-11 13:49:43 +00:00
services:
app:
ports:
- "{{ svc.ssh_port }}:{{ svc.ssh_port }}"
2023-12-04 02:23:23 +00:00
volumes:
data: