ma shiori: use new service

This commit is contained in:
makefu 2023-06-03 15:36:09 +02:00
parent 5ae3892b6c
commit 4b2c26265d
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

View File

@ -4,19 +4,10 @@ let
statedir = "/var/lib/shiori"; statedir = "/var/lib/shiori";
in { in {
state = [ "/var/lib/private/shiori" ]; # when using dynamicUser state = [ "/var/lib/private/shiori" ]; # when using dynamicUser
systemd.services.shiori = { services.shiori = {
description = "Shiori Server"; enable = true;
after = [ "network-online.target" ]; port = web_port;
environment = { address = "127.0.0.1";
SHIORI_DIR = statedir;
};
wantedBy = [ "multi-user.target" ];
serviceConfig = {
DynamicUser = true;
StateDirectory = "shiori";
ExecStart = "${pkgs.shiori}/bin/shiori serve -a 127.0.0.1 -p ${toString web_port}";
PrivateTmp = true;
};
}; };
services.nginx.virtualHosts."bookmark.euer.krebsco.de" = { services.nginx.virtualHosts."bookmark.euer.krebsco.de" = {
forceSSL = true; forceSSL = true;