fix nginx

This commit is contained in:
Николай Вигдоров
2025-03-10 00:43:40 +03:00
parent e0227e14b2
commit 18db85301b

View File

@ -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;
}
}
}