File size: 344 Bytes
89104a8
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

# Start Tailscale daemon in background
tailscaled --tun=userspace-networking --socks5-server=localhost:1055 > /dev/null 2>&1 &

# Give it a few seconds to initialize
sleep 3

# Bring up the Tailscale interface (without SSH)
tailscale up --netfilter-mode=off

# Start Flask app via Gunicorn
exec gunicorn --bind 0.0.0.0:7860 app:app