mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Add test instance of wiki-js
This commit is contained in:
parent
4ba62ee56f
commit
74aa19941d
4 changed files with 57 additions and 8 deletions
|
|
@ -18,6 +18,10 @@
|
|||
owner = config.services.borgbackup.jobs.data.user;
|
||||
key = "borg/client_keys/backend1/private";
|
||||
};
|
||||
wikiJsEnvFile = {
|
||||
key = "wikijs-test/service_env_file";
|
||||
restartUnits = [ "wiki-js.service" ];
|
||||
};
|
||||
};
|
||||
|
||||
custom = {
|
||||
|
|
@ -63,7 +67,26 @@
|
|||
services.murmur.enable = true;
|
||||
};
|
||||
|
||||
services.wiki-js = {
|
||||
enable = true;
|
||||
settings = {
|
||||
db.type = "postgres";
|
||||
db.host = "10.0.1.11";
|
||||
db.db = "wikijs-test";
|
||||
db.user = "wikijs-test";
|
||||
db.pass = "$(DB_PASS)";
|
||||
};
|
||||
environmentFile = config.sops.secrets.wikiJsEnvFile.path;
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."wikijs-test.froidmont.org" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:${toString config.services.wiki-js.settings.port}";
|
||||
};
|
||||
};
|
||||
|
||||
networking.interfaces.enp1s0 = {
|
||||
useDHCP = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue