summaryrefslogtreecommitdiffstats
path: root/makefu
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2023-06-03 15:36:09 +0200
committermakefu <github@syntax-fehler.de>2023-06-03 15:36:09 +0200
commit4b2c26265d7bf37f03949b08ade932f7e174534f (patch)
treecbcac5e338d05d6a9cb8ad7e7ec5fb2642c34799 /makefu
parent5ae3892b6c4d27e545bf70609e263562731d91a8 (diff)
ma shiori: use new service
Diffstat (limited to 'makefu')
-rw-r--r--makefu/2configs/shiori.nix17
1 files changed, 4 insertions, 13 deletions
diff --git a/makefu/2configs/shiori.nix b/makefu/2configs/shiori.nix
index cbccdc1f5..94a5e9dc8 100644
--- a/makefu/2configs/shiori.nix
+++ b/makefu/2configs/shiori.nix
@@ -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;