diff --git a/hosts/linode/l001/nginx.nix b/hosts/linode/l001/nginx.nix index bba42fb..f9efd25 100644 --- a/hosts/linode/l001/nginx.nix +++ b/hosts/linode/l001/nginx.nix @@ -53,6 +53,7 @@ enableACME = true; forceSSL = true; locations."/" = { + proxyWebsockets = true; proxyPass = "http://10.20.40.104:3080"; }; }; @@ -88,23 +89,57 @@ }; }; - # NOTE ellalala.com? joshuabell.xyz? + "www.joshuabell.xyz" = { + enableACME = true; + forceSSL = true; + locations."/" = { + return = "301 https://joshuabell.xyz"; + }; + }; + "joshuabell.xyz" = { + enableACME = true; + forceSSL = true; + locations."/" = { + # return = "200 'Hello World'"; + extraConfig = '' + default_type text/html; + return 200 ' + +
+ In the void you roam,
+ A page that cannot be found-
+ Turn back, seek anew. +
+ + '; + ''; + }; + }; + + "www.ellalala.com" = { + enableACME = true; + forceSSL = true; + locations."/" = { + return = "301 https://ellalala.com"; + }; + }; + "ellalala.com" = { + enableACME = true; + forceSSL = true; + locations."/" = { + return = "404"; + }; + }; "_" = { default = true; locations."/" = { - return = "404"; # or 444 for drop + return = "444"; # 404 for not found or 444 for drop }; }; }; # STREAMS - # streams = { - # # Adding stream configuration for port 3032 - # "3032" = { - # proxyPass = "10.20.40.190:6611"; - # }; - # }; streamConfig = '' server { listen 3032; @@ -125,10 +160,3 @@ } # TODO -# -#
-# In the void you roam,
-# A page that cannot be found-
-# Turn back, seek anew. -#
-#