1 Star 0 Fork 0

一片会思考的猪肉/konnect

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Caddyfile.dev 1.69 KB
一键复制 编辑 原始数据 按行查看 历史
# Example Caddyfile to use with https://caddyserver.com
#
# This assumes Konnect is running with identifier on 127.0.0.1:8777. In addition
# for development, the identifier is used directly from webpack-dev-server
# running on 127.0.0.1:3001. Additional examples are included for third party
# login provides which use cookie passthrough backend.
0.0.0.0:8443 {
errors stderr
log stdout
tls self_signed
# konnect oidc
proxy /.well-known/openid-configuration 127.0.0.1:8777
proxy /konnect/v1/jwks.json 127.0.0.1:8777
proxy /konnect/v1/token 127.0.0.1:8777
proxy /konnect/v1/userinfo 127.0.0.1:8777
proxy /konnect/v1/static 127.0.0.1:8777
proxy /konnect/v1/session 127.0.0.1:8777
proxy /konnect/v1/register 127.0.0.1:8777
# konnect identifier development via webpack-dev-server
proxy /signin/v1/ 127.0.0.1:3001 {
header_downstream Cache-Control "no-cache, max-age=0, public"
header_downstream Referrer-Policy origin
header_downstream Content-Security-Policy "object-src 'none'; script-src 'self'; base-uri 'none'; frame-ancestors 'none';"
}
proxy /sockjs-node 127.0.0.1:3001 {
websocket
}
proxy /static 127.0.0.1:3001
proxy /signin/v1/identifier/_/ 127.0.0.1:8777 {
transparent
}
# konnect identifier login area
proxy /signin/ 127.0.0.1:8777 {
transparent
}
# third party login area provider example
# proxy /provider/simple 127.0.0.1:8999
# konnect authorize endpoint below third party login area provider
#proxy /provider/simple/konnect/v1/authorize 127.0.0.1:8777 {
# without /provider/simple
# header_upstream X-Forwarded-Prefix /provider/simple
#}
# konnect cookieserver, start with python3 ./examples/cookieserver.py 8088
#proxy /cookieserver/simple-userinfo 127.0.0.1:8088
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhurou/konnect.git
[email protected]:zhurou/konnect.git
zhurou
konnect
konnect
master

搜索帮助