add whitelist and fix kavita cors config

This commit is contained in:
Kopatz
2023-12-19 10:40:14 +01:00
parent 9f39a7ce94
commit 1f4035ff0c
2 changed files with 5 additions and 9 deletions

View File

@@ -6,6 +6,10 @@
openFirewall = true;
package = pkgs.unstable.papermc;
declarative = true;
whitelist = {
coolBayram = "514afd03-8ca2-4f60-abe4-4c2a365d223b";
filipus098 = "a09fb009-be78-4e26-9f33-1534186e2228";
};
serverProperties = {
allow-flight=true;
allow-nether=true;
@@ -56,7 +60,7 @@
sync-chunk-writes=true;
use-native-transport=true;
view-distance=10;
white-list=false;
white-list=true;
};
};
}

View File

@@ -81,14 +81,6 @@
"adguard.home.arpa" = {
locations."/".proxyPass = "http://127.0.0.1:3000";
};
"kavita.home.arpa" = {
locations."/".proxyPass = "http://127.0.0.1:5000";
locations."/".extraConfig = ''
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Methods "GET, POST, OPTIONS";
add_header Access-Control-Allow-Headers "Authorization, Origin, X-Requested-With, Content-Type, Accept";
'';
};
};
};
}