2022-03-08 01:42:46 +00:00
|
|
|
{
|
2022-12-01 01:52:42 +00:00
|
|
|
pkgs,
|
2022-03-08 01:42:46 +00:00
|
|
|
lib,
|
2023-02-02 03:58:37 +00:00
|
|
|
config,
|
2022-03-08 01:42:46 +00:00
|
|
|
...
|
2022-12-01 01:52:42 +00:00
|
|
|
}: {
|
|
|
|
services.mysql = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.mariadb;
|
2021-07-12 23:07:14 +00:00
|
|
|
};
|
|
|
|
|
2022-12-01 01:52:42 +00:00
|
|
|
services.mysqlBackup = {
|
|
|
|
enable = true;
|
|
|
|
databases = ["firefox_syncserver"];
|
|
|
|
calendar = "";
|
|
|
|
singleTransaction = true;
|
|
|
|
};
|
2021-07-12 23:07:14 +00:00
|
|
|
|
2022-12-01 01:52:42 +00:00
|
|
|
services = {
|
|
|
|
firefox-syncserver = {
|
|
|
|
enable = true;
|
2023-02-02 03:58:37 +00:00
|
|
|
secrets = config.age.secrets.firefox-syncserver-secrets.path;
|
2022-12-01 01:52:42 +00:00
|
|
|
logLevel = "trace";
|
|
|
|
database = {
|
|
|
|
name = "firefox_syncserver";
|
|
|
|
createLocally = true;
|
2021-07-12 23:07:14 +00:00
|
|
|
};
|
2022-12-01 01:52:42 +00:00
|
|
|
singleNode = {
|
2021-07-12 23:07:14 +00:00
|
|
|
enable = true;
|
2022-12-01 01:52:42 +00:00
|
|
|
hostname = "firefox-sync.maralorn.de";
|
|
|
|
capacity = 1;
|
|
|
|
enableNginx = true;
|
|
|
|
enableTLS = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
nginx = {
|
|
|
|
enable = true;
|
|
|
|
virtualHosts."firefox-sync.maralorn.de" = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
2021-07-12 23:07:14 +00:00
|
|
|
};
|
|
|
|
};
|
2021-07-11 22:50:44 +00:00
|
|
|
};
|
|
|
|
}
|