Skip to content
This repository was archived by the owner on Nov 3, 2025. It is now read-only.

Commit 372a8aa

Browse files
authored
Merge pull request #5 from ganhao2001/main
add accessTokenSecret in config
2 parents 3c9555c + 7261983 commit 372a8aa

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

config/config.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ type Config struct {
2222
UserSpacePrefix string `yaml:"userSpacePrefix"`
2323
AccountSpacePrefix string `yaml:"accountSpacePrefix"`
2424
PublicSpacePrefix string `yaml:"publicSpacePrefix"`
25+
26+
Auth struct {
27+
AccessTokenSecret string `yaml:"accessTokenSecret"`
28+
RefreshTokenSecret string `yaml:"refreshTokenSecret"`
29+
} `yaml:"auth"`
2530
}
2631

2732
var (

etc/config.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@ postgres:
88
TimeZone: your TimeZone
99
userSpacePrefix: your userSpacePrefix
1010
accountSpacePrefix: your accountSpacePrefix
11-
publicSpacePrefix: your publicSpacePrefix
11+
publicSpacePrefix: your publicSpacePrefix
12+
auth:
13+
accessTokenSecret: null
14+
refreshTokenSecret: null

util/token.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package util
33
import (
44
"sync"
55
"time"
6+
"webdav/config"
67
"webdav/dao/model"
78
"webdav/logutils"
89

0 commit comments

Comments
 (0)