Skip to content

Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.

docs: update storage docs

Timothy Yin9b81d9683fc3
diff --git a/docs/guide/storage-providers.md b/docs/guide/storage-providers.md
index 26528335..14e15042 100644
--- a/docs/guide/storage-providers.md
+++ b/docs/guide/storage-providers.md
@@ -2,11 +2,10 @@
ChronoFrame supports multiple storage backends to save your photos and thumbnails. This document will detail how to configure different storage providers.
-| Provider | Support | Use Case | Cost |
-| ------------------ | :-----: | ---------------------- | -------------- |
-| **S3 Compatible** | ✅ | Production environment | Varies by provider |
-| **GitHub** | 🚧 | Small scale, version control | Free (with limits) |
-| **Local Filesystem** | 🚧 | Testing environment, offline deployment | Free |
+| Provider | Support | Use Case | Cost |
+| -------------------- | :-----: | --------------------------------------- | ------------------ |
+| **S3 Compatible** | ✅ | Production environment | Varies by provider |
+| **Local Filesystem** | ✅ | Testing environment, offline deployment | Free |
## S3 Compatible Storage
@@ -108,33 +107,17 @@ Recommended CORS configuration:
]
```
-## GitHub Storage (In Development)
-
-GitHub storage stores photos in Git repositories, suitable for small-scale use.
-
-```bash
-# Set storage provider to GitHub (not yet implemented)
-NUXT_STORAGE_PROVIDER=github
-
-# GitHub storage configuration
-NUXT_PROVIDER_GITHUB_OWNER=your-username
-NUXT_PROVIDER_GITHUB_REPOSITORY=chronoframe-photos
-NUXT_PROVIDER_GITHUB_BRANCH=main
-NUXT_PROVIDER_GITHUB_PATH=photos
-NUXT_PROVIDER_GITHUB_TOKEN=ghp_...
-```
-
-## Local Filesystem (In Development)
+## Local Filesystem
Local storage saves files in the server filesystem.
```bash
-# Set storage provider to local (not yet implemented)
+# Set storage provider to local
NUXT_STORAGE_PROVIDER=local
# Local storage configuration
-NUXT_PROVIDER_LOCAL_PATH=/app/storage
-NUXT_PROVIDER_LOCAL_BASE_URL=https://your-domain.com/storage
+NUXT_PROVIDER_LOCAL_PATH=/app/data/storage
+NUXT_PROVIDER_LOCAL_BASE_URL=/storage
```
## Common Issues
@@ -149,4 +132,4 @@ Bucket does not exist, confirm the bucket name is correct and exists in the spec
:::details Can upload but cannot access images, console shows `Access to fetch at '...' from origin '...' has been blocked by CORS policy`
Bucket CORS configuration error, refer to [CORS Settings](#cors-settings) for configuration.
-:::
\ No newline at end of file
+:::
diff --git a/docs/zh/guide/storage-providers.md b/docs/zh/guide/storage-providers.md
index 4d0d2d8c..9ae6431c 100644
--- a/docs/zh/guide/storage-providers.md
+++ b/docs/zh/guide/storage-providers.md
@@ -2,11 +2,10 @@
ChronoFrame 支持多种存储后端来保存您的照片和缩略图。本文档将详细介绍如何配置不同的存储提供器。
-| 提供器 | 支持 | 适用场景 | 成本 |
-| ---------------- | :------: | ------------------ | -------------- |
-| **S3 兼容** | ✅ | 生产环境 | 视服务商而定 |
-| **GitHub** | 🚧 | 小规模,版本控制 | 免费(有限制) |
-| **本地文件系统** | 🚧 | 测试环境,离线部署 | 免费 |
+| 提供器 | 支持 | 适用场景 | 成本 |
+| ---------------- | :--: | ------------------ | ------------ |
+| **S3 兼容** | ✅ | 生产环境 | 视服务商而定 |
+| **本地文件系统** | ✅ | 测试环境,离线部署 | 免费 |
## S3 兼容存储
@@ -108,33 +107,17 @@ NUXT_PROVIDER_S3_SECRET_ACCESS_KEY=minioadmin
]
```
-## GitHub 存储(开发中)
-
-GitHub 存储将照片存储在 Git 仓库中,适合小规模使用。
-
-```bash
-# 设置存储提供器为 GitHub(暂未实现)
-NUXT_STORAGE_PROVIDER=github
-
-# GitHub 存储配置
-NUXT_PROVIDER_GITHUB_OWNER=your-username
-NUXT_PROVIDER_GITHUB_REPOSITORY=chronoframe-photos
-NUXT_PROVIDER_GITHUB_BRANCH=main
-NUXT_PROVIDER_GITHUB_PATH=photos
-NUXT_PROVIDER_GITHUB_TOKEN=ghp_...
-```
-
-## 本地文件系统(开发中)
+## 本地文件系统
本地存储将文件保存在服务器文件系统中。
```bash
-# 设置存储提供器为本地(暂未实现)
+# 设置存储提供器为本地
NUXT_STORAGE_PROVIDER=local
# 本地存储配置
-NUXT_PROVIDER_LOCAL_PATH=/app/storage
-NUXT_PROVIDER_LOCAL_BASE_URL=https://your-domain.com/storage
+NUXT_PROVIDER_LOCAL_PATH=/app/data/storage
+NUXT_PROVIDER_LOCAL_BASE_URL=/storage
```
## 常见问题