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";
in {
state = [ "/var/lib/private/shiori" ]; # when using dynamicUser
systemd.services.shiori = {
description = "Shiori Server";
after = [ "network-online.target" ];
environment = {
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.shiori = {
enable = true;
port = web_port;
address = "127.0.0.1";
};
services.nginx.virtualHosts."bookmark.euer.krebsco.de" = {
forceSSL = true;