LoMeS/assets/config/nginx/meshpi.conf
2025-10-07 18:37:53 +02:00

33 lines
923 B
Text

###########################################################
### ###
### MESHPI NGINX CONFIG ###
### ###
###########################################################
server {
listen 80;
server_name meshpi.local 192.168.1.8;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name meshpi.local 192.168.1.8;
ssl_certificate /etc/nginx/ssl/meshpi.crt;
ssl_certificate_key /etc/nginx/ssl/meshpi.key;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
location / {
try_files $uri $uri/ =404;
root /var/www/html;
index index.html;
}
}