Closed veaceslavdoina closed 1 month ago
To make Nginx working correctly with SPA it is required to update it's config file.
The easiest way is to pass a custom config - main nginx.conf or even a conf.d/default.conf.
nginx.conf
conf.d/default.conf
We did select to use a custom default.conf with templating. In that way we can pass Dockerfile APP_HOME variable to the Nginx config.
default.conf
APP_HOME
We can test a build from this PR branch
docker run \ --rm \ -p 3000:80 \ codexstorage/codex-marketplace-ui:sha-948fcc5
http://localhost:3000
Closes #53
To make Nginx working correctly with SPA it is required to update it's config file.
The easiest way is to pass a custom config - main
nginx.conf
or even aconf.d/default.conf
.We did select to use a custom
default.conf
with templating. In that way we can pass DockerfileAPP_HOME
variable to the Nginx config.We can test a build from this PR branch
http://localhost:3000
Closes #53