ma mediengewitter: init setup
This commit is contained in:
parent
5e4240169c
commit
757d2ff5a9
22
makefu/2configs/deployment/mediengewitter.de.nix
Normal file
22
makefu/2configs/deployment/mediengewitter.de.nix
Normal 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;
|
||||||
|
#};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user