Skip to content

Commit

Permalink
adding system config files
Browse files Browse the repository at this point in the history
  • Loading branch information
samdmarshall committed Mar 18, 2017
1 parent c728442 commit 3c2884c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions etc/init/ritual.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
start on filesystem
exec /home/samdm/Projects/pewpewthespells-com/ritual /home/samdm/Projects/WebsiteBackup/sitemap.yml
6 changes: 6 additions & 0 deletions nginx/config → etc/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ http {
listen 443 ssl;
server_name www.pewpewthespells.com;

access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;

ssl on;
ssl_certificate /etc/letsencrypt/live/www.pewpewthespells.com/cert.pem;
ssl_certificate_key /etc/letsencrypt/live/www.pewpewthespells.com/privkey.pem;
Expand All @@ -36,6 +39,9 @@ http {
listen 433 ssl;
server_name pewpewthespells.com;

access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;

ssl on;
ssl_certificate /etc/letsencrypt/live/www.pewpewthespells.com/cert.pem;
ssl_certificate_key /etc/letsencrypt/live/www.pewpewthespells.com/privkey.pem;
Expand Down
16 changes: 16 additions & 0 deletions lib/systemd/system/ritual.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

[Unit]
Description=runs a jester web service
After=network.target

[Service]
Type=simple
PIDFile=/run/ritual.pid
ExecStart=/home/samdm/Projects/pewpewthespells-com/ritual /home/samdm/Projects/WebsiteBackup/sitemap.yml
ExecReload=killall ritual ; /home/samdm/Projects/pewpewthespells-com/ritual /home/samdm/Projects/WebsiteBackup/sitemap.yml
ExecStop=-killall ritual
TimeoutStopSec=5
KillMode=mixed

[Install]
WantedBy=multi-user.target

0 comments on commit 3c2884c

Please sign in to comment.