diff options
author | tomf <tom@tom-fitzhenry.me.uk> | 2023-10-28 04:25:40 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-28 04:25:40 +1100 |
commit | b42ca6b9929287a03c0b306ec471d6a74042d635 (patch) | |
tree | 7737b6cc24ae05b11074479703f3b16a42601229 /nixos/modules/services/web-apps | |
parent | 6295cc31ed13ae15d7ffdaa1e7ef386fb39f1a26 (diff) | |
parent | 8da856302cf6cc4f76af1b74ae8484e3f730c76f (diff) | |
download | nixlib-b42ca6b9929287a03c0b306ec471d6a74042d635.tar nixlib-b42ca6b9929287a03c0b306ec471d6a74042d635.tar.gz nixlib-b42ca6b9929287a03c0b306ec471d6a74042d635.tar.bz2 nixlib-b42ca6b9929287a03c0b306ec471d6a74042d635.tar.lz nixlib-b42ca6b9929287a03c0b306ec471d6a74042d635.tar.xz nixlib-b42ca6b9929287a03c0b306ec471d6a74042d635.tar.zst nixlib-b42ca6b9929287a03c0b306ec471d6a74042d635.zip |
Merge pull request #260346 from l0b0/feat/shiori-webroot
nixos/shiori: add web root option
Diffstat (limited to 'nixos/modules/services/web-apps')
-rw-r--r-- | nixos/modules/services/web-apps/shiori.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/nixos/modules/services/web-apps/shiori.nix b/nixos/modules/services/web-apps/shiori.nix index f0505e052e1c..71b5ad4d4c06 100644 --- a/nixos/modules/services/web-apps/shiori.nix +++ b/nixos/modules/services/web-apps/shiori.nix @@ -29,6 +29,13 @@ in { default = 8080; description = lib.mdDoc "The port of the Shiori web application"; }; + + webRoot = mkOption { + type = types.str; + default = "/"; + example = "/shiori"; + description = lib.mdDoc "The root of the Shiori web application"; + }; }; }; @@ -40,7 +47,7 @@ in { environment.SHIORI_DIR = "/var/lib/shiori"; serviceConfig = { - ExecStart = "${package}/bin/shiori serve --address '${address}' --port '${toString port}'"; + ExecStart = "${package}/bin/shiori serve --address '${address}' --port '${toString port}' --webroot '${webRoot}'"; DynamicUser = true; StateDirectory = "shiori"; |