18 lines
312 B
Nix
18 lines
312 B
Nix
|
{ config, ... }:
|
||
|
let
|
||
|
cfg = config.services.ankisyncd;
|
||
|
in
|
||
|
{
|
||
|
services.ankisyncd = {
|
||
|
enable = true;
|
||
|
host = "127.0.0.1";
|
||
|
};
|
||
|
|
||
|
services.nginx.virtualHosts."anki.sbruder.de" = {
|
||
|
enableACME = true;
|
||
|
forceSSL = true;
|
||
|
|
||
|
locations."/".proxyPass = "http://${cfg.host}:${toString cfg.port}";
|
||
|
};
|
||
|
}
|