fix: update Firefox Sync configuration and proxy settings for improved functionality
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user