niksos/hosts/chmura/firefox-syncserver.nix

36 lines
840 B
Nix
Raw Normal View History

2023-11-25 17:12:09 +01:00
{
config,
pkgs,
...
}: let
domain = "ffsync.jacekpoz.pl";
in {
age.secrets.firefox-syncserver-secrets.file = ../../secrets/firefox-syncserver-secrets.age;
2024-04-14 18:49:29 +02:00
services = {
firefox-syncserver = {
2023-11-25 17:12:09 +01:00
enable = true;
2024-04-14 18:49:29 +02:00
logLevel = "warn";
singleNode = {
enable = true;
capacity = 100;
hostname = domain;
url = "https://${domain}";
};
settings = {
port = 6583;
};
secrets = config.age.secrets.firefox-syncserver-secrets.path;
2023-11-25 17:12:09 +01:00
};
2024-04-14 18:49:29 +02:00
mysql.package = pkgs.mariadb;
2023-11-25 17:12:09 +01:00
2024-04-14 18:49:29 +02:00
caddy = {
enable = true;
virtualHosts.${domain}.extraConfig = ''
reverse_proxy * localhost:6583
'';
};
2023-11-25 17:12:09 +01:00
};
}