chore: remove oauth2 from influx and only allow internal peers

This commit is contained in:
oddlama 2024-05-15 23:48:29 +02:00
parent 10abb7b03b
commit 5c354c8ec8
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A

View file

@ -27,15 +27,12 @@ in {
};
virtualHosts.${influxdbDomain} = let
accessRules = ''
satisfy any;
${lib.concatMapStrings (ip: "allow ${ip};\n") sentinelCfg.wireguard.proxy-sentinel.server.reservedAddresses}
deny all;
'';
in {
forceSSL = true;
useACMEWildcardHost = true;
oauth2.enable = true;
oauth2.allowedGroups = ["access_influxdb"];
locations."/" = {
proxyPass = "http://influxdb";
proxyWebsockets = true;