mynode/rootfs/standard/etc/systemd/system/tls_proxy.service

22 lines
469 B
SYSTEMD
Raw Normal View History

2019-06-15 23:02:44 +00:00
# myNode www service
# /etc/systemd/system/www.service
[Unit]
Description=Proxy for Secure Electrs
Wants=bitcoind.service
After=bitcoind.service
[Service]
Type=simple
KillMode=process
TimeoutSec=30
Restart=always
RestartSec=10
ExecStartPre=/usr/bin/mynode_gen_cert.sh
ExecStart=/usr/sbin/hitch --tls --backend=[127.0.0.1]:50001 --frontend=[0.0.0.0]:50002 /home/bitcoin/.mynode/electrs/myNode.local.pem
User=bitcoin
Group=bitcoin
[Install]
WantedBy=multi-user.target