mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-21 09:43:18 +03:00
Updated Set up http proxy server (markdown)
@@ -4,7 +4,7 @@ This HTTP proxy is not the same as a reverse proxy in NGINX; they are different
|
|||||||
|
|
||||||
# Install http server
|
# Install http server
|
||||||
|
|
||||||
Here, we use `tinyproxy`.
|
Here, we use `Tinyproxy`.
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo apt install tinyproxy
|
sudo apt install tinyproxy
|
||||||
@@ -16,7 +16,7 @@ The service will start automatically after installation. Please confirm as below
|
|||||||
sudo service tinyproxy status
|
sudo service tinyproxy status
|
||||||
```
|
```
|
||||||
|
|
||||||
To make tinyproxy start after reboot, please do this.
|
To ensure that Tinyproxy starts automatically after a reboot, please do this.
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo systemctl enable tinyproxy
|
sudo systemctl enable tinyproxy
|
||||||
@@ -24,7 +24,7 @@ sudo systemctl enable tinyproxy
|
|||||||
|
|
||||||
# Configure `tinyproxy`
|
# Configure `tinyproxy`
|
||||||
|
|
||||||
Please open the the config file `/etc/tinyproxy/tinyproxy.conf` and add below lines.
|
Please open the configuration file `/etc/tinyproxy/tinyproxy.conf` and add the lines below.
|
||||||
|
|
||||||
```
|
```
|
||||||
BasicAuth myuser mypassword
|
BasicAuth myuser mypassword
|
||||||
@@ -32,15 +32,15 @@ Listen 0.0.0.0
|
|||||||
Allow 0.0.0.0/0
|
Allow 0.0.0.0/0
|
||||||
```
|
```
|
||||||
|
|
||||||
Please modify `myuser` / `mypassword` to your values.
|
Please modify myuser and mypassword to your own values.
|
||||||
|
|
||||||
By default `tinyproxy` listens to `127.0.0.1`, we modify it to `0.0.0.0` so that it can be accessed from outside.
|
By default, Tinyproxy listens on `127.0.0.1`. We will change it to `0.0.0.0` so that it can be accessed from outside.
|
||||||
|
|
||||||
By default tinyproxy only accepts requests from `127.0.0.0`, we modify it to `0.0.0.0/0` so that it accepts all requests from outside.
|
By default, Tinyproxy only accepts requests from `127.0.0.1`. We will modify it to 0.0.0.0/0 so that it accepts requests from any IP address.
|
||||||
|
|
||||||
By default `tinyproxy` listens to `8888` port, you can find `port 8888` in the config file, and modify it to your value.
|
By default, Tinyproxy listens on port `8888`. You can find the line `port 8888` in the configuration file and change it to your desired value.
|
||||||
|
|
||||||
Please restart the server after your modification to config
|
Please restart the server after making your modifications to the configuration file.
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo service tinyproxy restart
|
sudo service tinyproxy restart
|
||||||
@@ -52,7 +52,7 @@ sudo service tinyproxy restart
|
|||||||
curl -x http://<proxy-server-ip>:8888 --proxy-user myuser:mypassword -L http://www.yahoo.com
|
curl -x http://<proxy-server-ip>:8888 --proxy-user myuser:mypassword -L http://www.yahoo.com
|
||||||
```
|
```
|
||||||
|
|
||||||
e.g. If you do not add `Allow 0.0.0.0/0` in above config file, you will get something as below.
|
e.g. If you do not add `Allow 0.0.0.0/0` in above configuration file, you will get something as below.
|
||||||
|
|
||||||
```
|
```
|
||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
@@ -95,7 +95,7 @@ https://rustdesk.com/docs/en/self-host/client-configuration/advanced-settings/#p
|
|||||||
|
|
||||||
# Https server
|
# Https server
|
||||||
|
|
||||||
You can hide `tinyproxy` behind `nginx`. But I have never tested.
|
You can hide `Tinyproxy` behind `NGINX`. But I have never tested.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user