summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/deployment/mediengewitter.de.nix
blob: 7c2073e8edaad5d06f88b13bd80a71e60e0ce88e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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;
      #};
    };
  };
}