stockholm/makefu/2configs/deployment/mediengewitter.de.nix

23 lines
559 B
Nix
Raw Normal View History

2022-01-09 11:58:09 +00:00
{ 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;
#};
};
};
}