fix: add config.yaml mount, update media keys, trusted-proxies
This commit is contained in:
@@ -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,7 +47,7 @@ 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
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user