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 8e8cbc0
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions machines/kfbox/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,29 @@

virtualHosts = {

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

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

0 comments on commit 8e8cbc0

Please sign in to comment.