-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf
More file actions
34 lines (28 loc) · 886 Bytes
/
nginx.conf
File metadata and controls
34 lines (28 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# ============================================================
# FINEXA APP — Nginx Config
# Serve o frontend estático com HTTPS
# ============================================================
server {
listen 80;
server_name localhost _;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name localhost _;
ssl_certificate /etc/nginx/ssl/nginx.crt;
ssl_certificate_key /etc/nginx/ssl/nginx.key;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;
root /usr/share/nginx/html;
index index.html;
# SPA: redireciona tudo para index.html
location / {
try_files $uri $uri/ /index.html;
}
# Cache de assets estáticos
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2)$ {
expires 30d;
add_header Cache-Control "public, immutable";
}
}