feat: lfs server #42
@ -10,6 +10,7 @@ COMPOSE_FILE="$COMPOSE_FILE:compose.mariadb.yml"
|
||||
|
||||
# Enable to use forgejo instead of gitea
|
||||
# COMPOSE_FILE="$COMPOSE_FILE:compose.forgejo.yml"
|
||||
# SECRET_LFS_JWT_SECRET_VERSION=v1 # length=43
|
||||
|
||||
GITEA_DOMAIN=git.example.com
|
||||
GITEA_ALLOW_ONLY_EXTERNAL_REGISTRATION=true
|
||||
@ -33,6 +34,7 @@ GITEA_DEFAULT_ORG_VISIBILITY=limited
|
||||
GITEA_REQUIRE_SIGNIN_VIEW=true
|
||||
GITEA_ENABLE_PUSH_CREATE_USER=false
|
||||
GITEA_ENABLE_PUSH_CREATE_ORG=false
|
||||
GITEA_LFS_START_SERVER=false
|
||||
|
||||
GITEA_REPO_UPLOAD_ENABLED=true
|
||||
GITEA_REPO_UPLOAD_ALLOWED_TYPES=*/*
|
||||
|
||||
2
abra.sh
2
abra.sh
@ -1,4 +1,4 @@
|
||||
export APP_INI_VERSION=v20
|
||||
export APP_INI_VERSION=v21
|
||||
export DOCKER_SETUP_SH_VERSION=v1
|
||||
export PG_BACKUP_VERSION=v1
|
||||
|
||||
|
||||
@ -60,6 +60,10 @@ SSH_DOMAIN = {{ env "GITEA_DOMAIN" }}
|
||||
SSH_LISTEN_PORT = {{ env "GITEA_SSH_PORT" }}
|
||||
SSH_PORT = {{ env "GITEA_SSH_PORT" }}
|
||||
START_SSH_SERVER = true
|
||||
LFS_START_SERVER = {{ env "GITEA_LFS_START_SERVER" }}
|
||||
{{ if eq (env "FORGE") "forgejo" }}
|
||||
|
decentral1se marked this conversation as resolved
Outdated
|
||||
LFS_JWT_SECRET = {{ secret "lfs_jwt_secret" }}
|
||||
{{ end }}
|
||||
|
||||
[security]
|
||||
INSTALL_LOCK = true
|
||||
|
||||
@ -3,3 +3,11 @@ version: '3.8'
|
||||
services:
|
||||
app:
|
||||
image: codeberg.org/forgejo/forgejo:10.0.0-rootless
|
||||
environment:
|
||||
- FORGE=forgejo
|
||||
secrets:
|
||||
- lfs_jwt_secret
|
||||
secrets:
|
||||
lfs_jwt_secret:
|
||||
name: ${STACK_NAME}_lfs_jwt_secret_${SECRET_LFS_JWT_SECRET_VERSION}
|
||||
external: true
|
||||
|
||||
@ -15,6 +15,7 @@ services:
|
||||
- jwt_secret
|
||||
- secret_key
|
||||
environment:
|
||||
- FORGE=gitea
|
||||
- GITEA_ALLOW_ONLY_EXTERNAL_REGISTRATION
|
||||
- GITEA_APP_NAME
|
||||
- GITEA_AUTO_WATCH_NEW_REPOS
|
||||
@ -52,6 +53,7 @@ services:
|
||||
- GITEA_DEFAULT_ORG_VISIBILITY
|
||||
- GITEA_REQUIRE_SIGNIN_VIEW
|
||||
- GITEA__oauth2__REFRESH_TOKEN_EXPIRATION_TIME
|
||||
- GITEA_LFS_START_SERVER=${GITEA_LFS_START_SERVER:-false}
|
||||
volumes:
|
||||
- data:/var/lib/gitea
|
||||
- config:/etc/gitea
|
||||
|
||||
Reference in New Issue
Block a user
Perhaps reusing the
COMPOSE_FILEvalue withstrings.Containsfor"compose.forgejo.yml"is also an option? I feel like people might forget that switch (FORGEJO) or not understand what it relates to (since it is only used now for the LFS functionality. Up to you!i was thinking of setting ENVVAR=gitea for gitea and ENVVAR=forgejo, or even forking the recipe to make one exclusive for forgejo if they start being too different. i couldn't come up with a descriptive name for ENVVAR though
@fauno tbh i think now that forgejo is a hard fork splitting up the recipe would be best (like we do for Mastodon/Hometown). but that's a bit of work... the
ENVVARapproach is fine for now tho. Maybe open a ticket so we don't forget about it?done!