Milestones 0 and 1: foundation and money in (20261007.10)
Foundation: single arm64 container (Hono + SQLite via Drizzle, React + Vite), local sign-in with long-lived sessions and passkeys, roles (read-only, full access, admin), nightly and pre-upgrade backups, light and dark themes, date-based version numbers, and the ideas lightbulb behind IDEAS_ENABLED. Money in: accounts with balances, CSV import with bank detection, a column mapping pop-up for unknown layouts, duplicate checks, transfer pairing and undo; one-tap review with learned rules; activity with search, splits, tags, notes and cash entries. Statement files are blocked from commits by a pre-commit hook; tests use synthetic fixtures only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
31
deploy/nginx.conf.example
Normal file
31
deploy/nginx.conf.example
Normal file
@@ -0,0 +1,31 @@
|
||||
# Example NGINX site for Spendlight. Spendlight itself speaks plain HTTP on
|
||||
# HOST_PORT; NGINX adds HTTPS. The forwarded headers matter: Spendlight uses
|
||||
# them to keep sign-in cookies secure and to verify Face ID sign-in.
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
http2 on;
|
||||
server_name spendlight.example.com;
|
||||
|
||||
ssl_certificate /etc/ssl/spendlight/fullchain.pem;
|
||||
ssl_certificate_key /etc/ssl/spendlight/privkey.pem;
|
||||
|
||||
# Statement files are small, but leave room for a year of them at once.
|
||||
client_max_body_size 25m;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:8095;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name spendlight.example.com;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
5
deploy/spendlight-cli.sh
Executable file
5
deploy/spendlight-cli.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
# Admin commands inside the container, for example:
|
||||
# docker compose exec spendlight spendlight ideas
|
||||
# docker compose exec spendlight spendlight reset-password chris
|
||||
exec node /app/server/dist/cli.js "$@"
|
||||
Reference in New Issue
Block a user