diff --git a/nodes/gitea-2.json b/nodes/gitea-2.json index 8c66278..ee569c7 100644 --- a/nodes/gitea-2.json +++ b/nodes/gitea-2.json @@ -8,7 +8,7 @@ "automatic": { "fqdn": "gitea-2", "os": "linux", - "os_version": "5.4.0-1058-kvm", + "os_version": "5.4.0-1071-kvm", "hostname": "gitea-2", "ipaddress": "192.168.122.189", "roles": [ diff --git a/site-cookbooks/kosmos_gitea/attributes/default.rb b/site-cookbooks/kosmos_gitea/attributes/default.rb index 3048bc8..bb7bb83 100644 --- a/site-cookbooks/kosmos_gitea/attributes/default.rb +++ b/site-cookbooks/kosmos_gitea/attributes/default.rb @@ -1,7 +1,7 @@ -gitea_version = "1.16.9" +gitea_version = "1.17.0" node.default["kosmos_gitea"]["version"] = gitea_version node.default["kosmos_gitea"]["binary_url"] = "https://dl.gitea.io/gitea/#{gitea_version}/gitea-#{gitea_version}-linux-amd64" -node.default["kosmos_gitea"]["binary_checksum"] = "821dd30afed9ae42b18e727174b078ea9118a6ccc5106d8246bebf8180fcbef3" +node.default["kosmos_gitea"]["binary_checksum"] = "bc4a8e1f5d5f64d4be2e50c387de08d07c062aecdba2f742c2f61c20accfcc46" node.default["kosmos_gitea"]["nginx"]["domain"] = "gitea.kosmos.org" node.default["kosmos_gitea"]["working_directory"] = "/var/lib/gitea" node.default["kosmos_gitea"]["port"] = 3000 diff --git a/site-cookbooks/kosmos_gitea/templates/default/nginx_conf_web.erb b/site-cookbooks/kosmos_gitea/templates/default/nginx_conf_web.erb index 1476976..f8b6b22 100644 --- a/site-cookbooks/kosmos_gitea/templates/default/nginx_conf_web.erb +++ b/site-cookbooks/kosmos_gitea/templates/default/nginx_conf_web.erb @@ -31,6 +31,14 @@ server { expires 30d; } + # Docker registry + location /v2/ { + client_max_body_size 0; + proxy_buffers 1024 8k; + proxy_pass http://_gitea_web; + proxy_http_version 1.1; + } + location / { proxy_buffers 1024 8k; proxy_pass http://_gitea_web;