ma mediengewitter: init setup

This commit is contained in:
makefu 2022-01-09 12:58:09 +01:00
parent 5e4240169c
commit 757d2ff5a9
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

View File

@ -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;
#};
};
};
}