Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f5dc94dc44
|
+1
-4
@@ -103,7 +103,7 @@ GITEA_STORAGE_TYPE=local
|
||||
# Indexer (for issue search)
|
||||
# GITEA_REPO_INDEXER_ENABLED=false
|
||||
# GITEA_ISSUE_INDEXER_TYPE=db
|
||||
# GITEA_STARTUP_TIMEOUT=0s
|
||||
# GITEA_STARTUP_TIMEOUT=-1
|
||||
|
||||
# Prometheus metrics
|
||||
# FORGEJO_METRICS_ENABLED=false
|
||||
@@ -111,6 +111,3 @@ GITEA_STORAGE_TYPE=local
|
||||
# FORGEJO_METRICS_ENABLED_ISSUE_BY_REPOSITORY=false
|
||||
# SECRET_FORGEJO_METRICS_TOKEN_VERSION=v1
|
||||
# COMPOSE_FILE="$COMPOSE_FILE:compose.metrics.yml"
|
||||
|
||||
# Enable access logs. See Access logs on Traefik.
|
||||
#ACCESS_LOGS=true
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
Run
|
||||
|
||||
```bash
|
||||
abra app run YOURAPPNAME app -- forgejo --config /var/lib/gitea/custom/conf/app.ini admin user create --username USERNAME --admin --random-password --email EMAIL
|
||||
abra app run YOURAPPNAME app forgejo -c /etc/gitea/app.ini admin user create --username USERNAME --admin --random-password --email EMAIL
|
||||
```
|
||||
|
||||
See the [Gitea command-line documentation](https://docs.gitea.io/en-us/command-line/) for more options. Make sure not to forget the `-c /etc/gitea/app.ini`.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
export APP_INI_VERSION=v34
|
||||
export DOCKER_SETUP_SH_VERSION=v3
|
||||
export APP_INI_VERSION=v27
|
||||
export DOCKER_SETUP_SH_VERSION=v2
|
||||
export PG_BACKUP_VERSION=v1
|
||||
|
||||
abra_backup_app() {
|
||||
|
||||
+2
-8
@@ -80,7 +80,7 @@ SHOW_USER_EMAIL = {{ env "GITEA_SHOW_USER_EMAIL" }}
|
||||
[indexer]
|
||||
REPO_INDEXER_ENABLED = {{ or (env "GITEA_REPO_INDEXER_ENABLED") "false" }}
|
||||
ISSUE_INDEXER_TYPE= {{ or (env "GITEA_ISSUE_INDEXER_TYPE") "db" }}
|
||||
STARTUP_TIMEOUT = {{ or (env "GITEA_STARTUP_TIMEOUT") "0s" }}
|
||||
STARTUP_TIMEOUT = {{ or (env "GITEA_STARTUP_TIMEOUT") "-1" }}
|
||||
|
||||
[server]
|
||||
DOMAIN = {{ env "GITEA_DOMAIN" }}
|
||||
@@ -136,15 +136,9 @@ IS_INPUT_FILE = false
|
||||
|
||||
[log]
|
||||
MODE=console
|
||||
LEVEL=DEBUG
|
||||
LEVEL=WARN
|
||||
STACKTRACE_LEVEL=None
|
||||
ENABLE_XORM_LOG=false
|
||||
LOGGER_ACCESS_MODE = access-file
|
||||
|
||||
[log.access-file]
|
||||
MODE=file
|
||||
LEVEL=Debug
|
||||
FILE_NAME=access.log
|
||||
|
||||
[session]
|
||||
PROVIDER = {{ env "GITEA_SESSION_PROVIDER" }}
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ services:
|
||||
secrets:
|
||||
- db_password
|
||||
db:
|
||||
image: "mariadb:10.11.19"
|
||||
image: "mariadb:10.11.2"
|
||||
deploy:
|
||||
labels:
|
||||
backupbot.backup.pre-hook: 'mysqldump --single-transaction -u root -p"$$(cat /run/secrets/db_root_password)" gitea > /var/lib/mysql/backup.sql'
|
||||
|
||||
@@ -10,7 +10,7 @@ services:
|
||||
secrets:
|
||||
- db_password
|
||||
db:
|
||||
image: postgres:15.19
|
||||
image: postgres:15.13
|
||||
deploy:
|
||||
labels:
|
||||
backupbot.backup.pre-hook: "/pg_backup.sh backup"
|
||||
|
||||
+3
-7
@@ -3,8 +3,7 @@ version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
#image: git.sutty.abyaya.la/containers/forgejo:15.0.8-rootless
|
||||
image: codeberg.org/forgejo/forgejo:17.0.2-rootless
|
||||
image: codeberg.org/forgejo/forgejo:15.0.7-rootless
|
||||
configs:
|
||||
- source: app_ini
|
||||
target: /var/lib/gitea/custom/conf/app.ini
|
||||
@@ -16,7 +15,6 @@ services:
|
||||
- jwt_secret
|
||||
- secret_key
|
||||
- lfs_jwt_secret
|
||||
entrypoint: "/usr/bin/dumb-init -- /usr/local/bin/docker-entrypoint.sh"
|
||||
environment:
|
||||
- GITEA_ALLOW_ONLY_EXTERNAL_REGISTRATION
|
||||
- GITEA_ALLOW_ONLY_INTERNAL_REGISTRATION
|
||||
@@ -67,7 +65,7 @@ services:
|
||||
- proxy
|
||||
- internal
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "--user-agent=healthcheck", "-f", "http://localhost:3000/api/healthz"]
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3000/api/healthz"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 10
|
||||
@@ -84,14 +82,12 @@ services:
|
||||
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=3000"
|
||||
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}_cors"
|
||||
- "traefik.http.routers.${STACK_NAME}.observability.accesslogs=${ACCESS_LOGS:-false}"
|
||||
- "traefik.http.middlewares.${STACK_NAME}_cors.headers.accesscontrolallowmethods=GET,OPTIONS,PUT"
|
||||
- "traefik.http.middlewares.${STACK_NAME}_cors.headers.accesscontrolallowheaders=content-type,authorization"
|
||||
- "traefik.http.middlewares.${STACK_NAME}_cors.headers.accesscontrolalloworiginlist=https://${GITEA_CORS_ALLOW_DOMAIN}"
|
||||
- "traefik.http.middlewares.${STACK_NAME}_cors.headers.accesscontrolmaxage=100"
|
||||
- "traefik.http.middlewares.${STACK_NAME}_cors.headers.addvaryheader=true"
|
||||
- "traefik.http.middlewares.${STACK_NAME}-buffering.buffering.maxRequestBodyBytes=0"
|
||||
- coop-cloud.${STACK_NAME}.version=6.0.2+17.0.1-rootless
|
||||
- coop-cloud.${STACK_NAME}.version=5.6.1+15.0.7-rootless
|
||||
|
||||
|
||||
networks:
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
Since PR 10273 was merged, durations need a unit, otherwise Forgejo
|
||||
would refuse to start. Check your GITEA_STARTUP_TIMEOUT value and make
|
||||
sure it ends with s for seconds.
|
||||
|
||||
https://codeberg.org/forgejo/forgejo/pulls/10273
|
||||
Reference in New Issue
Block a user