:80 { root * /srv file_server encode gzip header { X-Frame-Options "SAMEORIGIN" X-Content-Type-Options "nosniff" X-XSS-Protection "1; mode=block" Referrer-Policy "strict-origin-when-cross-origin" } try_files {path} /index.html handle_errors { rewrite * /index.html file_server } log { output stdout format console } }