summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/shiori.nix
diff options
context:
space:
mode:
authorlassulus <git@lassul.us>2023-06-19 03:25:39 +0200
committerlassulus <git@lassul.us>2023-06-19 03:25:39 +0200
commit139799c53cdaf55c362109e01be9dd96cc8700ed (patch)
treeb1ce719ec8f62458bce2d9fe2191b8d004630f2a /makefu/2configs/shiori.nix
parentcb8fbb09127392a17d698d91f78ede7ae46accb8 (diff)
parenta766e88e7c8d87aa6bdbde796d3a454f7b5e546e (diff)
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/2configs/shiori.nix')
-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;