diff options
author | lassulus <lassulus@lassul.us> | 2022-01-09 18:04:01 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2022-01-09 18:04:01 +0100 |
commit | 63f8fe674ead768925d9083b628505a27a522064 (patch) | |
tree | fc3b23ad33e8855dfd1e752c3931b60ea503d6d5 /makefu/2configs/deployment/mediengewitter.de.nix | |
parent | 66bcb802f5a4fe9dac92b0387ba3ad5a2915a173 (diff) | |
parent | 757d2ff5a959f957bac364719781285ca1aa36b3 (diff) |
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/2configs/deployment/mediengewitter.de.nix')
-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; + #}; + }; + }; +} |