Sign inSign up

scani/frontend-app

By scani

•Updated 3 days ago

Scani React SPA + nginx. Reverse-proxies /api to the backend. github.com/MGrin/scani-oss

Image
0

9.6K

scani/frontend-app repository overview

⁠scani/frontend-app

React + Vite SPA served by nginx for Scani⁠ — the self-hostable, open-source portfolio tracker for crypto and traditional assets.

This is the only Scani container that needs to be reachable from the public internet. The bundled nginx reverse-proxies /api and /ws to scani/api⁠ over the compose network, so the SPA can be deployed against any backend host without rebuilding.

⁠Tags

  • latest — highest semver release tag
  • 1.2.3 / 1.2 / 1 — semver release tags

The image is built with VITE_API_URL=/api baked in — runtime backend selection happens via nginx config, not via rebuilding the SPA.

⁠Quick start

Use the reference docker-compose.prod.yml⁠ from the OSS repo:

git clone https://github.com/MGrin/scani-oss.git
cd scani-oss
cp .env.example .env                              # set BACKEND_URL etc.
docker compose -f docker-compose.prod.yml up -d

Put your own TLS-terminating reverse proxy (Caddy, Cloudflare Tunnel, an ingress, …) in front of this container.

⁠Required environment variables

VariablePurpose
BACKEND_URLWhere nginx proxies /api and /ws — typically http://api:3001 inside the compose network
FRONTEND_URLPublic origin the browser hits; powers CORS + cookies

Full annotated list: .env.example⁠.

⁠Source

Full source, architecture, and contribution guidelines: https://github.com/MGrin/scani-oss⁠

MIT licensed.

Tag summary

Content type

Image

Digest

sha256:b4b22f421…

Size

21.7 MB

Last updated

3 days ago

docker pull scani/frontend-app