Files
nixos/hosts/unstable/linode/nginx.nix
T

39 lines
913 B
Nix
Raw Normal View History

2022-04-12 15:11:56 +00:00
{ ... }:
let
homepage = "127.0.0.1:30080";
2022-04-12 15:11:56 +00:00
in
{
security.acme = {
acceptTerms = true;
defaults.email = "greg.hellings@gmail.com";
};
2022-04-12 15:11:56 +00:00
services.nginx = {
enable = true;
2022-04-12 15:11:56 +00:00
2025-03-01 00:30:49 -06:00
clientMaxBodySize = "25000m"; # To help with uploading container images
# If there are recommended settings, let's use them!
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
};
2022-04-12 15:11:56 +00:00
# Actually serve the content from here
virtualisation.podman.enable = true;
virtualisation.oci-containers = {
backend = "podman";
containers."homepage" = {
image = "registry.thehellings.com:443/greg/homepage/gregs-homepage:latest";
ports = [ "${homepage}:80" ];
};
};
2025-06-19 23:53:49 -05:00
greg.proxies = {
"thehellings.com" = {
target = "http://${homepage}/";
ssl = true;
genAliases = false;
};
};
2022-04-12 15:11:56 +00:00
}