Sign inSign up

zalari/nginx-html5

By zalari

•Updated almost 7 years ago

Simple nginx-based image pre-configured for html5-push-state-magic for single page apps.

Image
2

10K+

zalari/nginx-html5 repository overview

⁠nginx-html5

This is a simple nginx image that enables html-5-mode style urls, by redirecting all request to a single file. This use case is typical for single page apps, that are doing all the routing on the client-side.

Configuration is inspired by https://gist.github.com/cjus/b46a243ba610661a7efb⁠ .

⁠Example usage

This is image is intended to be used as a base image:

FROM zalari/nginx-html5

COPY ./app/dist /usr/share/nginx/html/

Of course no one can prevent you from using evil bind-mounts for /usr/share/nginx/html which is the document root.

Tag summary

Content type

Image

Digest

Size

48.4 MB

Last updated

almost 7 years ago

docker pull zalari/nginx-html5