Skip to content

Commit

Permalink
update 12.0 s3 init
Browse files Browse the repository at this point in the history
  • Loading branch information
wacmkxiaoyi committed Nov 11, 2024
1 parent 10b9f61 commit 3e5d545
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions manual/config/env.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,6 @@ SEADOC_SERVER_URL=http://example.seafile.com/sdoc-server
- `INIT_S3_BLOCK_BUCKET`: S3 storage backend block objects bucket
- `INIT_S3_KEY_ID`: S3 storage backend key ID
- `INIT_S3_SECRET_KEY`: S3 storage backend secret key
- `INIT_S3_USE_V4_SIGNATURE`: Use the v4 protocol of S3 if enabled, default is `true`
- `INIT_S3_AWS_REGION`: Region you create the buckets, default is `us-east-1`. (Only valid when `INIT_S3_USE_V4_SIGNATURE` sets to `true`)
- `INIT_S3_USE_HTTPS`: Use HTTPS connections to S3 if enabled, default is `true`
3 changes: 3 additions & 0 deletions manual/docker/cluster/env
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ INIT_S3_FS_BUCKET=<your-fs-objects>
INIT_S3_BLOCK_BUCKET=<your-block-objects>
INIT_S3_KEY_ID=<your-key-id>
INIT_S3_SECRET_KEY=<your-secret-key>
INIT_S3_USE_V4_SIGNATURE=true
INIT_S3_AWS_REGION=us-east-1
INIT_S3_USE_HTTPS=true
4 changes: 4 additions & 0 deletions manual/docker/cluster/seafile-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ services:
- INIT_S3_BLOCK_BUCKET=${INIT_S3_BLOCK_BUCKET}
- INIT_S3_KEY_ID=${INIT_S3_KEY_ID}
- INIT_S3_SECRET_KEY=${INIT_S3_SECRET_KEY}
- INIT_S3_USE_V4_SIGNATURE=${INIT_S3_USE_V4_SIGNATURE:-true}
- INIT_S3_AWS_REGION=${INIT_S3_AWS_REGION:-us-east-1}
- INIT_S3_USE_HTTPS=${INIT_S3_USE_HTTPS:-true}

3 changes: 3 additions & 0 deletions manual/docker/pro/env
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ INIT_S3_FS_BUCKET=<your-fs-objects>
INIT_S3_BLOCK_BUCKET=<your-block-objects>
INIT_S3_KEY_ID=<your-key-id>
INIT_S3_SECRET_KEY=<your-secret-key>
INIT_S3_USE_V4_SIGNATURE=true
INIT_S3_AWS_REGION=us-east-1
INIT_S3_USE_HTTPS=true


SEADOC_IMAGE=seafileltd/sdoc-server:1.0-latest
Expand Down
3 changes: 3 additions & 0 deletions manual/docker/pro/seafile-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ services:
- INIT_S3_BLOCK_BUCKET=${INIT_S3_BLOCK_BUCKET}
- INIT_S3_KEY_ID=${INIT_S3_KEY_ID}
- INIT_S3_SECRET_KEY=${INIT_S3_SECRET_KEY}
- INIT_S3_USE_V4_SIGNATURE=${INIT_S3_USE_V4_SIGNATURE:-true}
- INIT_S3_AWS_REGION=${INIT_S3_AWS_REGION:-us-east-1}
- INIT_S3_USE_HTTPS=${INIT_S3_USE_HTTPS:-true}
labels:
caddy: ${SEAFILE_SERVER_PROTOCOL:-http}://${SEAFILE_SERVER_HOSTNAME:?Variable is not set or empty}
caddy.reverse_proxy: "{{upstreams 80}}"
Expand Down
3 changes: 3 additions & 0 deletions manual/setup/setup_pro_by_docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ The following fields merit particular attention:
| `INIT_S3_BLOCK_BUCKET` | S3 storage backend block objects bucket (only valid when `INIT_S3_STORAGE_BACKEND_CONFIG` sets to `true`) | (required when `INIT_S3_STORAGE_BACKEND_CONFIG` sets to `true`) |
| `INIT_S3_KEY_ID` | S3 storage backend key ID (only valid when `INIT_S3_STORAGE_BACKEND_CONFIG` sets to `true`) | (required when `INIT_S3_STORAGE_BACKEND_CONFIG` sets to `true`) |
| `INIT_S3_SECRET_KEY` | S3 storage backend secret key (only valid when `INIT_S3_STORAGE_BACKEND_CONFIG` sets to `true`) | (required when `INIT_S3_STORAGE_BACKEND_CONFIG` sets to `true`) |
| `INIT_S3_USE_V4_SIGNATURE` | Use the v4 protocol of S3 if enabled (only valid when `INIT_S3_STORAGE_BACKEND_CONFIG` sets to `true`) | `true` |
| `INIT_S3_AWS_REGION` | Region you create the buckets (only valid when `INIT_S3_STORAGE_BACKEND_CONFIG` and `INIT_S3_USE_V4_SIGNATURE` sets to `true`) | `us-east-1` |
| `INIT_S3_USE_HTTPS` | Use HTTPS connections to S3 if enabled (only valid when `INIT_S3_STORAGE_BACKEND_CONFIG` sets to `true`) | `true` |

To conclude, set the directory permissions of the Elasticsearch volumne:

Expand Down

0 comments on commit 3e5d545

Please sign in to comment.