diff options
| author | Caroline Larimore <caroline@larimo.re> | 2024-07-22 00:45:08 -0700 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2024-07-22 00:45:08 -0700 |
| commit | b90d579c5d0bd9d9f711c18d80c592925f2f45ee (patch) | |
| tree | a12965d266cef7205dcfa3b1d00e023f6ce1a20a | |
| parent | 7418fdf76461a260dd06728ffc9f59e23fc12f1f (diff) | |
Remove test site
| -rw-r--r-- | hosts/copenhagen/configuration.nix | 1 | ||||
| -rw-r--r-- | roles/web/default.nix | 1 | ||||
| -rw-r--r-- | roles/web/test/default.nix | 37 |
3 files changed, 0 insertions, 39 deletions
diff --git a/hosts/copenhagen/configuration.nix b/hosts/copenhagen/configuration.nix index 531f7a4..1af0876 100644 --- a/hosts/copenhagen/configuration.nix +++ b/hosts/copenhagen/configuration.nix @@ -57,7 +57,6 @@ web = { proxy.enable = true; stargazers.enable = false; - test.enable = true; personal.enable = true; }; }; diff --git a/roles/web/default.nix b/roles/web/default.nix index efa9342..c0a6f04 100644 --- a/roles/web/default.nix +++ b/roles/web/default.nix @@ -5,6 +5,5 @@ ./personal ./proxy ./stargazers - ./test ]; } diff --git a/roles/web/test/default.nix b/roles/web/test/default.nix deleted file mode 100644 index 28376a2..0000000 --- a/roles/web/test/default.nix +++ /dev/null @@ -1,37 +0,0 @@ -{ config, pkgs, lib, inputs, ... }: -with lib; - -let cfg = config.roles.web.test; in { - options.roles.web.test = { - enable = mkEnableOption "test webserver"; - }; - - config = mkIf cfg.enable { - containers.web-test = { - autoStart = true; - - privateNetwork = true; - hostAddress = "192.168.0.1"; - localAddress = "192.168.0.2"; - - bindMounts = { - "/srv/web/test" = { - hostPath = "/srv/web/test"; - isReadOnly = true; - }; - }; - - config = { ... }: { - system.stateVersion = "23.11"; - networking.firewall.allowedTCPPorts = [ 80 ]; - - services.nginx = { - enable = true; - virtualHosts = { - "web-test".root = "/srv/web/test"; - }; - }; - }; - }; - }; -} |