ma shiori: use new service
This commit is contained in:
parent
5ae3892b6c
commit
4b2c26265d
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user