Yes, my nginx configuration for some of my websites is different. But the panel should not care, if that configuration is a reverse proxy configuration, and a serve_root is not needed.
This is my template which I do apply using a script after I add a website.
`upstream adonis_server {
server 127.0.0.1:8080;
keepalive 32;
}
server {
listen 80;
listen 443 ssl http2;
server_name <DOMAIN>;
if ($host != <DOMAIN>) {
return 404;
}
if ($server_port !~ 443) {
rewrite /.*$ https://$host$1 permanent;
}
ssl_certificate /www/server/panel/vhost/cert/<DOMAIN>/fullchain.pem;
ssl_certificate_key /www/server/panel/vhost/cert/<DOMAIN>/privkey.pem;
ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
ssl_prefer_server_ciphers on;
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305😃HE-RSA-AES128-GCM-SHA256😃HE-RSA-AES256-GCM-SHA384;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
ssl_buffer_size 4k;
resolver 1.1.1.1 1.0.0.1 valid=60s;
resolver_timeout 10s;
security headers
add_header Content-Security-Policy "default-src 'self'" always;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
add_header X-Content-Type-Options "nosniff" always;
add_header X-Frame-Options "DENY";
disable cache
add_header Last-Modified $date_gmt;
add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
sendfile off;
if_modified_since off;
expires off;
etag off;
location / {
proxy_pass http://adonis_server;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
access_log /www/wwwlogs/<DOMAIN>.adonis.access_log;
error_log /www/wwwlogs/<DOMAIN>.adonis.error_log;
}`