Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: Drawpile Server Administration using RestAPI through NGINX reverse proxy

$
0
0
***THIS QUESTION IS OFFICIALLY SOLVED.***
I would have deleted/edited posts if I could, but alas I cannot. So I'm posting a final update.
------------------------------------------------------------------------------------------------------------------------------
This is the actual configuration I used for NGINX, located in /etc/nginx/nginx.conf under the line "include /etc/nginx/sites-enabled/*;" See the attached image for proper formatting.

server {
listen 8081;

location / {
proxy_pass http://127.0.0.1:8080/;
proxy_redirect default;
auth_basic "Server Administration";
auth_basic_user_file /etc/nginx/passwords;
}
------------------------------------------------------------------------------------------------------------------------------
The line below is the line I use to insert my desired changes to NGINX by script.

sudo sed -i.bak 's/^ include \/etc\/nginx\/sites-enabled\/\*\;$/&\n \n server {\n listen 8081\;\n \n location \/ {\n proxy_pass http:\/\/127.0.0.1:8080\/\;\n proxy_redirect default\;\n auth_basic "Server Administration"\;\n auth_basic_user_file \/etc\/nginx\/passwords\;\n }\n}\n/' /etc/nginx/nginx.conf
------------------------------------------------------------------------------------------------------------------------------
And this is the final copy of the script I made for creating a drawpile server on the Raspberry Pi 3 running Raspbian Stretch 4.9.

https://docs.google.com/document/d/1l-3rYol468mpZg-TEo4d_zJt0ddpm6U_IlSz3nd6SlQ/edit

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>