Reverse Proxy (HTTPS & Tailscale)
Florabase binds its frontend container strictly to 127.0.0.1:8080 and requires an exact https:// origin in FLORABASE_CANONICAL_ORIGIN. Expose it either through a reverse proxy on the host (Caddy, Nginx, Traefik, Nginx Proxy Manager, Synology DSM) or privately over Tailscale Serve.
Proxy requirements
Section titled “Proxy requirements”Your reverse proxy must:
- Terminate TLS for the exact hostname in
FLORABASE_CANONICAL_ORIGINat the root path/(not a subpath). - Forward traffic to
http://127.0.0.1:8080(or the host loopback port you mapped). - Pass the original
Hostheader and replace client-supplied forwarding headers. - Allow request bodies of at least 32 MiB for high-resolution collection photos.
- Pass through the baseline security headers emitted by
florabase-frontend.
Caddy (simplest automatic HTTPS)
Section titled “Caddy (simplest automatic HTTPS)”Caddy obtains and renews TLS certificates automatically and does not enforce a small default body cap:
florabase.example.com { reverse_proxy 127.0.0.1:8080}Nginx (1.25.1+)
Section titled “Nginx (1.25.1+)”server { listen 80; listen [::]:80; server_name florabase.example.com; return 301 https://$host$request_uri;}
server { listen 443 ssl; listen [::]:443 ssl; http2 on; server_name florabase.example.com;
ssl_certificate /etc/ssl/florabase/fullchain.pem; ssl_certificate_key /etc/ssl/florabase/privkey.pem;
client_max_body_size 32m;
# Enable HSTS once HTTPS works reliably on all your devices: # add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
location / { proxy_pass http://127.0.0.1:8080; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto https; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Forwarded ""; }}Traefik (Docker labels override)
Section titled “Traefik (Docker labels override)”Attach the frontend service to your Traefik external proxy network in a local Compose override (keeping db and backend isolated on Florabase’s default network):
services: frontend: networks: - default - traefik_proxy labels: - "traefik.enable=true" - "traefik.http.routers.florabase.rule=Host(`florabase.example.com`)" - "traefik.http.routers.florabase.entrypoints=websecure" - "traefik.http.routers.florabase.tls.certresolver=letsencrypt" - "traefik.http.services.florabase.loadbalancer.server.port=8080"Nginx Proxy Manager (NPM)
Section titled “Nginx Proxy Manager (NPM)”Create a Proxy Host pointing to http://<docker-host-loopback-or-frontend-service>:8080 with Force SSL enabled, then open the Advanced → Custom Nginx Configuration tab and add:
client_max_body_size 32m;Tailscale Serve (private HTTPS without opening ports)
Section titled “Tailscale Serve (private HTTPS without opening ports)”For private access without managing public DNS or port forwarding, run Tailscale on the Docker host with MagicDNS and HTTPS certificates enabled. Set FLORABASE_CANONICAL_ORIGIN in compose.yaml to https://<device>.<tailnet>.ts.net, keep Funnel disabled, and run:
tailscale serve --bg --https=443 http://127.0.0.1:8080tailscale serve statusVerify that tailscale serve status shows your exact HTTPS origin targeting http://127.0.0.1:8080, then test sign-in and a photo upload from another device on your tailnet (and re-test after a host reboot).
Verify readiness & port isolation
Section titled “Verify readiness & port isolation”Confirm the stack responds through your HTTPS origin:
curl --fail --show-error https://florabase.example.com/api/v1/readySynology NAS notes (e.g. DS224+)
Section titled “Synology NAS notes (e.g. DS224+)”- Check that Container Manager meets the baseline (Docker Engine 24.0.2+ and Compose 2.20.1+).
- Run the one-time folder setup inside a local Btrfs or ext4 shared folder (such as
/volume1/docker/florabase/dataand/volume1/docker/florabase/backup). Keep those folders out of SMB/NFS exports and avoid recursive DSM ACL or ownership resets on them. - Configure HTTPS with either Tailscale Serve or DSM Control Panel → Login Portal → Reverse Proxy (set custom max body size ≥ 32 MiB and forward to
http://127.0.0.1:8080). - Backups, isolated restores, and offline password resets require SSH access with
bashanddocker compose.
Once HTTPS is live, browsers can also install Florabase as an online-only Progressive Web App (see Labels, Media & Data).