Update Caddyfile
This commit is contained in:
@@ -1,5 +1,11 @@
|
|||||||
:80 {
|
:80 {
|
||||||
route /api* {
|
route /api* {
|
||||||
|
@forbidden {
|
||||||
|
path /api/servers/create
|
||||||
|
method POST
|
||||||
|
}
|
||||||
|
respond @forbidden "Server creation is disabled." 403
|
||||||
|
|
||||||
uri strip_prefix /api
|
uri strip_prefix /api
|
||||||
reverse_proxy http://api:14702 {
|
reverse_proxy http://api:14702 {
|
||||||
header_down Location "^/" "/api/"
|
header_down Location "^/" "/api/"
|
||||||
|
|||||||
Reference in New Issue
Block a user