add caddy/font
This commit is contained in:
parent
dca0a450a6
commit
f538d65bd9
|
|
@ -0,0 +1,146 @@
|
||||||
|
{
|
||||||
|
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 {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,293 @@
|
||||||
|
{
|
||||||
|
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 /e5b2a5e5-b41d-4715-9d50-d4a3b0c1a85e {
|
||||||
|
rewrite /e5b2a5e5-b41d-4715-9d50-d4a3b0c1a85e /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-fUeEFERXoCS2MebUcCCiTqtRVYxlTHjiyZQwYVuAbrT3BlbkFJO_MwApIoV9MxB4v86eSN2NDhr7PckywQf8g5e0AfEA"
|
||||||
|
header_up Content-Type {http.request.header.content-type}
|
||||||
|
header_down Access-Control-Allow-Origin "*"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
handle /e5b2a5e5-b41d-4715-9d50-d4a3b0c1a85f/v1/chat/completions {
|
||||||
|
rewrite /e5b2a5e5-b41d-4715-9d50-d4a3b0c1a85f/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-fUeEFERXoCS2MebUcCCiTqtRVYxlTHjiyZQwYVuAbrT3BlbkFJO_MwApIoV9MxB4v86eSN2NDhr7PckywQf8g5e0AfEA"
|
||||||
|
header_up Content-Type {http.request.header.content-type}
|
||||||
|
header_down Access-Control-Allow-Origin "*"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
handle /e5b2a5e5-b41d-4715-9d50-d4a3b0c1a85f/v1/audio/speech {
|
||||||
|
rewrite /e5b2a5e5-b41d-4715-9d50-d4a3b0c1a85f/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-fUeEFERXoCS2MebUcCCiTqtRVYxlTHjiyZQwYVuAbrT3BlbkFJO_MwApIoV9MxB4v86eSN2NDhr7PckywQf8g5e0AfEA"
|
||||||
|
header_up Content-Type {http.request.header.content-type}
|
||||||
|
header_down Access-Control-Allow-Origin "*"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
handle /e5b2a5e5-b41d-4715-9d50-d4a3b0c1a85f/v1/audio/transcriptions {
|
||||||
|
rewrite /e5b2a5e5-b41d-4715-9d50-d4a3b0c1a85f/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-fUeEFERXoCS2MebUcCCiTqtRVYxlTHjiyZQwYVuAbrT3BlbkFJO_MwApIoV9MxB4v86eSN2NDhr7PckywQf8g5e0AfEA"
|
||||||
|
header_up Content-Type {http.request.header.content-type}
|
||||||
|
header_down Access-Control-Allow-Origin "*"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@apiPaths {
|
||||||
|
path_regexp apiPaths ^/e5b2a5e5-b41d-4715-9d50-d4a3b0c1a85f/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-fUeEFERXoCS2MebUcCCiTqtRVYxlTHjiyZQwYVuAbrT3BlbkFJO_MwApIoV9MxB4v86eSN2NDhr7PckywQf8g5e0AfEA"
|
||||||
|
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 {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
azureuser@airelay:~$ cat /etc/caddy/Caddyfile
|
||||||
|
{
|
||||||
|
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 /e5b2a5e5-b41d-4715-9d50-d4a3b0c1a85e {
|
||||||
|
rewrite /e5b2a5e5-b41d-4715-9d50-d4a3b0c1a85e /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-fUeEFERXoCS2MebUcCCiTqtRVYxlTHjiyZQwYVuAbrT3BlbkFJO_MwApIoV9MxB4v86eSN2NDhr7PckywQf8g5e0AfEA"
|
||||||
|
header_up Content-Type {http.request.header.content-type}
|
||||||
|
header_down Access-Control-Allow-Origin "*"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
handle /e5b2a5e5-b41d-4715-9d50-d4a3b0c1a85f/v1/chat/completions {
|
||||||
|
rewrite /e5b2a5e5-b41d-4715-9d50-d4a3b0c1a85f/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-fUeEFERXoCS2MebUcCCiTqtRVYxlTHjiyZQwYVuAbrT3BlbkFJO_MwApIoV9MxB4v86eSN2NDhr7PckywQf8g5e0AfEA"
|
||||||
|
header_up Content-Type {http.request.header.content-type}
|
||||||
|
header_down Access-Control-Allow-Origin "*"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
handle /e5b2a5e5-b41d-4715-9d50-d4a3b0c1a85f/v1/audio/speech {
|
||||||
|
rewrite /e5b2a5e5-b41d-4715-9d50-d4a3b0c1a85f/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-fUeEFERXoCS2MebUcCCiTqtRVYxlTHjiyZQwYVuAbrT3BlbkFJO_MwApIoV9MxB4v86eSN2NDhr7PckywQf8g5e0AfEA"
|
||||||
|
header_up Content-Type {http.request.header.content-type}
|
||||||
|
header_down Access-Control-Allow-Origin "*"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
handle /e5b2a5e5-b41d-4715-9d50-d4a3b0c1a85f/v1/audio/transcriptions {
|
||||||
|
rewrite /e5b2a5e5-b41d-4715-9d50-d4a3b0c1a85f/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-fUeEFERXoCS2MebUcCCiTqtRVYxlTHjiyZQwYVuAbrT3BlbkFJO_MwApIoV9MxB4v86eSN2NDhr7PckywQf8g5e0AfEA"
|
||||||
|
header_up Content-Type {http.request.header.content-type}
|
||||||
|
header_down Access-Control-Allow-Origin "*"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@apiPaths {
|
||||||
|
path_regexp apiPaths ^/e5b2a5e5-b41d-4715-9d50-d4a3b0c1a85f/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-fUeEFERXoCS2MebUcCCiTqtRVYxlTHjiyZQwYVuAbrT3BlbkFJO_MwApIoV9MxB4v86eSN2NDhr7PckywQf8g5e0AfEA"
|
||||||
|
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 {
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue