Allow Gitea registry pushes through gitea.wixur.ir: nginx 50M body limit 413s Docker layers.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user