stockholm/makefu/2configs/shiori.nix

21 lines
448 B
Nix
Raw Normal View History

2019-09-24 16:39:03 +00:00
{config, lib, pkgs, ...}:
let
web_port = 9011;
statedir = "/var/lib/shiori";
in {
2021-04-04 08:24:55 +00:00
state = [ "/var/lib/private/shiori" ]; # when using dynamicUser
2023-06-03 13:36:09 +00:00
services.shiori = {
enable = true;
port = web_port;
address = "127.0.0.1";
2019-09-24 16:39:03 +00:00
};
2019-09-25 12:54:55 +00:00
services.nginx.virtualHosts."bookmark.euer.krebsco.de" = {
forceSSL = true;
enableACME = true;
locations."/" = {
2019-09-24 16:39:03 +00:00
proxyPass = "http://127.0.0.1:${toString web_port}/";
};
2019-09-25 12:54:55 +00:00
};
2019-09-24 16:39:03 +00:00
}