Files
smoa/docs/web-scaffold/DEPLOY.md
T
defiQUG a2dc194a49 Monorepo: Gitea CI, docs, auth/sync, backend APIs, gitignore
- Add Gitea Actions workflow; point README to gitea.d-bis.org/Sankofa_Phoenix/SMOA
- Expand .gitignore for Spring H2 data, secrets, Kotlin .kotlin/, tooling
- Track docs/api/generated ReDoc bundle; refresh api docs README
- Android: network/auth/sync, UI shell, tests; backend credentials/integrity APIs
- Docs, scripts (generate-api-docs), modules and core updates

Made-with: Cursor
2026-03-23 20:19:24 -07:00

36 lines
776 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Deploying the web scaffold
## Build
No bundler required. Serve the folder `docs/web-scaffold/` as static files over **HTTPS**.
## CORS
Set the backend for your web origin, e.g.:
```yaml
# application-prod.yml or env
smoa:
cors:
allowed-origins: "https://smoa.example.com"
```
## Nginx example
```nginx
location /web/ {
alias /var/www/smoa-web-scaffold/;
try_files $uri $uri/ /web/index.html;
add_header Cache-Control "no-cache" always;
}
```
## PWA
- `manifest.webmanifest` – install metadata (add PNG icons as needed).
- `sw.js` – registered from `index.html` for a minimal offline shell.
## CI
See [.gitea/workflows/ci.yml](../../.gitea/workflows/ci.yml) for backend tests; add a job to `rsync` this directory to your host if desired.