summaryrefslogtreecommitdiff
path: root/internal/config/config.go
diff options
context:
space:
mode:
authorLibravatar Mara Sophie Grosch <littlefox@lf-net.org>2022-11-11 12:03:18 +0100
committerLibravatar GitHub <noreply@github.com>2022-11-11 12:03:18 +0100
commit948e90b95aa71a635fe5933e6e4a01823db6ac86 (patch)
treead4c575d9e09618d0deb01fb572e9342c659ad74 /internal/config/config.go
parent[chore] close in-storage media reader _before_ opening write, no need to leav... (diff)
downloadgotosocial-948e90b95aa71a635fe5933e6e4a01823db6ac86.tar.xz
[feature] S3: add config flag to proxy S3 media (#1014)
* S3: add config value "proxy" for not redirecting Signed-off-by: Mara Sophie Grosch <littlefox@lf-net.org> * S3: document new config value "proxy" * S3: add new config value "proxy" to test scripts Signed-off-by: Mara Sophie Grosch <littlefox@lf-net.org>
Diffstat (limited to 'internal/config/config.go')
-rw-r--r--internal/config/config.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/config/config.go b/internal/config/config.go
index 313e6ab05..907f250b0 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -93,6 +93,7 @@ type Configuration struct {
StorageS3SecretKey string `name:"storage-s3-secret-key" usage:"S3 Secret Key"`
StorageS3UseSSL bool `name:"storage-s3-use-ssl" usage:"Use SSL for S3 connections. Only set this to 'false' when testing locally"`
StorageS3BucketName string `name:"storage-s3-bucket" usage:"Place blobs in this bucket"`
+ StorageS3Proxy bool `name:"storage-s3-proxy" usage:"Proxy S3 contents through GoToSocial instead of redirecting to a presigned URL"`
StatusesMaxChars int `name:"statuses-max-chars" usage:"Max permitted characters for posted statuses"`
StatusesCWMaxChars int `name:"statuses-cw-max-chars" usage:"Max permitted characters for content/spoiler warnings on statuses"`