tailscale/cmd/tailtlsproxy/tailtlsproxy@.service
Xe 4d5386001a cmd/tailtlsproxy: introduce HTTPS proxy bridge
This allows you to bridge existing HTTP/S services into your tailnet
using the Let's Encrypt[1] functionality. This will allow you to run
multiple services on the same computer and still have them point at
different target HTTP services.

This also includes an example systemd template unit that lets you easily
set up multiple instances of tailtlsproxy on the same machine.

[1]: https://tailscale.com/blog/tls-certs/

Signed-off-by: Xe <xe@tailscale.com>
2021-11-19 10:50:28 -05:00

19 lines
453 B
Desktop File

[Unit]
Description=Tailscale TLS Proxy bridge for %i
After=network.target
[Service]
Environment=HOME=/var/lib/private/tailtlsproxy-%i
EnvironmentFile=/etc/default/tailtlsproxy-%i
ExecStart=/usr/bin/tailtlsproxy
Restart=on-failure
RuntimeDirectory=tailtlsproxy-%i
RuntimeDirectoryMode=0755
StateDirectory=tailtlsproxy-%i
StateDirectoryMode=0700
CacheDirectory=tailtlsproxy-%i
CacheDirectoryMode=0750
DynamicUser=yes
[Install]
WantedBy=multi-user.target