diff options
| author | Xe <xe@tailscale.com> | 2021-11-19 10:11:27 -0500 |
|---|---|---|
| committer | Xe <xe@tailscale.com> | 2021-11-19 10:50:28 -0500 |
| commit | 4d5386001abb52f31e6d20109834251265ed0ab1 (patch) | |
| tree | 4e18162b0811c4624adc015a117c5dc97bddc0a6 /cmd/tailtlsproxy/tailtlsproxy@.service | |
| parent | 758c37b83d8fa2abd0ac461b4d6d1be41447b25b (diff) | |
| download | tailscale-Xe/tailtlsproxy.tar.xz tailscale-Xe/tailtlsproxy.zip | |
cmd/tailtlsproxy: introduce HTTPS proxy bridgeXe/tailtlsproxy
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>
Diffstat (limited to 'cmd/tailtlsproxy/tailtlsproxy@.service')
| -rw-r--r-- | cmd/tailtlsproxy/tailtlsproxy@.service | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/cmd/tailtlsproxy/tailtlsproxy@.service b/cmd/tailtlsproxy/tailtlsproxy@.service new file mode 100644 index 000000000..78505da39 --- /dev/null +++ b/cmd/tailtlsproxy/tailtlsproxy@.service @@ -0,0 +1,19 @@ +[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
\ No newline at end of file |
