2022-04-12 15:11:56 +00:00
|
|
|
{ ... }:
|
|
|
|
|
let
|
2024-10-03 11:26:39 -05:00
|
|
|
homepage = "127.0.0.1:30080";
|
2022-04-12 15:11:56 +00:00
|
|
|
in
|
|
|
|
|
{
|
2024-10-03 11:26:39 -05:00
|
|
|
security.acme = {
|
|
|
|
|
acceptTerms = true;
|
|
|
|
|
defaults.email = "greg.hellings@gmail.com";
|
|
|
|
|
};
|
2022-04-12 15:11:56 +00:00
|
|
|
|
2024-10-03 11:26:39 -05: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
|
2024-10-03 11:26:39 -05:00
|
|
|
# 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
|
|
|
|
2024-10-03 11:26:39 -05:00
|
|
|
# Actually serve the content from here
|
|
|
|
|
virtualisation.podman.enable = true;
|
|
|
|
|
virtualisation.oci-containers = {
|
|
|
|
|
backend = "podman";
|
|
|
|
|
containers."homepage" = {
|
|
|
|
|
# needs explicit port to match what gitlab-runner sees when pulling
|
|
|
|
|
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;
|
|
|
|
|
};
|
|
|
|
|
"doubles.thehellings.com" = {
|
|
|
|
|
target = "http://localhost:8081";
|
|
|
|
|
ssl = true;
|
|
|
|
|
genAliases = false;
|
|
|
|
|
};
|
2024-10-03 11:26:39 -05:00
|
|
|
};
|
2022-04-12 15:11:56 +00:00
|
|
|
}
|