Files
My-KOPKB/fe/docker/nginx.conf
T
ismailmasseran 507072c5ab
Build Docker Image / build-backend (push) Failing after 7s
Build Docker Image / build-frontend (push) Failing after 6s
DONE: add cicd pipeline separate fe and be, test first on gitea (#1)
Co-authored-by: ISMAIL MASSERAN <topaz@ISMAILs-Macbook.local>
Reviewed-on: #1
2026-06-30 11:01:09 +08:00

24 lines
510 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml;
location / {
try_files $uri $uri/ /index.html;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
expires 1y;
add_header Cache-Control "public, immutable";
try_files $uri =404;
}
location ~ /\. {
deny all;
}
}