2019-06-15 23:02:44 +00:00
|
|
|
# myNode www service
|
|
|
|
# /etc/systemd/system/www.service
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Proxy for Secure Electrs
|
2020-04-11 19:33:49 +00:00
|
|
|
Wants=mynode.service bitcoind.service
|
|
|
|
After=mynode.service bitcoind.service
|
2019-06-15 23:02:44 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
2020-07-17 23:10:23 +00:00
|
|
|
KillMode=control-group
|
2019-06-15 23:02:44 +00:00
|
|
|
TimeoutSec=30
|
|
|
|
Restart=always
|
|
|
|
RestartSec=10
|
2020-07-18 04:07:12 +00:00
|
|
|
ExecStartPre=/usr/bin/mynode_gen_cert_electrs.sh
|
2019-06-15 23:02:44 +00:00
|
|
|
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
|