diff options
Diffstat (limited to 'makefu')
-rw-r--r-- | makefu/2configs/deployment/mediengewitter.de.nix | 22 |
1 files changed, 22 insertions, 0 deletions
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; + #}; + }; + }; +} |