summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/deployment
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2022-01-09 12:58:09 +0100
committermakefu <github@syntax-fehler.de>2022-01-09 12:58:09 +0100
commit757d2ff5a959f957bac364719781285ca1aa36b3 (patch)
tree8a41ab7d34b8385dce040f62a4b198682d8cf7df /makefu/2configs/deployment
parent5e4240169ca8e49f38d8f5b0fc8a0f938775900b (diff)
ma mediengewitter: init setup
Diffstat (limited to 'makefu/2configs/deployment')
-rw-r--r--makefu/2configs/deployment/mediengewitter.de.nix22
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;
+ #};
+ };
+ };
+}