feat: add proxy

This commit is contained in:
liuyuanchuang
2026-03-06 11:03:41 +08:00
parent ed7232e5c0
commit 45dcef5702
4 changed files with 27 additions and 6 deletions

View File

@@ -26,6 +26,7 @@ type GoogleOAuthConfig struct {
ClientID string `mapstructure:"client_id"`
ClientSecret string `mapstructure:"client_secret"`
RedirectURI string `mapstructure:"redirect_uri"`
Proxy string `mapstructure:"proxy"`
}
type MathpixConfig struct {

View File

@@ -52,6 +52,7 @@ baidu_ocr:
token: "e3a47bd2438f1f38840c203fc5939d17a54482d1"
google:
client_id: ""
client_secret: ""
redirect_uri: "http://localhost:5173/auth/callback"
client_id: "404402221037-nqdsk11bkpk5a7oh396mrg1ieh28u6q1.apps.googleusercontent.com"
client_secret: "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"
redirect_uri: "https://app.cloud.texpixel.com:10443/auth/callback"
proxy: "http://localhost:7890"

View File

@@ -50,3 +50,9 @@ mathpix:
baidu_ocr:
token: "e3a47bd2438f1f38840c203fc5939d17a54482d1"
google:
client_id: "404402221037-nqdsk11bkpk5a7oh396mrg1ieh28u6q1.apps.googleusercontent.com"
client_secret: "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"
redirect_uri: "https://texpixel.com/auth/callback"
proxy: "http://100.115.184.74:7890"