Allow Gitea registry pushes through gitea.wixur.ir: nginx 50M body limit 413s Docker layers.
All checks were successful
Production — tag build, push, deploy / build-and-push (push) Successful in 47s
Production — tag build, push, deploy / deploy (push) Successful in 14m17s

This commit is contained in:
2026-09-01 12:40:26 +03:30
parent 6465af11ee
commit 60be656cf1
5 changed files with 78 additions and 4 deletions

View File

@@ -26,7 +26,9 @@ http {
sendfile on;
keepalive_timeout 65;
client_max_body_size 50M;
# Unlimited at http{} so a gitea.wixur.ir vhost can inherit it (Docker layers
# 413 with 50M). App server blocks below cap uploads at 50M.
client_max_body_size 0;
# Shared proxy to Docker staging
map $http_upgrade $connection_upgrade {
@@ -39,6 +41,8 @@ http {
listen [::]:80 default_server;
server_name wixur.ir www.wixur.ir localhost 127.0.0.1;
client_max_body_size 50M;
location / {
proxy_pass http://127.0.0.1:18088;
proxy_http_version 1.1;
@@ -62,6 +66,8 @@ http {
ssl_certificate_key ssl/wixur-key.pem;
ssl_protocols TLSv1.2 TLSv1.3;
client_max_body_size 50M;
location / {
proxy_pass http://127.0.0.1:18088;
proxy_http_version 1.1;
@@ -75,4 +81,8 @@ http {
proxy_connect_timeout 300;
}
}
# Gitea + container registry (https://gitea.wixur.ir). Optional include —
# copy windows-gitea.wixur.snippet.conf next to this file and uncomment:
# include windows-gitea.wixur.snippet.conf;
}