Pick a mode
Static site, reverse proxy, or single-page-app fallback.
Build a static site, reverse proxy or single-page-app server block, with gzip and HTTPS redirect options, then copy or download.
Static site, reverse proxy, or single-page-app fallback.
Server name, port, root path or proxy target, gzip and HTTPS options.
Get a correct server block, ready to drop into your nginx config.
It adds try_files $uri $uri/ /index.html; to the location block, so client-side routes (like /about in a React or Vue app) still load index.html instead of returning a 404.
Yes. Enabling the HTTPS redirect option adds a listen 443 ssl; block with placeholder ssl_certificate and ssl_certificate_key paths that you should replace with your real certificate files.
It generates a location block with proxy_pass pointing at your target, plus the standard proxy_set_header lines needed to forward the original host, client IP and protocol, and to support WebSocket upgrades.