My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/infra/libkookie/configuration/server/brook/default.nix

30 lines
747 B

{ config, pkgs, ... }:
{
services.nginx.virtualHosts."stream.spacekookie.de" = {
serverAliases = [ "spacekookie.de" ];
enableACME = false;
useACMEHost = "spacekookie.de";
forceSSL = true;
locations."/" = {
root = pkgs.brook-frontend;
index = "index.html";
};
locations."/xmpp-bosh" = {
proxyPass = "http://localhost:5280/http-bind";
extraConfig = ''
proxy_set_header Host guest-xmpp.spacekookie.de;
proxy_set_header X-Forwarded-For guest-xmpp.spacekookie.de;
proxy_buffering off;
tcp_nodelay on;
'';
};
locations."/dash" = {
root = "/var/lib";
};
locations."/metrics" = {
proxyPass = "http://localhost:7667";
};
};
}