niksos/hosts/chmura/services/firefox-syncserver.nix

36 lines
842 B
Nix
Raw Normal View History

2023-11-25 17:12:09 +01:00
{
config,
pkgs,
...
2024-07-16 08:07:53 +02:00
}: let
2023-11-25 17:12:09 +01:00
domain = "ffsync.jacekpoz.pl";
in {
2024-05-03 18:51:48 +02:00
age.secrets.firefox-syncserver-secrets.file = ../../../secrets/firefox-syncserver-secrets.age;
2023-11-25 17:12:09 +01:00
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
};
}