Files
imen_pishghaman/docker/nginx/admin.conf
T

21 lines
544 B
Plaintext
Raw Normal View History

# Static admin SPA. /api and /media are routed by the gateway before reaching this container.
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
location /assets/ {
expires 1y;
add_header Cache-Control "public, immutable";
}
# client-side routes (/products/12 ...) all load index.html
location / {
add_header Cache-Control "no-cache";
try_files $uri $uri/ /index.html;
}
gzip on;
gzip_types text/css application/javascript application/json image/svg+xml;
}