mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2026-07-16 22:21:55 +08:00
26 lines
602 B
Nix
26 lines
602 B
Nix
{
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
services = {
|
|
nginx.virtualHosts."share.liv.town" = {
|
|
forceSSL = true;
|
|
sslCertificate = "/var/lib/acme/liv.town/cert.pem";
|
|
sslCertificateKey = "/var/lib/acme/liv.town/key.pem";
|
|
locations."/" = {
|
|
proxyPass = "http://localhost:53842";
|
|
};
|
|
};
|
|
nginx.virtualHosts."share.ahwx.org" = {
|
|
forceSSL = true;
|
|
sslCertificate = "/var/lib/acme/ahwx.org/cert.pem";
|
|
sslCertificateKey = "/var/lib/acme/ahwx.org/key.pem";
|
|
locations."/" = {
|
|
proxyPass = "http://localhost:53842";
|
|
};
|
|
};
|
|
};
|
|
}
|