directory structure built
Some checks failed
Build and Deploy Angular App (Artifacts, Gitea-safe) / build (push) Failing after 13s
Build and Deploy Angular App (Artifacts, Gitea-safe) / scan (push) Has been skipped
Build and Deploy Angular App (Artifacts, Gitea-safe) / deploy (push) Has been skipped

This commit is contained in:
m.imanpour
2025-12-10 00:58:05 +03:30
parent 8f6252195d
commit 3d96371492
5 changed files with 130 additions and 0 deletions

23
nginx.conf Normal file
View File

@@ -0,0 +1,23 @@
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
# This line is CRUCIAL for Angular routing
location / {
try_files $uri $uri/ /index.html;
}
# Optional: aggressive caching for static assets
location ~* \.(js|css|png|jpg|jpeg|gif|svg|ico|woff|woff2|ttf|eot)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}
# Security headers (optional but recommended)
add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options DENY;
add_header X-XSS-Protection "1; mode=block";
}