Skip to content

Commit

Permalink
kfbox: add tm proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
pinpox committed May 7, 2024
1 parent f854c86 commit 5561645
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions machines/kfbox/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,28 @@

virtualHosts = {

"tm.0cx.de".extraConfig = ''
log {
level DEBUG
}
@options {
method OPTIONS
}
header {
Access-Control-Allow-Origin *
Access-Control-Allow-Credentials true
Access-Control-Allow-Methods *
Access-Control-Allow-Headers *
Host trackmania.exchange
defer
}
reverse_proxy https://trackmania.exchange:443 {
header_down -Access-Control-Allow-Origin
header_down -Host
}
respond @options 204
'';

"megaclan3000.de".extraConfig = ''
root * ${mc3000.packages.x86_64-linux.mc3000}
file_server
Expand Down

0 comments on commit 5561645

Please sign in to comment.