Skip to content

Dev tips and tricks

Local HTTPS

To setup local https, you can leverage tailscale serve

# Frontend
tailscale serve --bg --set-path / http://127.0.0.1:3000

# Backend
tailscale serve --bg --set-path /be http://127.0.0.1:8000

# Static files (Django)
tailscale serve --bg --set-path /static http://127.0.0.1:8000/static

# Docs
tailscale serve --bg --set-path /docs http://127.0.0.1:2000

# Sentry
tailscale serve --bg --set-path /sentry http://127.0.0.1:8969

# Swagger SCHEMA
tailscale serve --bg --set-path /api/schema http://127.0.0.1:8000/api/schema

API_URL - https://machine.tailnet.ts.net/be SITE_URL - https://machine.tailnet.ts.net ALLOWED_ORIGINS - https://machine.tailnet.ts.net ALLOWED_HOSTS - machine.tailnet.ts.net

after that you can access: