summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a9b5650..bbbfb4f 100644
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,9 @@ ACME_CONF=etc/acme-client.conf
UWSGI_INI=etc/uwsgi/nfsw.ini
RC_D=etc/rc.d/nfsw
+NGINX_DIR=etc/nginx
+NEWSYSLOG=etc/newsyslog.conf
+
SSH_PUB=ssh/lyra.pub
TB=bin/tball
@@ -83,6 +86,17 @@ prd-httpd:
.PHONY: prd-httpd
+prd-nginx:
+ rsync -a ${NGINX_DIR}/ \
+ root@${PRD_HOST}:/${NGINX_DIR}
+ rsync -a ${NEWSYSLOG} \
+ root@${PRD_HOST}:/${NEWSYSLOG}
+ ssh root@${PRD_HOST} \\"rcctl enable nginx \
+ && rcctl restart nginx \
+ && git -C /etc add nginx rc.conf.local\\"
+.PHONY: prd-nginx
+
+
prd-acme:
rsync ${ACME_CONF} root@${PRD_HOST}:/${ACME_CONF}
.PHONY: prd-acme