146 lines
3.5 KiB
Plaintext
146 lines
3.5 KiB
Plaintext
{
|
|
https_port 8443
|
|
}
|
|
:8443, azurenode1.xorbit.link {
|
|
tls me@azurenode1.xorbit.link
|
|
route {
|
|
forward_proxy {
|
|
basic_auth ckdiwn ckdoacnioemskiwn
|
|
hide_ip
|
|
hide_via
|
|
probe_resistance
|
|
}
|
|
file_server {
|
|
root /var/www/html
|
|
}
|
|
}
|
|
}
|
|
ai.xorbit.link {
|
|
|
|
handle /aaaaaa {
|
|
rewrite /aaaaaa /v1/chat/completions
|
|
@cors {
|
|
method OPTIONS
|
|
}
|
|
header @cors {
|
|
Access-Control-Allow-Origin: "*"
|
|
Access-Control-Allow-Methods: "*"
|
|
Access-Control-Allow-Headers: "*"
|
|
}
|
|
@post {
|
|
method POST
|
|
}
|
|
reverse_proxy @post https://api.openai.com {
|
|
header_up -*
|
|
header_up User-Agent "Deno/1.31.2"
|
|
header_up Host {upstream_hostport}
|
|
header_up Authorization "Bearer sk-bbbb"
|
|
header_up Content-Type {http.request.header.content-type}
|
|
header_down Access-Control-Allow-Origin "*"
|
|
}
|
|
}
|
|
|
|
handle /ccccc/v1/chat/completions {
|
|
rewrite /ccccc/v1/chat/completions /v1/chat/completions
|
|
@cors {
|
|
method OPTIONS
|
|
}
|
|
header @cors {
|
|
Access-Control-Allow-Origin: "*"
|
|
Access-Control-Allow-Methods: "*"
|
|
Access-Control-Allow-Headers: "*"
|
|
}
|
|
@post {
|
|
method POST
|
|
}
|
|
reverse_proxy @post https://api.openai.com {
|
|
header_up -*
|
|
header_up User-Agent "Deno/1.31.2"
|
|
header_up Host {upstream_hostport}
|
|
header_up Authorization "Bearer sk-bbbb"
|
|
header_up Content-Type {http.request.header.content-type}
|
|
header_down Access-Control-Allow-Origin "*"
|
|
}
|
|
}
|
|
|
|
handle /ccccc/v1/audio/speech {
|
|
rewrite /ccccc/v1/audio/speech /v1/audio/speech
|
|
@cors {
|
|
method OPTIONS
|
|
}
|
|
header @cors {
|
|
Access-Control-Allow-Origin: "*"
|
|
Access-Control-Allow-Methods: "*"
|
|
Access-Control-Allow-Headers: "*"
|
|
}
|
|
@post {
|
|
method POST
|
|
}
|
|
reverse_proxy @post https://api.openai.com {
|
|
header_up -*
|
|
header_up User-Agent "Deno/1.31.2"
|
|
header_up Host {upstream_hostport}
|
|
header_up Authorization "Bearer sk-bbbb"
|
|
header_up Content-Type {http.request.header.content-type}
|
|
header_down Access-Control-Allow-Origin "*"
|
|
}
|
|
}
|
|
|
|
handle /ccccc/v1/audio/transcriptions {
|
|
rewrite /ccccc/v1/audio/transcriptions /v1/audio/transcriptions
|
|
@cors {
|
|
method OPTIONS
|
|
}
|
|
header @cors {
|
|
Access-Control-Allow-Origin: "*"
|
|
Access-Control-Allow-Methods: "*"
|
|
Access-Control-Allow-Headers: "*"
|
|
}
|
|
@post {
|
|
method POST
|
|
}
|
|
reverse_proxy @post https://api.openai.com {
|
|
header_up -*
|
|
header_up User-Agent "Deno/1.31.2"
|
|
header_up Host {upstream_hostport}
|
|
header_up Authorization "Bearer sk-fUeEFERXA"
|
|
header_up Content-Type {http.request.header.content-type}
|
|
header_down Access-Control-Allow-Origin "*"
|
|
}
|
|
}
|
|
|
|
@apiPaths {
|
|
path_regexp apiPaths ^/e5b2a5e5-b4/v1/(.*)
|
|
}
|
|
handle @apiPaths {
|
|
rewrite * /v1/{http.regexp.apiPaths.1}
|
|
@cors {
|
|
method OPTIONS
|
|
}
|
|
header @cors {
|
|
Access-Control-Allow-Origin: "*"
|
|
Access-Control-Allow-Methods: "*"
|
|
Access-Control-Allow-Headers: "*"
|
|
}
|
|
@post {
|
|
method POST
|
|
}
|
|
reverse_proxy @post https://api.openai.com {
|
|
header_up -*
|
|
header_up User-Agent "Deno/1.31.2"
|
|
header_up Host {upstream_hostport}
|
|
header_up Authorization "Bearer sk-bbbb"
|
|
header_up Content-Type {http.request.header.content-type}
|
|
header_down Access-Control-Allow-Origin "*"
|
|
}
|
|
}
|
|
|
|
reverse_proxy * https://www.google.com {
|
|
header_up -*
|
|
}
|
|
}
|
|
|
|
oneapi.xorbit.link {
|
|
reverse_proxy * http://localhost:9000 {
|
|
}
|
|
} |