mdrss-proxy: init
This commit is contained in:
parent
d2de0477b4
commit
40e6fd0418
19
2configs/deployment/mdrss-proxy.nix
Normal file
19
2configs/deployment/mdrss-proxy.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{config, ... }:
|
||||
let
|
||||
port = 3008;
|
||||
domain = "mdrss.euer.krebsco.de";
|
||||
in
|
||||
{
|
||||
security.acme.certs."euer.krebsco.de".extraDomainNames = [domain];
|
||||
services.nginx = {
|
||||
virtualHosts."${domain}" = {
|
||||
useACMEHost = "euer.krebsco.de";
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://omo.w:${toString port}";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
Loading…
Reference in a new issue