fuuko: Add ankisyncd
This commit is contained in:
parent
429144166d
commit
d6bddf40c0
|
@ -5,6 +5,7 @@
|
|||
../../modules
|
||||
../../users/simon
|
||||
|
||||
./services/ankisyncd.nix
|
||||
./services/dnsmasq.nix
|
||||
./services/grafana.nix
|
||||
./services/media.nix
|
||||
|
|
17
machines/fuuko/services/ankisyncd.nix
Normal file
17
machines/fuuko/services/ankisyncd.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ 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}";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue