summaryrefslogtreecommitdiff
path: root/hosts/experimental-nixos/services/nginx.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/experimental-nixos/services/nginx.nix')
-rw-r--r--hosts/experimental-nixos/services/nginx.nix47
1 files changed, 47 insertions, 0 deletions
diff --git a/hosts/experimental-nixos/services/nginx.nix b/hosts/experimental-nixos/services/nginx.nix
index 07a1a7c..fa857db 100644
--- a/hosts/experimental-nixos/services/nginx.nix
+++ b/hosts/experimental-nixos/services/nginx.nix
@@ -7,6 +7,15 @@
http2 = true;
addSSL = true;
useACMEHost = "m4siri.com";
+
+ locations."/molly" = {
+ proxyPass = "http://localhost:8091/";
+ extraConfig = ''
+ proxy_set_header Host $host;
+ proxy_set_header X-Original-URL $request_uri;
+ '';
+ };
+
};
services.nginx.virtualHosts."mail.m4siri.com" = {
http2 = true;
@@ -31,4 +40,42 @@
proxyWebsockets = true;
};
};
+
+ services.nginx.virtualHosts."ntfy.m4siri.com" = {
+ http2 = true;
+ addSSL = true;
+ useACMEHost = "ntfy.m4siri.com";
+
+ locations."/" = {
+ proxyPass = "http://localhost:8090";
+ proxyWebsockets = true;
+ extraConfig = ''
+ proxy_set_header Host $host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Proto $scheme;
+ '';
+ };
+ };
+
+ services.nginx.virtualHosts."shashwothapa.com.np" = {
+ http2 = true;
+ addSSL = true;
+ useACMEHost = "shashwothapa.com.np";
+
+ locations."/" = {
+ return = "418";
+ };
+ };
+
+ services.nginx.virtualHosts."mail.shashwothapa.com.np" = {
+ http2 = true;
+ addSSL = true;
+ useACMEHost = "mail.shashwothapa.com.np";
+
+ locations."/" = {
+ proxyPass = "http://localhost:8080";
+ proxyWebsockets = true;
+ };
+ };
}