allow s3 endpoint confuguration in docker, mention compatibility

This commit is contained in:
or-else
2024-02-20 17:46:41 -08:00
parent 99c633297a
commit 1c813cd6c9
4 changed files with 5 additions and 2 deletions

View File

@ -184,6 +184,7 @@ You can specify the following environment variables when issuing `docker run` co
| `AWS_CORS_ORIGINS` | string | `["*"]` | Allowed origins ([CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin)) URL for downloads. Generally use your server URL and its aliases. |
| `AWS_REGION` | string | | AWS Region when using `s3` media handler |
| `AWS_S3_BUCKET` | string | | Name of the AWS S3 bucket when using `s3` media handler. |
| `AWS_S3_ENDPOINT` | string | | An endpoint URL (hostname only or fully qualified URI) to override the default endpoint; can be of any S3-compatible service, such as `minio-api.x.io` |
| `AWS_SECRET_ACCESS_KEY` | string | | AWS [Secret Access Key](https://aws.amazon.com/blogs/security/wheres-my-secret-access-key/) when using `s3` media handler. |
| `CLUSTER_SELF` | string | | Node name if the server is running in a Tinode cluster. |
| `DEBUG_EMAIL_VERIFICATION_CODE` | string | | Enable dummy email verification code, e.g. `123456`. Disabled by default (empty string). |

View File

@ -71,6 +71,7 @@ ENV AWS_ACCESS_KEY_ID=
ENV AWS_SECRET_ACCESS_KEY=
ENV AWS_REGION=
ENV AWS_S3_BUCKET=
ENV AWS_S3_ENDPOINT=
# Default externally-visible hostname for email verification.
ENV SMTP_HOST_URL='http://localhost:6060'

View File

@ -30,6 +30,7 @@
"secret_access_key": "$AWS_SECRET_ACCESS_KEY",
"region": "$AWS_REGION",
"bucket": "$AWS_S3_BUCKET",
"endpoint": "$AWS_S3_ENDPOINT",
"presign_ttl": 3600,
"cache_control": "max-age=86400",
"cors_origins": $AWS_CORS_ORIGINS

View File

@ -110,8 +110,8 @@
// (`http://BUCKET.s3.amazonaws.com/KEY`).
"force_path_style": false,
// An optional endpoint URL (hostname only or fully qualified URI)
// that overrides the default generated endpoint for a client. Set this
// to `""` to use the default generated endpoint.
// to override the default generated endpoint, or `""` to use the default generated endpoint.
// The endpoint can be of any S3-compatible service, such as "minio-api.x.io".
"endpoint": "",
// Expiration time for presigned URLs in seconds.
"presign_ttl": 3600,