thibaud frere commited on
Commit ·
e1c7423
1
Parent(s): 542395c
update
Browse filesFiles changed (3)
- Dockerfile-3
- app/astro.config.mjs+2-2
- nginx.conf+1-23
22 unmodified lines23242526272826272822 unmodified lines# Use an official Nginx runtime as the base image for serving the applicationFROM nginx:alpine
# Install Brotli dynamic module for NginxRUN apk add --no-cache nginx-mod-http-brotli
# Copy the built application from the build stageCOPY --from=build /app/dist /usr/share/nginx/html
14 unmodified lines1516171819181920212214 unmodified lines integrations: [ mermaid({ theme: 'forest', autoTheme: true }), mdx(), // Precompress output with Brotli (preferred) and Gzip as fallback compressor({ brotli: true, gzip: true }) // Precompress output with Gzip only (Brotli disabled due to server module mismatch) compressor({ brotli: false, gzip: true }) ], devToolbar: { enabled: false12312313 unmodified lines171819232425262728293031323334353637383940414220212223load_module modules/ngx_http_brotli_filter_module.so;load_module modules/ngx_http_brotli_static_module.so;
worker_processes auto;pid /tmp/nginx.pid;
13 unmodified lines sendfile on; keepalive_timeout 65;
# Brotli (preferred) brotli on; brotli_comp_level 5; brotli_static always; brotli_min_length 256; brotli_types text/plain text/css text/javascript application/javascript application/json application/xml application/rss+xml image/svg+xml font/ttf font/otf font/woff font/woff2;
# Gzip fallback # Gzip compression gzip on; gzip_vary on; gzip_proxied any;Dockerfile-3
app/astro.config.mjs+2-2
nginx.conf+1-23