feat: integrate Storage config into providers (#198)

Signed-off-by: Kininaru <shiftregister233@outlook.com>
This commit is contained in:
Kininaru
2021-07-26 11:39:49 +08:00
committed by GitHub
parent 1c01a34814
commit 3d493b8d8f
12 changed files with 224 additions and 160 deletions

View File

@ -144,18 +144,3 @@ Now, Casdoor is running on port 8000. You can access Casdoor pages directly in y
export const GithubRepo = "https://github.com/casbin/casdoor" //your github repository
```
- OSS conf
We use an OSS to store and provide user avatars. You must modify the file `conf/oss.conf` to tell the backend your OSS info. For OSS providers, we support Aliyun(`[aliyun]`), awss3(`[s3]`) now.
```
[provider]
accessId = id
accessKey = key
bucket = bucket
endpoint = endpoint
```
Please fill out this conf correctly, or the avatar server won't work!