Added proxy pass and fixed syncthing

This commit is contained in:
Nathan Anderson 2024-03-18 14:05:48 -06:00
parent 286bb64d95
commit 0a7738b8cd

View File

@ -100,18 +100,19 @@ in
# nfs port TODO make dependant on option enabled
# 2049 - nfs
# 8384 - syncthing
networking.firewall.allowedTCPPorts = [ 2049 8384 ];
networking.firewall.allowedTCPPorts = [ 80 2049 8384 ];
services.syncthing = lib.mkIf srvConfig.syncthingEnable {
enable = true;
user = "myusername";
user = "luci";
dataDir = "${srvConfig.nfsRoot}/kage/syncthing";
configDir = "${srvConfig.nfsRoot}/kage/.config/syncthing";
# overrideDevices = true; # overrides any devices added or deleted through the WebUI
# overrideFolders = true; # overrides any folders added or deleted through the WebUI
openDefaultPorts = true;
group = "users";
relay.enable = false;
# settings = {
# devices = {
# # "supernote" = { id = "DEVICE-ID-GOES-HERE"; };
@ -134,6 +135,19 @@ in
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
services.nginx = {
enable = true;
recommendedProxySettings = true;
# recommendedTlsSettings = true;
# other Nginx options
virtualHosts."http://127.0.0.1" = {
# enableACME = true;
# forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:8384";
};
};
};
system.stateVersion = "23.11"; # Did you read the comment?
};
}