Co-authored-by: meaz <meaz@disroot.org>
Reviewed-on: #35
Reviewed-by: muppeth <muppeth@no-reply@disroot.org>
This commit is contained in:
meaz 2023-09-15 13:27:27 +00:00
parent 745d5740d0
commit c0a39a213b
2 changed files with 6 additions and 4 deletions

View File

@ -7,13 +7,13 @@ forgejo_group: 'git'
forgejo_confdir: '/etc/forgejo/app.ini'
forgejo_flavor: 'forgejo'
forgejo_version: '1.19.4-0'
forgejo_version: '1.20.4-0'
forgejo_arch: 'linux-amd64'
#forgejo_download_url: 'https://github.com/go-gitea/gitea/releases/download/v{{ forgejo_version }}/gitea-{{ forgejo_version }}-{{ forgejo_arch }}'
# Uncomment below if you want to add custom themes or images
#forgejo_extra_files_path: '../img' # the folder name where you have the images you want to deploy
#forgejo_theme_dir: '{{ forgejo_lib_dir }}/custom'
forgejo_theme_dir: '{{ forgejo_lib_dir }}/custom'
#forgejo_custom_themes:
# - name: '' #add name of the theme
# repo: '' #add git repository of the theme
@ -25,6 +25,7 @@ forgejo_base_config:
- 'APP_NAME = Forgejo: Beyond coding. We forge.'
- 'RUN_USER = git'
- 'RUN_MODE = prod'
- 'WORK_PATH = {{ forgejo_lib_dir }}'
forgejo_oauth2_config:
- 'JWT_SECRET = ' #41 random chars
@ -59,6 +60,7 @@ forgejo_server_config:
- 'LFS_START_SERVER = true'
- 'LFS_JWT_SECRET = ' #40 random chars
- 'OFFLINE_MODE = false'
- 'APP_DATA_PATH = {{ forgejo_lib_dir }}/data/'
forgejo_lfs_config:
- 'PATH = /home/git/data/lfs'

View File

@ -19,11 +19,11 @@ RestartSec=2s
Type=simple
User={{ forgejo_user }}
Group={{ forgejo_group }}
WorkingDirectory=/var/lib/forgejo/
WorkingDirectory={{ forgejo_lib_dir }}
ExecStart={{ forgejo_bindir }}/forgejo web -c {{ forgejo_confdir }}
Restart=always
RestartSec=3
Environment=USER={{ forgejo_user }} HOME=/home/{{ forgejo_user }} FORGEJO_WORK_DIR=/var/lib/forgejo FORGEJO_CUSTOM={{ forgejo_theme_dir }}
Environment=USER={{ forgejo_user }} HOME=/home/{{ forgejo_user }} FORGEJO_WORK_DIR={{ forgejo_lib_dir }} FORGEJO_CUSTOM={{ forgejo_theme_dir }}
# If you want to bind Forgejo to a port below 1024 uncomment
# the two values below
###