Compare commits
2 Commits
3fd0a5d586
...
f556a302f6
Author | SHA1 | Date | |
---|---|---|---|
|
f556a302f6 | ||
|
87d1e0eb86 |
@ -14,6 +14,7 @@
|
||||
<stockholm/krebs/2configs/ircd.nix>
|
||||
<stockholm/krebs/2configs/nscd-fix.nix>
|
||||
<stockholm/krebs/2configs/reaktor2.nix>
|
||||
<stockholm/krebs/2configs/wiki.nix>
|
||||
];
|
||||
|
||||
krebs.build.host = config.krebs.hosts.hotdog;
|
||||
|
@ -5,7 +5,7 @@
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
virtualHosts.build = {
|
||||
serverAliases = [ "build.${config.networking.hostName}.r" ];
|
||||
serverAliases = [ "build.r" "build.${config.networking.hostName}.r" ];
|
||||
locations."/".extraConfig = ''
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
|
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"
|
||||
"cgit.hotdog.r"
|
||||
"irc.r"
|
||||
"wiki.r"
|
||||
"wiki.hotdog.r"
|
||||
];
|
||||
tinc.pubkey = ''
|
||||
-----BEGIN RSA PUBLIC KEY-----
|
||||
|
Loading…
Reference in New Issue
Block a user