diff options
| author | Caroline Larimore <caroline@larimo.re> | 2024-07-22 00:46:56 -0700 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2024-07-22 00:46:56 -0700 |
| commit | b8a30fec397415088b68d7a249547fd3dab99f27 (patch) | |
| tree | be9fb5eeba68cb34331d698b74714fcee2d5f7ac | |
| parent | b90d579c5d0bd9d9f711c18d80c592925f2f45ee (diff) | |
Remove unused nginx reverse proxy
| -rw-r--r-- | hosts/copenhagen/configuration.nix | 1 | ||||
| -rw-r--r-- | roles/web/default.nix | 1 | ||||
| -rw-r--r-- | roles/web/proxy/default.nix | 37 |
3 files changed, 0 insertions, 39 deletions
diff --git a/hosts/copenhagen/configuration.nix b/hosts/copenhagen/configuration.nix index 1af0876..72bc06c 100644 --- a/hosts/copenhagen/configuration.nix +++ b/hosts/copenhagen/configuration.nix @@ -55,7 +55,6 @@ }; }; web = { - proxy.enable = true; stargazers.enable = false; personal.enable = true; }; diff --git a/roles/web/default.nix b/roles/web/default.nix index c0a6f04..d9fc202 100644 --- a/roles/web/default.nix +++ b/roles/web/default.nix @@ -3,7 +3,6 @@ { imports = [ ./personal - ./proxy ./stargazers ]; } diff --git a/roles/web/proxy/default.nix b/roles/web/proxy/default.nix deleted file mode 100644 index 3f06265..0000000 --- a/roles/web/proxy/default.nix +++ /dev/null @@ -1,37 +0,0 @@ -{ config, pkgs, lib, inputs, ... }: -with lib; - -let cfg = config.roles.web.proxy; in { - options.roles.web.proxy = { - enable = mkEnableOption "nginx reverse proxy"; - personal = mkOption { - type = types.str; - default = "localhost:8080"; - description = "personal site address"; - }; - }; - - config = mkIf cfg.enable { - networking.firewall.allowedTCPPorts = [ 80 ]; - - services.nginx = { - enable = true; - virtualHosts = { - "caroline.larimo.re" = { - serverAliases = [ "cxl.sh" "localhost" ]; - - locations = { - "/" = { - recommendedProxySettings = true; - proxyPass = "http://${cfg.personal}/"; - }; - "/test" = { - recommendedProxySettings = true; - proxyPass = "http://web-test.containers/"; - }; - }; - }; - }; - }; - }; -} |