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

29 lines
664 B
SYSTEMD
Raw Normal View History

2019-10-19 03:39:29 +00:00
# myNode www service
# /etc/systemd/system/www.service
[Unit]
Description=myNode Web Server
After=network.target
2019-10-19 03:39:29 +00:00
[Service]
Type=simple
KillMode=mixed
KillSignal=2
2019-10-19 03:39:29 +00:00
TimeoutSec=30
Restart=always
RestartSec=10
Nice=-15
IOAccounting=true
IOWeight=2000
WorkingDirectory=/var/www/mynode
2020-07-25 04:35:42 +00:00
ExecStartPre=/usr/bin/mynode_gen_cert.sh https 825
ExecStart=/usr/bin/python2.7 /usr/bin/gunicorn -b 0.0.0.0:443 --certfile=/home/bitcoin/.mynode/https/myNode.local.crt --keyfile=/home/bitcoin/.mynode/https/myNode.local.key --workers 2 --timeout 300 wsgi:app
2019-10-19 03:39:29 +00:00
User=root
Group=root
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=www
2019-10-19 03:39:29 +00:00
[Install]
WantedBy=multi-user.target