Something went wrong. Try again.
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455{ tangled-pkgs, pkgs, ...}: { services.nginx = { enable = true; virtualHosts = { "docs.tangled.org" = { forceSSL = true; enableACME = true; root = "${tangled-pkgs.docs}"; locations."/" = { tryFiles = "$uri $uri/ =404"; index = "index.html"; }; }; "nixery.tangled.sh" = { forceSSL = true; enableACME = true; locations."/" = { proxyPass = "http://localhost:8080"; extraConfig = '' # reject all write operations (PUT, POST, DELETE, PATCH, ETC.) if ($request_method !~ ^(GET|HEAD)$) { return 405; }
''; }; }; "spindle.tangled.sh" = { forceSSL = true; enableACME = true; locations."/" = { proxyPass = "http://localhost:6555"; }; locations."/events" = { proxyPass = "http://localhost:6555"; proxyWebsockets = true; }; locations."/logs/" = { proxyPass = "http://localhost:6555"; proxyWebsockets = true; }; }; }; }; security.acme = { acceptTerms = true; defaults.email = "anirudh@tangled.sh"; }; networking.firewall.allowedTCPPorts = [80 443];}