Update 'general/how-to-become-a-relayer.md'

Add bare bones section for setting up ngnix reverse proxy.
This commit is contained in:
0xQuintin 2022-09-08 04:57:00 +00:00
parent b91f1a469f
commit 8cce7b1309

View File

@ -121,3 +121,41 @@ Last but not least, we advise you to **double-check all information** displayed
_Welcome to the relayer team! Thanks to you, privacy can be better respected_ 💚
_Written by_ [_**@bt11ba**_](https://torn.community/u/bt11ba/) _&_ [_**@ayefda**_](https://torn.community/u/ayefda)
### 7. Setting up reverse proxy with NGNIX
``sudo apt-get update``
``sudo apt-get install nginx``
``sudo unlink /etc/nginx/sites-enabled/default``
Create reverse-proxy.conf file
Cd into directory
``cd etc/nginx/sites-available/``
Nano to create and edit the file.
``nano reverse-proxy.conf``
Content of the file.
``server {
listen 80;
location / {
proxy_pass http://192.x.x.2;
}
}
``
Link to "sites-enabled"
``sudo ln -s /etc/nginx/sites-available/reverse-proxy.conf /etc/nginx/sites-enabled/reverse-proxy.conf``
Start NGNIX
``sudo service nginx start``