fix: add config.yaml mount, update media keys, trusted-proxies

This commit is contained in:
2026-03-29 08:00:35 +02:00
parent 949e120082
commit 31e243a2bc
2 changed files with 15 additions and 7 deletions

View File

@@ -14,6 +14,7 @@ protocol: "https"
bind-address: "0.0.0.0" bind-address: "0.0.0.0"
port: 8080 port: 8080
trusted-proxies: trusted-proxies:
- "172.18.0.1/16"
- "127.0.0.1/32" - "127.0.0.1/32"
- "::1" - "::1"
@@ -46,8 +47,8 @@ accounts-reason-required: true
accounts-allow-custom-css: false accounts-allow-custom-css: false
# Média # Média
media-image-max-size: 10485760 # 10 MiB media-local-max-size: "52428800" # 50 MiB
media-video-max-size: 41943040 # 40 MiB media-video-max-size: 41943040 # 40 MiB
media-description-min-chars: 0 media-description-min-chars: 0
media-description-max-chars: 500 media-description-max-chars: 500
media-remote-cache-days: 7 media-remote-cache-days: 7
@@ -55,8 +56,8 @@ media-cleanup-from: "00:00"
media-cleanup-every: "24h" media-cleanup-every: "24h"
# Emojis # Emojis
media-emoji-local-max-size: 51200 # 50 KiB media-emoji-local-max-size: 51200 # 50 KiB
media-emoji-remote-max-size: 102400 # 100 KiB media-emoji-remote-max-size: 102400 # 100 KiB
# Logy # Logy
log-level: "info" log-level: "info"

View File

@@ -3,12 +3,19 @@ services:
image: superseriousbusiness/gotosocial:latest image: superseriousbusiness/gotosocial:latest
container_name: gotosocial container_name: gotosocial
restart: unless-stopped restart: unless-stopped
entrypoint:
[
"/gotosocial/gotosocial",
"server",
"start",
"--config-path",
"/gotosocial/config.yaml",
]
environment: environment:
- GTS_HOST=GTS_HOST_PLACEHOLDER - TZ=Europe/Prague
- GTS_ACCOUNT_DOMAIN=ACCOUNT_DOMAIN_PLACEHOLDER
- GTS_TRUSTED_PROXIES=127.0.0.1/32,172.18.0.1/16
ports: ports:
- "127.0.0.1:8080:8080" - "127.0.0.1:8080:8080"
volumes: volumes:
- ./data:/gotosocial/storage - ./data:/gotosocial/storage
- ./config/config.yaml:/gotosocial/config.yaml
user: "1000:1000" user: "1000:1000"