summaryrefslogtreecommitdiffstats
path: root/krebs/2configs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2020-08-10 18:48:45 +0200
committerlassulus <lassulus@lassul.us>2020-08-10 18:48:45 +0200
commit87d1e0eb868445623ead814c81be934ccac14124 (patch)
treeb770856cc862e358b448562a7964ab57162358d6 /krebs/2configs
parent3fd0a5d586cfecf90eb4344b59cb0331c4717595 (diff)
hotdog: enable gollum as wiki.r service
Diffstat (limited to 'krebs/2configs')
-rw-r--r--krebs/2configs/wiki.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/krebs/2configs/wiki.nix b/krebs/2configs/wiki.nix
new file mode 100644
index 000000000..2350e711e
--- /dev/null
+++ b/krebs/2configs/wiki.nix
@@ -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};
+ '';
+ };
+ };
+}