ansible-role-chisel/templates/chisel-server.service.j2

14 lines
551 B
Plaintext
Raw Permalink Normal View History

2020-11-24 20:15:55 +00:00
[Unit]
Description=A fast TCP tunnel over HTTP
After=network-online.target
[Service]
Type=simple
User={{chisel_user}}
Group={{chisel_group}}
EnvironmentFile={{chisel_config_location}}/chisel-server.conf
2020-11-25 09:50:28 +00:00
ExecStart={{chisel_bin_location}}/chisel server {{ '--socks5' if chisel_server_socks5}} {{ '--reverse' if chisel_server_reverse}} {{ '--backend {}'.format(chisel_server_backend) if chisel_server_backend}} {{ '--auth {0}:{1}'.format(chisel_server_auth.user,chisel_server_auth.pass) if chisel_server_auth }}
2020-11-24 20:15:55 +00:00
[Install]
WantedBy=multi-user.target