From bb598dbf0e01bd8ea3bd1c55efa94b9686c49f99 Mon Sep 17 00:00:00 2001 From: germondai Date: Mon, 22 Jun 2026 09:35:00 +0200 Subject: [PATCH] feat: add nginx config for docs site serving --- apps/docs/nginx.conf | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 apps/docs/nginx.conf diff --git a/apps/docs/nginx.conf b/apps/docs/nginx.conf new file mode 100644 index 0000000..a380277 --- /dev/null +++ b/apps/docs/nginx.conf @@ -0,0 +1,17 @@ +server { + listen 80; + root /usr/share/nginx/html; + + gzip on; + gzip_vary on; + gzip_types text/plain text/css application/javascript application/json image/svg+xml; + + location ~* \.(js|css|woff2|svg|ico|png|jpg|webp)$ { + expires 1y; + add_header Cache-Control "public, immutable"; + } + + location / { + try_files $uri $uri.html $uri/ /index.html; + } +}