fix: update Firefox Sync configuration and proxy settings for improved functionality

This commit is contained in:
2025-06-01 22:10:04 +02:00
parent 365d15767b
commit 0df4a4c1ec
3 changed files with 10 additions and 21 deletions

View File

@@ -3,7 +3,9 @@ let
domain = "sync.cloonar.com";
networkPrefix = config.networkPrefix;
in {
sops.secrets.firefox-sync = { };
sops.secrets.firefox-sync = {
mode = "0777";
};
security.acme.certs."${domain}" = {
group = "nginx";
@@ -36,32 +38,19 @@ in {
services.mysql.package = pkgs.mariadb;
services.firefox-syncserver = {
enable = true;
settings.host = "0.0.0.0";
singleNode = {
enable = true;
hostname = domain;
hostname = "0.0.0.0";
url = "https://${domain}";
};
settings = {
tokenserver.enable = true;
};
secrets = "/run/secrets/firefox-sync";
logLevel = "trace";
};
services.nginx = {
enable = true;
virtualHosts."${domain}" = {
forceSSL = false;
enableACME = false;
locations."/" = {
proxyPass = "http://localhost:5000/";
};
};
logLevel = "debug";
};
networking.firewall = {
enable = true;
allowedTCPPorts = [ 80 443 ];
allowedTCPPorts = [ 5000 ];
};
system.stateVersion = "23.05";

View File

@@ -21,8 +21,8 @@
enableACME = true;
acmeRoot = null;
locations."/" = {
proxyPass = "http://${config.networkPrefix}.97.6:80";
proxyWebsockets = true;
proxyPass = "http://${config.networkPrefix}.97.6:5000";
recommendedProxySettings = true;
};
};
}