Add cert rotation and systemd service
parent
11e45f8f39
commit
4adb6d1fdc
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
cd darklimericks/load-balancer
|
||||
docker stop haproxy
|
||||
docker rm haproxy
|
||||
cat /etc/letsencrypt/live/darklimericks.com/privkey.pem >> /etc/letsencrypt/live/darklimericks.com/fullchain.pem
|
||||
./run.sh
|
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Run DarkLimericks web server
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=/root/darklimericks/web
|
||||
ExecStart=/usr/bin/java -Xmx3072m -jar darklimericks.jar
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue