mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-15 09:59:16 +00:00
26 lines
650 B
Desktop File
26 lines
650 B
Desktop File
# myNode www service
|
|
# /etc/systemd/system/www.service
|
|
|
|
#############################################
|
|
## NOT USED ANYMORE - Now handled by NGINX ##
|
|
#############################################
|
|
|
|
[Unit]
|
|
Description=Proxy for Secure Electrs
|
|
Wants=mynode.service bitcoin.service
|
|
After=mynode.service bitcoin.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
KillMode=control-group
|
|
TimeoutSec=30
|
|
Restart=always
|
|
RestartSec=10
|
|
ExecStartPre=/usr/bin/mynode_gen_cert_electrs.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
|