Migrate from gitea to forgejo
It's not just the colour scheme, honest! Some things still need renaming, but at least the application has moved.
This commit is contained in:
142
ansible/roles/forgejo/files/app.ini
Normal file
142
ansible/roles/forgejo/files/app.ini
Normal file
@ -0,0 +1,142 @@
|
||||
APP_NAME = Gitea: Git with a cup of orange juice
|
||||
|
||||
[repository]
|
||||
ROOT = /mnt/repositories
|
||||
DEFAULT_BRANCH = master
|
||||
DISABLE_STARS = true
|
||||
DEFAULT_REPO_UNITS = repo.code
|
||||
DEFAULT_FORK_REPO_UNITS = repo.code
|
||||
|
||||
|
||||
[server]
|
||||
SSH_DOMAIN = git.theorangeone.net
|
||||
ROOT_URL = https://git.theorangeone.net/
|
||||
START_SSH_SERVER = true
|
||||
SSH_PORT = 22 # Makes the SSH URLs look sane
|
||||
SSH_LISTEN_PORT = 2222
|
||||
BUILTIN_SSH_SERVER_USER = git
|
||||
LFS_START_SERVER = true
|
||||
DOMAIN = git.theorangeone.net
|
||||
PROTOCOL = http # TLS termination done by Traefik
|
||||
ENABLE_GZIP = true
|
||||
OFFLINE_MODE = true
|
||||
LANDING_PAGE = explore
|
||||
LFS_JWT_SECRET = {{ vault_lfs_jwt_secret }}
|
||||
|
||||
[database]
|
||||
DB_TYPE = postgres
|
||||
HOST = db:5432
|
||||
NAME = gitea
|
||||
USER = gitea
|
||||
PASSWD = gitea
|
||||
|
||||
[session]
|
||||
PROVIDER = db
|
||||
COOKIE_NAME = forgejo_session
|
||||
|
||||
[log]
|
||||
LEVEL = warn
|
||||
|
||||
[security]
|
||||
INSTALL_LOCK = true
|
||||
SECRET_KEY = {{ vault_secret_key }}
|
||||
INTERNAL_TOKEN = {{ vault_internal_token }}
|
||||
PASSWORD_HASH_ALGO = pbkdf2
|
||||
COOKIE_USERNAME = forgejo_username
|
||||
COOKIE_REMEMBER_NAME = forgejo_remember
|
||||
LOGIN_REMEMBER_DAYS = 30
|
||||
REVERSE_PROXY_TRUSTED_PROXIES = *
|
||||
|
||||
[service]
|
||||
DISABLE_REGISTRATION = true
|
||||
ENABLE_CAPTCHA = false
|
||||
SHOW_MILESTONES_DASHBOARD_PAGE = false
|
||||
ENABLE_TIMETRACKING = false
|
||||
DEFAULT_ORG_MEMBER_VISIBLE = true
|
||||
|
||||
[ui.metadata]
|
||||
DESCRIPTION = Gitea (Git with a cup of orange juice)
|
||||
AUTHOR = Jake Howard
|
||||
|
||||
[ui.user]
|
||||
REPO_PAGING_NUM = 100
|
||||
|
||||
[ui]
|
||||
SITEMAP_PAGING_NUM = 100
|
||||
FEED_PAGING_NUM = 100
|
||||
DEFAULT_THEME = forgejo-auto
|
||||
ISSUE_PAGING_NUM = 100
|
||||
FEED_MAX_COMMIT_NUM = 30
|
||||
SHOW_USER_EMAIL = false
|
||||
EXPLORE_PAGING_NUM = 100
|
||||
|
||||
[openid]
|
||||
ENABLE_OPENID_SIGNIN = false
|
||||
ENABLE_OPENID_SIGNUP = false
|
||||
|
||||
[service.explore]
|
||||
DISABLE_USERS_PAGE = true
|
||||
|
||||
[queue]
|
||||
CONN_STR = redis://redis:6379/0
|
||||
TYPE = redis
|
||||
|
||||
[cache]
|
||||
ADAPTER = redis
|
||||
HOST = redis://redis:6379/1
|
||||
ITEM_TTL = 48h
|
||||
|
||||
[other]
|
||||
SHOW_FOOTER_TEMPLATE_LOAD_TIME = false
|
||||
SHOW_FOOTER_VERSION = false
|
||||
|
||||
[mirror]
|
||||
DEFAULT_INTERVAL = 1h
|
||||
|
||||
[cron]
|
||||
ENABLED = true
|
||||
|
||||
[indexer]
|
||||
REPO_INDEXER_ENABLED = true
|
||||
ISSUE_INDEXER_TYPE = db
|
||||
|
||||
[lfs]
|
||||
PATH = /mnt/lfs
|
||||
|
||||
[federation]
|
||||
ENABLED = true
|
||||
|
||||
[actions]
|
||||
ENABLED = true
|
||||
DEFAULT_ACTIONS_URL = github
|
||||
|
||||
[migrations]
|
||||
ALLOW_LOCALNETWORKS = true
|
||||
|
||||
[mailer]
|
||||
ENABLED = true
|
||||
SMTP_ADDR = smtp.eu.mailgun.org
|
||||
SMTP_PORT = 465
|
||||
FROM = "{{ vault_mailer_from_address }}"
|
||||
USER = "{{ vault_mailer_user }}"
|
||||
PASSWD = "{{ vault_mailer_password }}"
|
||||
PROTOCOL = smtps
|
||||
|
||||
[packages]
|
||||
STORAGE_TYPE = backblaze
|
||||
|
||||
[storage.backblaze]
|
||||
STORAGE_TYPE = minio
|
||||
MINIO_ENDPOINT = s3.eu-central-003.backblazeb2.com
|
||||
MINIO_ACCESS_KEY_ID = {{ vault_backblaze_access_key_id }}
|
||||
MINIO_SECRET_ACCESS_KEY = {{ vault_backblaze_secret_access_key }}
|
||||
MINIO_BUCKET = 0rng-gitea
|
||||
MINIO_LOCATION = eu-central-003
|
||||
SERVE_DIRECT = true
|
||||
MINIO_USE_SSL = true
|
||||
|
||||
[storage.repo-archive]
|
||||
PATH = /mnt/repo-archive
|
||||
|
||||
[oauth2]
|
||||
JWT_SECRET = {{ vault_oauth2_jwt_secret }}
|
48
ansible/roles/forgejo/files/docker-compose.yml
Normal file
48
ansible/roles/forgejo/files/docker-compose.yml
Normal file
@ -0,0 +1,48 @@
|
||||
services:
|
||||
forgejo:
|
||||
image: code.forgejo.org/forgejo/forgejo:8-rootless
|
||||
user: "{{ docker_user.id }}:{{ docker_user.id }}"
|
||||
environment:
|
||||
- TZ={{ timezone }}
|
||||
volumes:
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- "{{ app_data_dir }}/gitea/data:/var/lib/gitea"
|
||||
- "{{ app_data_dir }}/gitea/config:/etc/gitea"
|
||||
- /mnt/tank/files/gitea-repositories/repositories:/mnt/repositories
|
||||
- /mnt/tank/files/gitea-repositories/lfs:/mnt/lfs
|
||||
- /mnt/tank/files/gitea-repositories/archive:/mnt/repo-archive
|
||||
tmpfs:
|
||||
- /var/lib/gitea/tmp
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "{{ pve_hosts.docker.ip }}:2222:2222"
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.forgejo.rule=Host(`git.theorangeone.net`)
|
||||
- traefik.http.services.forgejo-forgejo.loadbalancer.server.port=3000
|
||||
networks:
|
||||
- default
|
||||
- traefik
|
||||
|
||||
db:
|
||||
image: postgres:14-alpine
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /mnt/speed/dbs/postgres/gitea:/var/lib/postgresql/data
|
||||
environment:
|
||||
- POSTGRES_PASSWORD=gitea
|
||||
- POSTGRES_USER=gitea
|
||||
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /mnt/speed/dbs/redis/gitea:/data
|
||||
|
||||
networks:
|
||||
traefik:
|
||||
external: true
|
3
ansible/roles/forgejo/files/footer.html
Normal file
3
ansible/roles/forgejo/files/footer.html
Normal file
@ -0,0 +1,3 @@
|
||||
{{ if not .IsSigned }}
|
||||
<script defer data-domain="git.theorangeone.net" src="https://elbisualp.theorangeone.net/js/script.js"></script>
|
||||
{{ end }}
|
Reference in New Issue
Block a user