|
|
|
@ -39,21 +39,20 @@ NB: The 2 turns on the setGID bit meaning:
|
|
|
|
|
```
|
|
|
|
|
location /lab/mmurtaugh/ {
|
|
|
|
|
proxy_pass http://localhost:9050/;
|
|
|
|
|
# ADDs sandbot
|
|
|
|
|
rewrite /(.*) /sandbot/$1 break;
|
|
|
|
|
include /etc/nginx/includes/lab.conf;
|
|
|
|
|
include /etc/nginx/includes/lab.conf;
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
And made a file for common settings:
|
|
|
|
|
And made a file for common settings (nb: replace sandbot with correct path):
|
|
|
|
|
|
|
|
|
|
sudo nano /etc/nginx/includes/lab.conf
|
|
|
|
|
```
|
|
|
|
|
rewrite /(.*) /sandbot/$1 break;
|
|
|
|
|
error_page 502 /lab/502.html;
|
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
|
proxy_set_header Host $http_host;
|
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
proxy_set_header Host $http_host;
|
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
proxy_redirect off;
|
|
|
|
|
proxy_buffering off;
|
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
|