From 757d2ff5a959f957bac364719781285ca1aa36b3 Mon Sep 17 00:00:00 2001 From: makefu Date: Sun, 9 Jan 2022 12:58:09 +0100 Subject: ma mediengewitter: init setup --- makefu/2configs/deployment/mediengewitter.de.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 makefu/2configs/deployment/mediengewitter.de.nix (limited to 'makefu/2configs/deployment') diff --git a/makefu/2configs/deployment/mediengewitter.de.nix b/makefu/2configs/deployment/mediengewitter.de.nix new file mode 100644 index 000000000..7c2073e8e --- /dev/null +++ b/makefu/2configs/deployment/mediengewitter.de.nix @@ -0,0 +1,22 @@ +{ config, lib, pkgs, ... }: +# more than just nginx config but not enough to become a module +let + domain = "over.voltage.nz"; +in { + + services.nginx = { + enable = lib.mkDefault true; + virtualHosts."mediengewitter.de" = { + enableACME = true; + forceSSL = true; + locations."/".return = "301 http://${domain}\$request_uri"; + #locations."/" = { + # proxyPass = "http://over.voltage.nz"; + #}; + #locations."/socket.io" = { + # proxyPass = "ws://over.voltage.nz"; + # proxyWebsockets = true; + #}; + }; + }; +} -- cgit v1.2.3