Skip to content

Commit 79c69f5

Browse files
committed
feature: add s3 documentation
1 parent 9960ef2 commit 79c69f5

File tree

4 files changed

+42
-1
lines changed

4 files changed

+42
-1
lines changed

.vitepress/config.mts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,13 @@ export default defineConfig({
9090
text: "Discord Bot",
9191
link: "/discord-bot",
9292
},
93+
{
94+
text: "Custom S3",
95+
link: "/s3",
96+
items: [
97+
{ text: "Backblaze + Cloudflare", link: "/s3/backblaze" },
98+
]
99+
},
93100
{
94101
text: "Custom K8s",
95102
link: "/custom-k8s",

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
{
22
"devDependencies": {
3+
"prettier": "^3.2.5",
34
"vitepress": "^1.4.1"
45
},
56
"scripts": {
67
"docs:dev": "vitepress dev",
78
"docs:build": "vitepress build",
8-
"docs:preview": "vitepress preview"
9+
"docs:preview": "vitepress preview",
10+
"format": "prettier --write .",
11+
"format:check": "prettier --check ."
912
}
1013
}

s3/backblaze.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Backblaze + Cloudflare
2+
3+
Backblaze has a partnership with Cloudflare to provide [free data transfer](https://www.backblaze.com/blog/backblaze-and-cloudflare-partner-to-provide-free-data-transfer/).
4+
5+
To set this up, clone down our [web project](https://github.com/5stackgg/web), then using the following commands to deploy to your cloudfalre instance.
6+
7+
`yarn wrangler secret put S3_SECRET`
8+
`yarn wrangler secret put S3_ACCESS_KEY`
9+
`yarn wrangler secret put S3_ENDPOINT`
10+
`yarn wrangler deploy`
11+
12+
After setting up the Cloudflare Worker, navigate to your panel's application configuration and update the Cloudflare Worker Demo URL.
13+
14+
:::info
15+
You can find your URL in the [Cloudflare Dashboard](https://dash.cloudflare.com/) under "Workers & Pages" → your worker's settings → "Domains & Routes".
16+
:::

s3/index.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Custom S3
2+
3+
5Stack uses S3-compatible storage for storing demos and backups. By default, it uses MinIO which is hosted locally within the Kubernetes cluster.
4+
5+
## Demo Storage
6+
7+
The S3 storage is primarily used for storing match demos and backups. When a match is played, the demos are automatically uploaded to the configured S3 storage.
8+
9+
## Configuration
10+
11+
The default configuration uses MinIO, but you can override this by modifying the following files:
12+
13+
1. Update the S3 `S3_ENDPOINT`, `S3_USE_SSL`, and `S3_PORT` configuration in `<INSTALL_DIR>/base/properties/api-config.env`:
14+
15+
2. Update the S3 credentials in `<INSTALL_DIR>/base/secrets/s3-secrets.env` with your provider's access key and secret key.

0 commit comments

Comments
 (0)