2022-07-08 11:02:33 +08:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name _;
|
|
|
|
root /app/nocobase/packages/app/client/dist;
|
|
|
|
index index.html;
|
2022-07-21 22:46:31 +08:00
|
|
|
client_max_body_size 20M;
|
2022-07-08 11:02:33 +08:00
|
|
|
|
2022-10-24 00:31:24 +08:00
|
|
|
gzip on;
|
|
|
|
gzip_vary on;
|
|
|
|
gzip_min_length 1024;
|
|
|
|
gzip_proxied expired no-cache no-store private auth;
|
2022-11-16 12:53:58 +08:00
|
|
|
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/javascript application/xml;
|
2022-10-24 00:31:24 +08:00
|
|
|
|
2022-07-08 11:02:33 +08:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|