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 lines23242526272829303122 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/html22 unmodified lines23242526272822 unmodified lines# Use an official Nginx runtime as the base image for serving the applicationFROM nginx:alpine# Copy the built application from the build stageCOPY --from=build /app/dist /usr/share/nginx/html
14 unmodified lines151617181920212214 unmodified linesintegrations: [mermaid({ theme: 'forest', autoTheme: true }),mdx(),// Precompress output with Brotli (preferred) and Gzip as fallbackcompressor({ brotli: true, gzip: true })],devToolbar: {enabled: false14 unmodified lines151617181920212214 unmodified linesintegrations: [mermaid({ theme: 'forest', autoTheme: true }),mdx(),// Precompress output with Gzip only (Brotli disabled due to server module mismatch)compressor({ brotli: false, gzip: true })],devToolbar: {enabled: false
12345613 unmodified lines2021222324252627282930313233343536373839404142434445load_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 linessendfile on;keepalive_timeout 65;# Brotli (preferred)brotli on;brotli_comp_level 5;brotli_static always;brotli_min_length 256;brotli_typestext/plaintext/csstext/javascriptapplication/javascriptapplication/jsonapplication/xmlapplication/rss+xmlimage/svg+xmlfont/ttffont/otffont/wofffont/woff2;# Gzip fallbackgzip on;gzip_vary on;gzip_proxied any;12313 unmodified lines17181920212223worker_processes auto;pid /tmp/nginx.pid;13 unmodified linessendfile on;keepalive_timeout 65;# Gzip compressiongzip on;gzip_vary on;gzip_proxied any;
Dockerfile-3
app/astro.config.mjs+2-2
nginx.conf+1-23