diff options
| author | m4siri <git@m4siri.com> | 2025-11-29 10:37:28 +0545 |
|---|---|---|
| committer | m4siri <git@m4siri.com> | 2025-11-29 10:38:01 +0545 |
| commit | 9b9edc04c48f4108321f0752abe354ee3c493d69 (patch) | |
| tree | a7595710cc1023bfcb24928e85302cd6245b5fd4 /hosts/experimental-nixos/services/nginx.nix | |
| parent | bc3e939c9362321bdd0a956594b531046b8cbffd (diff) | |
add: ntfy & mollysocketmain
Diffstat (limited to 'hosts/experimental-nixos/services/nginx.nix')
| -rw-r--r-- | hosts/experimental-nixos/services/nginx.nix | 47 |
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; + }; + }; } |
