28b71dcda3
* fix: change nginx timeout as 10min * Update aliyun-container-registry.yml Co-authored-by: chenos <chenlinxh@gmail.com>
37 lines
1.0 KiB
Plaintext
37 lines
1.0 KiB
Plaintext
server {
|
|
listen 80;
|
|
server_name _;
|
|
root /app/nocobase/packages/app/client/dist;
|
|
index index.html;
|
|
client_max_body_size 20M;
|
|
|
|
gzip on;
|
|
gzip_vary on;
|
|
gzip_min_length 1024;
|
|
gzip_proxied expired no-cache no-store private auth;
|
|
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/javascript application/xml;
|
|
|
|
location /storage/uploads/ {
|
|
alias /app/nocobase/storage/uploads/;
|
|
autoindex off;
|
|
}
|
|
|
|
location / {
|
|
root /app/nocobase/packages/app/client/dist;
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
location ^~ /api/ {
|
|
proxy_pass http://127.0.0.1:13000/api/;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection 'upgrade';
|
|
proxy_set_header Host $host;
|
|
proxy_cache_bypass $http_upgrade;
|
|
proxy_connect_timeout 600;
|
|
proxy_send_timeout 600;
|
|
proxy_read_timeout 600;
|
|
send_timeout 600;
|
|
}
|
|
}
|