2021-02-12 00:36:22 +01:00
|
|
|
# rmfakecloud-proxy
|
2018-08-19 17:02:20 +08:00
|
|
|
Single-minded HTTPS reverse proxy
|
2018-08-17 00:39:01 +08:00
|
|
|
|
2021-02-12 00:36:22 +01:00
|
|
|
(forked from https://github.com/yi-jiayu/secure)
|
2018-08-17 00:39:01 +08:00
|
|
|
|
2024-11-23 09:02:57 +01:00
|
|
|
## Installation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Manual
|
|
|
|
Download `installer-rm12.sh` for rm1/2 or `installer-rmpro.sh` on a pc.
|
2024-11-23 09:04:14 +01:00
|
|
|
Transfer to the tablet with `scp` / `WinSCP`
|
2024-11-23 09:02:57 +01:00
|
|
|
run installer on the tablet over ssh
|
|
|
|
```
|
|
|
|
chmod +x installer-xxx.sh
|
|
|
|
./installer-xxx.sh
|
|
|
|
```
|
|
|
|
|
|
|
|
### Use toltec if supported
|
|
|
|
`opkg install rmfakecloud-proxy`
|
|
|
|
|
|
|
|
### rmpro
|
|
|
|
To make it permanent, make root writable and unmount /etc first e.g.
|
|
|
|
```
|
|
|
|
mount -o remount,rw /
|
|
|
|
umount -R /etc
|
|
|
|
./installer-rmpro.sh
|
|
|
|
```
|
2018-08-17 00:39:01 +08:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
```
|
2024-09-26 20:54:33 +02:00
|
|
|
usage: rmfakecloud-proxy [-addr host:port] -cert certfile -key keyfile upstream
|
2018-08-18 00:03:05 +08:00
|
|
|
-addr string
|
|
|
|
listen address (default ":443")
|
|
|
|
-cert string
|
|
|
|
path to cert file
|
|
|
|
-key string
|
|
|
|
path to key file
|
2021-09-27 00:23:11 +02:00
|
|
|
-c configfile
|
2018-08-18 00:03:05 +08:00
|
|
|
upstream string
|
|
|
|
upstream url
|
|
|
|
```
|
|
|
|
|
|
|
|
### Example
|
|
|
|
```
|
2024-09-26 20:54:33 +02:00
|
|
|
rmfakecloud-proxy -cert cert.pem -key key.pem http://localhost:6060
|
2018-08-17 00:39:01 +08:00
|
|
|
```
|
|
|
|
|
2021-09-27 00:23:11 +02:00
|
|
|
## Configfile
|
|
|
|
```yaml
|
|
|
|
cert: proxy.crt
|
|
|
|
key: proxy.key
|
|
|
|
upstream: https://somehost:123
|
2021-12-14 11:13:49 +01:00
|
|
|
#addr: :443
|
2021-09-27 00:23:11 +02:00
|
|
|
```
|
2024-11-23 09:02:57 +01:00
|
|
|
|