Skip to content

Commit 8e8cbc0

Browse files
committed
kfbox: add tm proxy
1 parent f854c86 commit 8e8cbc0

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Diff for: machines/kfbox/configuration.nix

+23
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,29 @@
162162

163163
virtualHosts = {
164164

165+
"tm.0cx.de".extraConfig = ''
166+
log {
167+
level DEBUG
168+
}
169+
@options {
170+
method OPTIONS
171+
}
172+
header {
173+
Access-Control-Allow-Origin "{http.request.header.Origin}"
174+
Access-Control-Allow-Credentials true
175+
Access-Control-Allow-Methods *
176+
Access-Control-Allow-Headers *
177+
defer
178+
}
179+
reverse_proxy https://trackmania.exchange:443 {
180+
header_down -Access-Control-Allow-Origin
181+
header_down -Access-Control-Allow-Headers
182+
header_up -Host
183+
header_up +Host trackmania.exchange
184+
}
185+
respond @options 204
186+
'';
187+
165188
"megaclan3000.de".extraConfig = ''
166189
root * ${mc3000.packages.x86_64-linux.mc3000}
167190
file_server

0 commit comments

Comments
 (0)