48 lines
1,018 B
Nix
48 lines
1,018 B
Nix
{ ... }:
|
|
{
|
|
services.nginx = {
|
|
enable = true;
|
|
virtualHosts."hedgedoc.dryb.org" = {
|
|
addSSL = true;
|
|
enableACME = true;
|
|
locations."/" = {
|
|
proxyPass = "http://127.0.0.1:8009";
|
|
};
|
|
};
|
|
virtualHosts."md.dryb.org" = {
|
|
addSSL = true;
|
|
enableACME = true;
|
|
locations."/" = {
|
|
proxyPass = "301 https://hedgedoc.dryb.org$request_uri";
|
|
};
|
|
};
|
|
virtualHosts."miniflux.dryb.org" = {
|
|
addSSL = true;
|
|
enableACME = true;
|
|
locations."/" = {
|
|
proxyPass = "http://127.0.0.1:8008";
|
|
};
|
|
};
|
|
virtualHosts."syncthing.dryb.org" = {
|
|
addSSL = true;
|
|
enableACME = true;
|
|
locations."/" = {
|
|
proxyPass = "http://127.0.0.1:8384";
|
|
};
|
|
};
|
|
virtualHosts."vaultwarden.dryb.org" = {
|
|
addSSL = true;
|
|
enableACME = true;
|
|
locations."/" = {
|
|
proxyPass = "http://127.0.0.1:8005";
|
|
};
|
|
};
|
|
};
|
|
|
|
networking.firewall = {
|
|
allowedTCPPorts = [
|
|
80
|
|
443
|
|
];
|
|
};
|
|
}
|