codex-storage / codex-marketplace-ui

Codex marketplace UI allowing buy and sell operations in the Codex decentralized storage network
https://app.codex.storage
Apache License 2.0
0 stars 0 forks source link

Use custom Nginx config #58

Closed veaceslavdoina closed 1 month ago

veaceslavdoina commented 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.

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.

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