Raise upload limits for video files in API and nginx.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -18,7 +18,7 @@ server {
|
||||
listen [::]:80;
|
||||
server_name studionoro.ir www.studionoro.ir;
|
||||
|
||||
client_max_body_size 20M;
|
||||
client_max_body_size 200M;
|
||||
|
||||
location / {
|
||||
proxy_pass http://studionoro_web;
|
||||
@@ -41,7 +41,7 @@ server {
|
||||
|
||||
root /var/www/studionoro/admin/dist;
|
||||
index index.html;
|
||||
client_max_body_size 20M;
|
||||
client_max_body_size 200M;
|
||||
|
||||
location /api/ {
|
||||
proxy_pass http://studionoro_api;
|
||||
@@ -50,6 +50,9 @@ server {
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_read_timeout 300s;
|
||||
proxy_send_timeout 300s;
|
||||
client_max_body_size 200M;
|
||||
}
|
||||
|
||||
location /uploads/ {
|
||||
@@ -71,7 +74,7 @@ server {
|
||||
listen [::]:80;
|
||||
server_name api.studionoro.ir;
|
||||
|
||||
client_max_body_size 20M;
|
||||
client_max_body_size 200M;
|
||||
|
||||
location / {
|
||||
proxy_pass http://studionoro_api;
|
||||
@@ -80,5 +83,7 @@ server {
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_read_timeout 300s;
|
||||
proxy_send_timeout 300s;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user