Fix pushing to GitLab registry

This commit is contained in:
Greg Hellings
2025-06-13 02:37:42 -05:00
parent 61c921cd91
commit aa3953a8b0
+26 -8
View File
@@ -169,14 +169,10 @@ in
nginx = { nginx = {
enable = true; enable = true;
clientMaxBodySize = "25000m"; clientMaxBodySize = "10000m"; # 10 GB is fine, right?
virtualHosts."vm-gitlab.shire-zebra.ts.net" = { virtualHosts = {
"vm-gitlab.shire-zebra.ts.net" = {
listen = [ listen = [
{
addr = "0.0.0.0";
port = registryPort;
ssl = true;
}
{ {
addr = "0.0.0.0"; addr = "0.0.0.0";
port = 443; port = 443;
@@ -185,7 +181,10 @@ in
]; ];
locations."/" = { locations."/" = {
proxyPass = "http://unix:/run/gitlab/gitlab-workhorse.socket"; proxyPass = "http://unix:/run/gitlab/gitlab-workhorse.socket";
#proxyPass = "http://127.0.0.1:4567/"; recommendedProxySettings = true;
};
locations."/v2" = {
proxyPass = "http://127.0.0.1:4567/";
recommendedProxySettings = true; recommendedProxySettings = true;
}; };
extraConfig = '' extraConfig = ''
@@ -194,6 +193,25 @@ in
client_max_body_size 10000m ; client_max_body_size 10000m ;
''; '';
}; };
"registry" = {
listen = [
{
addr = "0.0.0.0";
port = registryPort;
ssl = true;
}
];
locations."/" = {
proxyPass = "http://127.0.0.1:4567/";
recommendedProxySettings = true;
};
extraConfig = ''
ssl_certificate /etc/certs/vm-gitlab.shire-zebra.ts.net.crt ;
ssl_certificate_key /etc/certs/vm-gitlab.shire-zebra.ts.net.key ;
client_max_body_size 10000m ;
'';
};
};
}; };
openssh.enable = true; openssh.enable = true;