Fixed nginx conf

This commit is contained in:
Benjamyn Love 2019-02-20 22:55:46 +11:00
parent 888fd24c74
commit 3c05906c20
2 changed files with 2 additions and 1 deletions

View File

@ -42,6 +42,7 @@ echo "Installing nginx config to /etc/nginx/conf.d"
cp paste.conf /etc/nginx/conf.d/paste.conf cp paste.conf /etc/nginx/conf.d/paste.conf
echo "Starting paste service" echo "Starting paste service"
systemctl daemon-reload
systemctl start paste.service systemctl start paste.service
echo "Restarting nginx service" echo "Restarting nginx service"

View File

@ -6,6 +6,6 @@ server {
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme; 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;
} }
} }