wow
This commit is contained in:
parent
98c46cbaad
commit
93afa55129
1 changed files with 26 additions and 0 deletions
|
|
@ -23,6 +23,19 @@
|
||||||
|
|
||||||
services.caddy = {
|
services.caddy = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
virtualHosts."broadcast.epc.mizuki.guru".extraConfig = ''
|
||||||
|
@authApi path /api/auth /api/auth/*
|
||||||
|
handle @authApi {
|
||||||
|
reverse_proxy 127.0.0.1:1234
|
||||||
|
}
|
||||||
|
|
||||||
|
@backendApi path /api /api/*
|
||||||
|
handle @backendApi {
|
||||||
|
reverse_proxy 127.0.0.1:1108
|
||||||
|
}
|
||||||
|
|
||||||
|
reverse_proxy 127.0.0.1:1234
|
||||||
|
'';
|
||||||
virtualHosts."http://broadcast.epc.mizuki.arpa".extraConfig = ''
|
virtualHosts."http://broadcast.epc.mizuki.arpa".extraConfig = ''
|
||||||
@preflight method OPTIONS
|
@preflight method OPTIONS
|
||||||
|
|
||||||
|
|
@ -36,6 +49,19 @@
|
||||||
|
|
||||||
reverse_proxy 127.0.0.1:6769
|
reverse_proxy 127.0.0.1:6769
|
||||||
'';
|
'';
|
||||||
|
virtualHosts."https://broadcast.epc.mizuki.guru:30427".extraConfig = ''
|
||||||
|
@preflight method OPTIONS
|
||||||
|
|
||||||
|
header {
|
||||||
|
Access-Control-Allow-Origin *
|
||||||
|
Access-Control-Allow-Methods "GET, POST, PUT, PATCH, DELETE, OPTIONS"
|
||||||
|
Access-Control-Allow-Headers *
|
||||||
|
}
|
||||||
|
|
||||||
|
respond @preflight "" 204
|
||||||
|
|
||||||
|
reverse_proxy 127.0.0.1:6769
|
||||||
|
'';
|
||||||
virtualHosts."http://broadcast.epc.mizuki.arpa:8027".extraConfig = ''
|
virtualHosts."http://broadcast.epc.mizuki.arpa:8027".extraConfig = ''
|
||||||
@preflight method OPTIONS
|
@preflight method OPTIONS
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue