| Server IP : 54.37.205.81 / Your IP : 216.73.216.76 Web Server : nginx/1.22.1 System : Linux vps-249481fa 6.1.0-50-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.176-1 (2026-07-02) x86_64 User : debian ( 1000) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /etc/nginx/sites-enabled/ |
Upload File : |
server {
listen 80;
server_name app.lampovert.eu;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl http2;
server_name app.lampovert.eu;
ssl_certificate /etc/letsencrypt/live/app.lampovert.eu/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/app.lampovert.eu/privkey.pem;
root /var/www/lampovert-tutor/dist;
index index.html;
# UI protetta (Basic Auth)
auth_basic "Erika MathMaster";
auth_basic_user_file /etc/nginx/.htpasswd;
# index.html senza cache (evita pagina bianca dopo deploy)
location = /index.html {
add_header Cache-Control "no-store, no-cache, must-revalidate, max-age=0";
try_files $uri =404;
}
# assets con cache lunga
location /assets/ {
add_header Cache-Control "public, max-age=2592000, immutable";
try_files $uri =404;
}
# SPA routing
location / {
try_files $uri /index.html;
}
# API NON protetta da basic auth
location /api/ {
auth_basic off;
proxy_pass http://127.0.0.1:5070/;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}