From 251f535146d6b162c50b2a4f80e5020ce3390a32 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Mon, 17 Jun 2024 23:32:56 +0200 Subject: [PATCH] Update --- hosts/shared/nginx.nix | 10 ++++++++++ hosts/shared/openssh.nix | 6 ++++++ 2 files changed, 16 insertions(+) create mode 100644 hosts/shared/nginx.nix create mode 100644 hosts/shared/openssh.nix diff --git a/hosts/shared/nginx.nix b/hosts/shared/nginx.nix new file mode 100644 index 0000000..fb09e3f --- /dev/null +++ b/hosts/shared/nginx.nix @@ -0,0 +1,10 @@ +{ + services.nginx = { + enable = true; + virtualHosts = { + "test.anotherhadi.com" = { + locations."/" = { proxyPass = "http://192.168.2.22"; }; + }; + }; + }; +} diff --git a/hosts/shared/openssh.nix b/hosts/shared/openssh.nix new file mode 100644 index 0000000..6cc3d83 --- /dev/null +++ b/hosts/shared/openssh.nix @@ -0,0 +1,6 @@ +{ + services.openssh = { + enable = true; + ports = [ 22 ]; + }; +}