Wiki-js: Difference between revisions

From NixOS Wiki
M3vtfbp (talk | contribs)
Created page with "Most basic Nix to get Wiki-js running on port 3000. systemd.services.wiki-js = { requires = [ "postgresql.service" ]; after = [ "postgresql.service" ]; }; services.wiki-js = { enable = true; settings.db = { db = "wiki-js"; host = "/run/postgresql"; type = "postgres"; user = "wiki-js"; }; }; services.postgresql = { enable = true; ensureDatabases = [ "wiki-js" ]; ensureUsers = [{ name = "wiki-js..."
Tags: Mobile edit Mobile web edit
 
Klinger (talk | contribs)
Category:Server Category:Cookbook Category:Web Applications. Intro sentence with link to website
 
Line 1: Line 1:
Most basic Nix to get Wiki-js running on port 3000.
[https://js.wiki/ Wiki.js] is a wiki engine running on Node.js.
 


== Cookbook ==
Most basic Nix to get Wiki-js running on port 3000:


   systemd.services.wiki-js = {
   systemd.services.wiki-js = {
Line 24: Line 25:
     }];
     }];
   };
   };
[[Category:Server]]
[[Category:Cookbook]]
[[Category:Web Applications]]

Latest revision as of 21:54, 28 May 2024

Wiki.js is a wiki engine running on Node.js.

Cookbook

Most basic Nix to get Wiki-js running on port 3000:

 systemd.services.wiki-js = {
   requires = [ "postgresql.service" ];
   after    = [ "postgresql.service" ];
 };
 services.wiki-js = {
   enable = true;
   settings.db = {
     db  = "wiki-js";
     host = "/run/postgresql";
     type = "postgres";
     user = "wiki-js";
   };
 };
 services.postgresql = {
   enable = true;
   ensureDatabases = [ "wiki-js" ];
   ensureUsers = [{
     name = "wiki-js";
     ensureDBOwnership = true;
   }];
 };