-
-
Notifications
You must be signed in to change notification settings - Fork 3
Tailscale and HTTPS
Tailscale provides private remote access and a trusted .ts.net HTTPS address without opening router ports.
TAILSCALE_ENABLED=true
TAILSCALE_AUTHKEY=your-tailscale-auth-key
TAILSCALE_HOSTNAME=smart-drink-fridge
TAILSCALE_HTTPS=trueThen run:
./start.shThe script:
- Uses an existing host Tailscale installation when available
- Otherwise starts the bundled Tailscale Compose profile
- Waits for the connection
- Enables Tailscale Serve on HTTPS port 443
- Prints the private
https://...ts.netaddress
Your phone must be signed in to the same tailnet.
If Tailscale reports Access denied, allow the current host user once:
sudo tailscale set --operator="$USER"
./start.shTailscale may print a one-time approval URL. Open it, approve HTTPS for the tailnet, and run ./start.sh again.
tailscale status
tailscale serve statusOnce HTTPS works, follow PWA and mobile installation.
Some installations contain only docker-compose.yml and .env. Tailscale may
be connected while HTTPS is still inactive. Check the Serve configuration:
docker exec smart-drink-fridge-tailscale tailscale serve statusIf the result is No serve config, create the missing persistent proxy:
docker exec smart-drink-fridge-tailscale \
tailscale serve --bg --yes --https=443 \
http://127.0.0.1:5000The command prints the correct private URL, for example:
https://smart-drink-fridge.example-tailnet.ts.net/
The Serve configuration is stored in the tailscale-state Docker volume and
survives normal container recreation. It must be configured again if that
volume is deleted.
The first HTTPS request may take several seconds while Tailscale obtains the certificate. Wait briefly and retry before treating the initial timeout as a failure.
Smart Drink Fridge documentation · App Store · Repository · Releases · Issues
- Home
- Installation
- Configuration
- Using the application
- iPhone and Apple Watch app
- Multiple fridges and remote scanners
- Hardware and barcode scanners
- User accounts and NFC
- Nextion display
- PWA and mobile installation
- Tailscale and HTTPS
- Updates
- Integrations
- Backups and data
- Security
- Troubleshooting
- Maintaining the Wiki