From 3c05906c2018f7de038ecd486e8edc4b549821f3 Mon Sep 17 00:00:00 2001 From: benjamyn Date: Wed, 20 Feb 2019 22:55:46 +1100 Subject: [PATCH] Fixed nginx conf --- install.sh | 1 + paste.conf | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 828e9de..04fe2b0 100644 --- a/install.sh +++ b/install.sh @@ -42,6 +42,7 @@ echo "Installing nginx config to /etc/nginx/conf.d" cp paste.conf /etc/nginx/conf.d/paste.conf echo "Starting paste service" +systemctl daemon-reload systemctl start paste.service echo "Restarting nginx service" diff --git a/paste.conf b/paste.conf index a89f16c..0baa1a7 100644 --- a/paste.conf +++ b/paste.conf @@ -6,6 +6,6 @@ server { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; - proxy_pass http://unix:/home/ben/scripts/paste/paste/paste.sock; + proxy_pass http://unix:WORKINGDIR/paste.sock; } } \ No newline at end of file