hotdog: enable gollum as wiki.r service
This commit is contained in:
parent
3fd0a5d586
commit
87d1e0eb86
@ -14,6 +14,7 @@
|
|||||||
<stockholm/krebs/2configs/ircd.nix>
|
<stockholm/krebs/2configs/ircd.nix>
|
||||||
<stockholm/krebs/2configs/nscd-fix.nix>
|
<stockholm/krebs/2configs/nscd-fix.nix>
|
||||||
<stockholm/krebs/2configs/reaktor2.nix>
|
<stockholm/krebs/2configs/reaktor2.nix>
|
||||||
|
<stockholm/krebs/2configs/wiki.nix>
|
||||||
];
|
];
|
||||||
|
|
||||||
krebs.build.host = config.krebs.hosts.hotdog;
|
krebs.build.host = config.krebs.hosts.hotdog;
|
||||||
|
19
krebs/2configs/wiki.nix
Normal file
19
krebs/2configs/wiki.nix
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{ config, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.gollum = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
networking.firewall.allowedTCPPorts = [ 80 ];
|
||||||
|
services.nginx = {
|
||||||
|
enable = true;
|
||||||
|
virtualHosts.wiki = {
|
||||||
|
serverAliases = [ "wiki.r" "wiki.${config.networking.hostName}.r" ];
|
||||||
|
locations."/".extraConfig = ''
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "upgrade";
|
||||||
|
proxy_pass http://127.0.0.1:${toString config.services.gollum.port};
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -74,6 +74,8 @@ in {
|
|||||||
"build.hotdog.r"
|
"build.hotdog.r"
|
||||||
"cgit.hotdog.r"
|
"cgit.hotdog.r"
|
||||||
"irc.r"
|
"irc.r"
|
||||||
|
"wiki.r"
|
||||||
|
"wiki.hotdog.r"
|
||||||
];
|
];
|
||||||
tinc.pubkey = ''
|
tinc.pubkey = ''
|
||||||
-----BEGIN RSA PUBLIC KEY-----
|
-----BEGIN RSA PUBLIC KEY-----
|
||||||
|
Loading…
Reference in New Issue
Block a user