# default_server for the LAN addresses getting the IPs by: # ifstatus lan | jsonfilter -e '@["ipv4-address","ipv6-address"].*.address' server { listen 80; server_name _lan; index luci index.html index.htm index.php default.html default.htm default.php; root /www; include conf.d/*.locations; location ~ [^/]\.php(/|$) { try_files $uri =404; fastcgi_pass unix:/var/run/php7-fpm.sock; fastcgi_index index.php; fastcgi_connect_timeout 300; fastcgi_send_timeout 300; fastcgi_read_timeout 300; fastcgi_buffer_size 64k; fastcgi_buffers 4 64k; fastcgi_busy_buffers_size 128k; fastcgi_temp_file_write_size 256k; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/:/www/:/"; include fastcgi_params; } location = /(robots.txt|favicon.ico) { log_not_found off; } location ~* \.(?:css(\.map)?|js(\.map)?|jpe?g|png|gif|ico|cur|heic|webp|tiff?|mp3|m4a|aac|ogg|midi?|wav|mp4|mov|webm|mpe?g|avi|ogv|flv|wmv)$ { expires 30d; } location ~* \.(?:svgz?|ttf|ttc|otf|eot|woff2?)$ { add_header Access-Control-Allow-Origin "*"; expires 30d; } location ~ /\.(?!well-known) { deny all; } }