30 lines
581 B
Plaintext
30 lines
581 B
Plaintext
(oauth2_common) {
|
|
@oauth2path path /oauth2/*
|
|
handle @oauth2path {
|
|
reverse_proxy 10.77.0.2:4180
|
|
}
|
|
|
|
handle {
|
|
forward_auth 10.77.0.2:4180 {
|
|
uri /oauth2/auth
|
|
copy_headers X-Auth-Request-User X-Auth-Request-Email
|
|
}
|
|
}
|
|
}
|
|
|
|
auth-proxy.lebubu.org {
|
|
reverse_proxy 10.77.0.2:4180
|
|
}
|
|
|
|
home.lebubu.org, indexer.lebubu.org, xxx.lebubu.org {
|
|
import oauth2_common
|
|
@home host home.lebubu.org
|
|
@indexer host indexer.lebubu.org
|
|
@xxx host xxx.lebubu.org
|
|
handle {
|
|
reverse_proxy @home 10.77.0.2:8082
|
|
reverse_proxy @indexer 10.77.0.2:9696
|
|
reverse_proxy @xxx 10.77.0.2:9999
|
|
}
|
|
}
|