From 18db85301ba26d16ce28f6f21363f2c6af7a69b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=BE=D0=BB=D0=B0=D0=B9=20=D0=92=D0=B8?= =?UTF-8?q?=D0=B3=D0=B4=D0=BE=D1=80=D0=BE=D0=B2?= Date: Mon, 10 Mar 2025 00:43:40 +0300 Subject: [PATCH] fix nginx --- nginx.conf | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/nginx.conf b/nginx.conf index 3b744d1..7677d44 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,18 +1,29 @@ events {} http { + include /etc/nginx/mime.types; + default_type application/octet-stream; + server { listen 80; location /stub_status { stub_status on; - allow 127.0.0.1; - deny all; + allow all; } location / { root /usr/share/nginx/html; index index.html; + try_files $uri $uri/ $uri.html =404; + } + + location /assets/ { + root /usr/share/nginx/html; + } + + location ~* \.(js|css|ico|png|jpg|jpeg|gif|svg|woff|woff2|ttf|eot)$ { + root /usr/share/nginx/html; } } } \ No newline at end of file