Spaces:
Sleeping
Sleeping
Download frontend/nginx.conf from akoulapure/cattle-classifier-code: direct link, hf CLI and curl.
- Browser
- Download file 549 Bytes
-
https://huggingface.co/spaces/akoulapure/cattle-classifier-code/resolve/main/frontend/nginx.conf
- Command line
-
hf download hf://spaces/akoulapure/cattle-classifier-code/frontend/nginx.conf
-
curl -L -o nginx.conf https://huggingface.co/spaces/akoulapure/cattle-classifier-code/resolve/main/frontend/nginx.conf
549 Bytes
| server { | |
| listen 80; | |
| server_name localhost; | |
| root /usr/share/nginx/html; | |
| index index.html; | |
| # SPA fallback | |
| location / { | |
| try_files $uri $uri/ /index.html; | |
| } | |
| # Proxy API calls to backend | |
| location /api/ { | |
| proxy_pass http://backend:8000/; | |
| proxy_set_header Host $host; | |
| proxy_set_header X-Real-IP $remote_addr; | |
| } | |
| # Cache static assets | |
| location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff2?)$ { | |
| expires 1y; | |
| add_header Cache-Control "public, immutable"; | |
| } | |
| } | |