Files
2026-moving-helper/scripts/nginx/moving-helper.nginx.template
T
tliu93 49a5452141
test / pytest (push) Successful in 35s
docker-image / build-and-push (push) Successful in 4m8s
Add local-network deployment automation and tighten runtime defaults
This commit adds the first complete local-network deployment path for the project. It normalizes the runtime contract around a fixed container listener on 0.0.0.0:10000, binds the published compose port to 127.0.0.1, and keeps the image/build workflow aligned with the released container image.

It also introduces an installation script, an nginx reverse-proxy template, and a safer SQLite backup flow based on sqlite3 .backup with retention and optional rclone upload support. Deployment-oriented configuration has been consolidated into .env.example, repository-local .env files are now ignored, and the deployment scripts are executable.

In addition, the frontend mixed-content issue is fixed by switching the stylesheet reference to a root-relative static path, with tests updated to cover the regression. README guidance has been expanded to document the new install, nginx, backup, and restore conventions.
2026-04-21 22:39:47 +02:00

29 lines
747 B
Plaintext

server {
listen 80;
server_name __HOST_DOMAIN__;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
http2 on;
server_name __HOST_DOMAIN__;
ssl_certificate __SSL_PATH__/fullchain.pem;
ssl_certificate_key __SSL_PATH__/privkey.key;
client_max_body_size 0;
location / {
proxy_pass http://127.0.0.1:__APP_PORT__;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port 443;
proxy_read_timeout 300;
}
}