All checks were successful
Test CI / test (push) Successful in 0s
## Summary - Refactor Forgejo app.ini to be managed by ansible with secrets from 1Password - Enable Forgejo Actions in config (`[actions] ENABLED = true`) - Add `repo.actions` to DEFAULT_REPO_UNITS - Clean up unused MySQL database fields (we use SQLite) ## Phase 1 Progress This PR covers the first part of Phase 1 (ci-cd-bootstrap plan): - [x] Refactor app.ini to ansible template - [x] Store secrets in 1Password - [x] Enable Actions in config - [ ] Deploy config changes (pending review) - [ ] Create runner registration token - [ ] Deploy runner to k8s - [ ] Test with simple workflow ## Deployment and Testing - [ ] Run `mise run provision-indri -- --tags forgejo` to deploy - [ ] Verify Forgejo restarts correctly - [ ] Verify Actions tab appears in repo settings 🤖 Generated with [Claude Code](https://claude.com/claude-code) Reviewed-on: https://forge.tail8d86e.ts.net/eblume/blumeops/pulls/48
82 lines
2.1 KiB
Django/Jinja
82 lines
2.1 KiB
Django/Jinja
# {{ ansible_managed }}
|
|
APP_NAME = {{ forgejo_app_name }}
|
|
APP_SLOGAN = {{ forgejo_app_slogan }}
|
|
RUN_USER = {{ forgejo_run_user }}
|
|
WORK_PATH = {{ forgejo_work_path }}
|
|
RUN_MODE = {{ forgejo_run_mode }}
|
|
|
|
[server]
|
|
HTTP_ADDR = {{ forgejo_http_addr }}
|
|
HTTP_PORT = {{ forgejo_http_port }}
|
|
SSH_DOMAIN = {{ forgejo_ssh_domain }}
|
|
DOMAIN = {{ forgejo_domain }}
|
|
ROOT_URL = {{ forgejo_root_url }}
|
|
APP_DATA_PATH = {{ forgejo_data_path }}
|
|
DISABLE_SSH = {{ forgejo_disable_ssh | lower }}
|
|
START_SSH_SERVER = {{ forgejo_start_ssh_server | lower }}
|
|
BUILTIN_SSH_SERVER_USER = {{ forgejo_builtin_ssh_user }}
|
|
SSH_PORT = {{ forgejo_ssh_port }}
|
|
SSH_LISTEN_PORT = {{ forgejo_ssh_listen_port }}
|
|
LFS_START_SERVER = {{ forgejo_lfs_start_server | lower }}
|
|
LFS_JWT_SECRET = {{ forgejo_lfs_jwt_secret }}
|
|
OFFLINE_MODE = {{ forgejo_offline_mode | lower }}
|
|
|
|
[database]
|
|
DB_TYPE = {{ forgejo_db_type }}
|
|
PATH = {{ forgejo_db_path }}
|
|
LOG_SQL = false
|
|
|
|
[repository]
|
|
ROOT = {{ forgejo_repo_root }}
|
|
DEFAULT_REPO_UNITS = repo.code,repo.issues,repo.pulls,repo.releases,repo.wiki,repo.projects,repo.packages,repo.actions
|
|
|
|
[lfs]
|
|
PATH = {{ forgejo_lfs_path }}
|
|
|
|
[mailer]
|
|
ENABLED = false
|
|
|
|
[service]
|
|
REGISTER_EMAIL_CONFIRM = false
|
|
ENABLE_NOTIFY_MAIL = false
|
|
DISABLE_REGISTRATION = {{ forgejo_disable_registration | lower }}
|
|
ALLOW_ONLY_EXTERNAL_REGISTRATION = false
|
|
ENABLE_CAPTCHA = false
|
|
REQUIRE_SIGNIN_VIEW = {{ forgejo_require_signin_view | lower }}
|
|
DEFAULT_KEEP_EMAIL_PRIVATE = false
|
|
DEFAULT_ALLOW_CREATE_ORGANIZATION = true
|
|
DEFAULT_ENABLE_TIMETRACKING = true
|
|
NO_REPLY_ADDRESS = noreply.indri
|
|
|
|
[openid]
|
|
ENABLE_OPENID_SIGNIN = false
|
|
ENABLE_OPENID_SIGNUP = false
|
|
|
|
[cron.update_checker]
|
|
ENABLED = false
|
|
|
|
[session]
|
|
PROVIDER = {{ forgejo_session_provider }}
|
|
|
|
[log]
|
|
MODE = {{ forgejo_log_mode }}
|
|
LEVEL = {{ forgejo_log_level }}
|
|
ROOT_PATH = {{ forgejo_log_path }}
|
|
|
|
[repository.pull-request]
|
|
DEFAULT_MERGE_STYLE = merge
|
|
|
|
[repository.signing]
|
|
DEFAULT_TRUST_MODEL = committer
|
|
|
|
[security]
|
|
INSTALL_LOCK = true
|
|
INTERNAL_TOKEN = {{ forgejo_internal_token }}
|
|
PASSWORD_HASH_ALGO = pbkdf2_hi
|
|
|
|
[oauth2]
|
|
JWT_SECRET = {{ forgejo_oauth2_jwt_secret }}
|
|
|
|
[actions]
|
|
ENABLED = {{ forgejo_actions_enabled | lower }}
|
|
DEFAULT_ACTIONS_URL = {{ forgejo_actions_default_url }}
|