server { listen 80; listen 443 ssl http2; listen [::]:443 ssl http2; ssl_certificate /usr/share/nginx/certs/localhost.crt; ssl_certificate_key /usr/share/nginx/certs/localhost.key; server_name localhost; location / { root /usr/share/nginx/html; http2_push /static/css/main.5f361e03.chunk.css; http2_push /static/js/2.09673864.chunk.js; http2_push /static/js/main.ee4bd490.chunk.js; http2_push /static/media/logo.5d5d9eef.svg; http2_push /manifest.json; http2_push /favicon.ico; http2_push /logo192.png; index index.html index.htm; try_files $uri $uri/ /index.html; } #error_page 404 /404.html; # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } }