- 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
36 lines
776 B
Markdown
36 lines
776 B
Markdown
# 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.
|