Spaces:
Sleeping
Sleeping
| server { | |
| listen 0.0.0.0:7860; | |
| server_name _; | |
| root /usr/share/nginx/html; | |
| index index.html; | |
| client_max_body_size 500M; | |
| gzip on; | |
| gzip_types text/plain text/css application/json application/javascript text/javascript; | |
| location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|wasm|glb|gltf|hdr|map)$ { | |
| expires 1y; | |
| add_header Cache-Control "public, immutable"; | |
| try_files $uri =404; | |
| } | |
| location /assets/ { | |
| alias /usr/share/nginx/html/assets/; | |
| add_header Access-Control-Allow-Origin *; | |
| autoindex on; | |
| } | |
| location /outputs/ { | |
| alias /usr/share/nginx/html/outputs/; | |
| add_header Access-Control-Allow-Origin *; | |
| autoindex on; | |
| } | |
| location / { | |
| try_files $uri $uri/ /index.html; | |
| } | |
| } | |