Compare commits
1
Commits
main
..
access-logs
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
84702e4819
|
+4
-1
@@ -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,3 +111,6 @@ 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,4 +1,4 @@
|
||||
export APP_INI_VERSION=v28
|
||||
export APP_INI_VERSION=v27
|
||||
export DOCKER_SETUP_SH_VERSION=v2
|
||||
export PG_BACKUP_VERSION=v1
|
||||
|
||||
|
||||
+1
-1
@@ -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" }}
|
||||
|
||||
+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
-2
@@ -3,7 +3,7 @@ version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
image: codeberg.org/forgejo/forgejo:17.0.2-rootless
|
||||
image: codeberg.org/forgejo/forgejo:15.0.9-rootless
|
||||
configs:
|
||||
- source: app_ini
|
||||
target: /var/lib/gitea/custom/conf/app.ini
|
||||
@@ -85,12 +85,13 @@ services:
|
||||
- "traefik.tcp.routers.${STACK_NAME}-ssh.entrypoints=gitea-ssh"
|
||||
- "traefik.tcp.services.${STACK_NAME}-ssh.loadbalancer.server.port=${GITEA_SSH_PORT}"
|
||||
- "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"
|
||||
- coop-cloud.${STACK_NAME}.version=6.0.3+17.0.2-rootless
|
||||
- coop-cloud.${STACK_NAME}.version=5.6.3+15.0.9-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