commit | 540cc9435d711882bc62da904a9b4a82232315cf | [log] [tgz] |
---|---|---|
author | Skyler Grey <skyler3665@gmail.com> | Fri Jul 29 09:21:35 2022 +0100 |
committer | Skyler Grey <skyler3665@gmail.com> | Fri Jul 29 09:21:35 2022 +0100 |
tree | b7ef7c82af8db4a14e180786050f403508531f6b | |
parent | f11bbb67ff956c3dbbb1a5d16611bce5bf75979d [diff] |
Add a cool-dev nginx proxy
diff --git a/src/apps/system/cool-dev.nix b/src/apps/system/cool-dev.nix new file mode 100644 index 0000000..4207c39 --- /dev/null +++ b/src/apps/system/cool-dev.nix
@@ -0,0 +1,13 @@ +{ pkgs, ... }: let + host = "cool-dev.python.local"; +in { + services.nginx.virtualHosts."${host}" = { + locations."/" = { + proxyPass = "http://localhost:9982"; + }; + }; + + networking.hosts = { + "127.0.0.1" = [ "cool-dev.python.local" ]; + }; +}