From c8ca5adf842e409f9acde3bb1ec23694eab54b62 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Mon, 16 Sep 2024 16:33:34 +0200 Subject: [PATCH] Enable nginx --- m/hut/configuration.nix | 1 + m/hut/nginx.nix | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 m/hut/nginx.nix diff --git a/m/hut/configuration.nix b/m/hut/configuration.nix index 0e875c8..3a14eb6 100644 --- a/m/hut/configuration.nix +++ b/m/hut/configuration.nix @@ -17,6 +17,7 @@ ./gitea.nix ./msmtp.nix ./postgresql.nix + ./nginx.nix #./pxe.nix ]; diff --git a/m/hut/nginx.nix b/m/hut/nginx.nix new file mode 100644 index 0000000..e2e6f44 --- /dev/null +++ b/m/hut/nginx.nix @@ -0,0 +1,14 @@ +{ + services.nginx = { + enable = true; + virtualHosts."jungle.bsc.es" = { + listen = [ + { + addr = "127.0.0.1"; + port = 8123; + } + ]; + locations."/p/".alias = "/ceph/p/"; + }; + }; +}