feat: full recode a home page and add docker file, start write a cd pipline
Some checks failed
Deploy / deploy-frontend (push) Has been cancelled

This commit is contained in:
d3m0k1d
2026-02-01 22:33:18 +03:00
parent 57d8578bd2
commit 0684b70dad
9 changed files with 214 additions and 46 deletions

21
frontend/nginx.conf Normal file
View File

@@ -0,0 +1,21 @@
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
# Кэширование статики
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}
# Gzip сжатие
gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
}