{ ... }: let bensIp = "68.107.97.20"; # hiddor-kahih in { services = { nginx = { enable = true; recommendedGzipSettings = true; recommendedOptimisation = true; recommendedProxySettings = true; recommendedTlsSettings = true; virtualHosts = { # "bsima.me".locations."/".proxyPass = "http://localhost:8000/~ben"; "simatime.com".locations."/".proxyPass = "http://localhost:8000"; "web.simatime.com".locations."/".proxyPass = "http://${bensIp}:8000"; "hero.simatime.com".locations."/".proxyPass = "http://${bensIp}:3001"; "tv.simatime.com".locations."/".proxyPass = "http://${bensIp}:8096"; # emby runs on port 8096 "notebook.simatime.com".locations = { "/" = { proxyPass = "http://${bensIp}:3099"; proxyWebsockets = true; extraConfig = '' proxy_buffering off; proxy_read_timeout 86400; ''; }; "/(api/kernels/[^/]+/channels|terminals/websocket)/" = { proxyPass = "http://${bensIp}:3099"; proxyWebsockets = true; }; }; }; }; }; }