From 31e243a2bc4d820f14e731fd743a669b6ff54a93 Mon Sep 17 00:00:00 2001 From: Archos Date: Sun, 29 Mar 2026 08:00:35 +0200 Subject: [PATCH] fix: add config.yaml mount, update media keys, trusted-proxies --- config/config.yaml | 9 +++++---- docker-compose.yml | 13 ++++++++++--- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/config/config.yaml b/config/config.yaml index 62de4cd..a9a4216 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -14,6 +14,7 @@ protocol: "https" bind-address: "0.0.0.0" port: 8080 trusted-proxies: + - "172.18.0.1/16" - "127.0.0.1/32" - "::1" @@ -46,8 +47,8 @@ accounts-reason-required: true accounts-allow-custom-css: false # Média -media-image-max-size: 10485760 # 10 MiB -media-video-max-size: 41943040 # 40 MiB +media-local-max-size: "52428800" # 50 MiB +media-video-max-size: 41943040 # 40 MiB media-description-min-chars: 0 media-description-max-chars: 500 media-remote-cache-days: 7 @@ -55,8 +56,8 @@ media-cleanup-from: "00:00" media-cleanup-every: "24h" # Emojis -media-emoji-local-max-size: 51200 # 50 KiB -media-emoji-remote-max-size: 102400 # 100 KiB +media-emoji-local-max-size: 51200 # 50 KiB +media-emoji-remote-max-size: 102400 # 100 KiB # Logy log-level: "info" diff --git a/docker-compose.yml b/docker-compose.yml index 50a2281..82974fb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,12 +3,19 @@ services: image: superseriousbusiness/gotosocial:latest container_name: gotosocial restart: unless-stopped + entrypoint: + [ + "/gotosocial/gotosocial", + "server", + "start", + "--config-path", + "/gotosocial/config.yaml", + ] environment: - - GTS_HOST=GTS_HOST_PLACEHOLDER - - GTS_ACCOUNT_DOMAIN=ACCOUNT_DOMAIN_PLACEHOLDER - - GTS_TRUSTED_PROXIES=127.0.0.1/32,172.18.0.1/16 + - TZ=Europe/Prague ports: - "127.0.0.1:8080:8080" volumes: - ./data:/gotosocial/storage + - ./config/config.yaml:/gotosocial/config.yaml user: "1000:1000"