ma mediengewitter: init setup
This commit is contained in:
parent
595f0c5b3c
commit
62b4fc9f82
22
2configs/deployment/mediengewitter.de.nix
Normal file
22
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 a new issue