Skip to content

Instantly share code, notes, and snippets.

@RienNeVaPlus
Last active June 11, 2021 23:46
Show Gist options
  • Save RienNeVaPlus/c830d443bb25bb94eaa8f751c1bd63dd to your computer and use it in GitHub Desktop.
Save RienNeVaPlus/c830d443bb25bb94eaa8f751c1bd63dd to your computer and use it in GitHub Desktop.
How-to configure Mail-in-a-Box (MIAB) nginx to work with StencilJS or any other JavaScript router that requires a single entry point
location / {
index index.html;
try_files $uri $uri/ /index.html;
}
@RienNeVaPlus
Copy link
Author

Note: it's required to rename the conf file after editing it, otherwise the changes won't get picked up by the web_update script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment