Files
nixos/hosts/linode/nginx.nix
T

35 lines
713 B
Nix
Raw Normal View History

2022-04-12 15:11:56 +00:00
{ ... }:
let
homepage = "127.0.0.1:30080";
in
{
security.acme = {
acceptTerms = true;
email = "greg.hellings@gmail.com";
};
services.nginx = {
enable = true;
# If there are recommended settings, let's use them!
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
};
# Actually serve the content from here
virtualisation.podman.enable = true;
virtualisation.oci-containers = {
backend = "podman";
containers."homepage" = {
image = "ghcr.io/greg-hellings/homepage:latest";
ports = [ "${homepage}:80" ];
};
};
2022-04-20 16:31:43 +00:00
greg.proxies."thehellings.com" = {
target = "http://${homepage}/";
ssl = true;
2022-04-12 15:11:56 +00:00
};
}