add whitelist and fix kavita cors config
This commit is contained in:
@@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user