From 855f7a7450fb8cb68428aca404afd757304fed9d Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 26 Mar 2022 12:49:01 +0100 Subject: [PATCH] vueko/bang-evaluator: Migrate to renge --- machines/renge/configuration.nix | 1 + machines/renge/services/bang-evaluator.nix | 12 ++++++++++++ machines/vueko/configuration.nix | 10 ---------- 3 files changed, 13 insertions(+), 10 deletions(-) create mode 100644 machines/renge/services/bang-evaluator.nix diff --git a/machines/renge/configuration.nix b/machines/renge/configuration.nix index 607bb93..3862302 100644 --- a/machines/renge/configuration.nix +++ b/machines/renge/configuration.nix @@ -6,6 +6,7 @@ ../../modules ./services/ankisyncd.nix + ./services/bang-evaluator.nix ./services/element-web.nix ./services/gitea.nix ./services/grafana.nix diff --git a/machines/renge/services/bang-evaluator.nix b/machines/renge/services/bang-evaluator.nix new file mode 100644 index 0000000..fe22f59 --- /dev/null +++ b/machines/renge/services/bang-evaluator.nix @@ -0,0 +1,12 @@ +{ + services.bang-evaluator = { + enable = true; + listenAddress = ":8000"; + }; + + services.nginx.virtualHosts."bangs.sbruder.de" = { + enableACME = true; + forceSSL = true; + locations."/".proxyPass = "http://localhost:8000"; + }; +} diff --git a/machines/vueko/configuration.nix b/machines/vueko/configuration.nix index 931ee15..da4b68f 100644 --- a/machines/vueko/configuration.nix +++ b/machines/vueko/configuration.nix @@ -57,11 +57,6 @@ locations."/".proxyPass = "http://localhost:5232"; }; - "bangs.sbruder.de" = { - enableACME = true; - forceSSL = true; - locations."/".proxyPass = "http://localhost:8000"; - }; }; }; @@ -85,9 +80,4 @@ }; }; }; - - services.bang-evaluator = { - enable = true; - listenAddress = ":8000"; - }; }