24 lines
323 B
Caddyfile
24 lines
323 B
Caddyfile
|
{
|
||
|
auto_https off
|
||
|
http_port 8080
|
||
|
https_port 8443
|
||
|
servers :8080 {
|
||
|
protocols h1
|
||
|
}
|
||
|
}
|
||
|
|
||
|
:8080 {
|
||
|
handle /api/* {
|
||
|
reverse_proxy localhost:8000
|
||
|
}
|
||
|
handle /static/* {
|
||
|
reverse_proxy localhost:8000
|
||
|
}
|
||
|
handle /admin* {
|
||
|
reverse_proxy localhost:8000
|
||
|
}
|
||
|
handle {
|
||
|
reverse_proxy localhost:3000
|
||
|
}
|
||
|
}
|