worker_processes 1; pid /var/run/nginx.pid; user nginx nginx; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; server { server_name hassio.local; listen 9541 default_server ssl; root /var/www/tasmoadmin/tasmoadmin; ssl_certificate /ssl/%%certfile%%; ssl_certificate_key /ssl/%%keyfile%%; ssl_protocols TLSv1.2 TLSv1.3; ssl_prefer_server_ciphers off; 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:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384; ssl_session_timeout 10m; ssl_session_cache shared:SSL:10m; ssl_session_tickets off; ssl_stapling on; ssl_stapling_verify on; add_header X-Content-Type-Options nosniff; add_header X-XSS-Protection "1; mode=block"; add_header X-Robots-Tag none; location / { try_files $uri /index.php$is_args$args; } location /data/firmwares { add_header Access-Control-Allow-Origin *; } location /data/ { deny all; } location ~ ^/index\.php(/|$) { fastcgi_pass 127.0.0.1:9001; fastcgi_read_timeout 900; fastcgi_split_path_info ^(.+\.php)(/.*)$; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; fastcgi_param DOCUMENT_ROOT $realpath_root; internal; } location ~ ^(.*)\.(css|js|gif||jpe?g|png|json|cache\.json)$ { } } }