Compare commits
8 commits
Author | SHA1 | Date | |
---|---|---|---|
d6ac9af1c3 | |||
|
1b0cb6d5c1 | ||
|
665318f08b | ||
|
d41cf0b79f | ||
|
8fc87780f1 | ||
|
01ed34dc5e | ||
|
ce61af629c | ||
|
1edf5ea4a9 |
5 changed files with 37 additions and 4 deletions
2
.mise.toml
Normal file
2
.mise.toml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[tools]
|
||||||
|
golang = "1.24.0"
|
24
README.md
24
README.md
|
@ -3,6 +3,29 @@ Single-minded HTTPS reverse proxy
|
||||||
|
|
||||||
(forked from https://github.com/yi-jiayu/secure)
|
(forked from https://github.com/yi-jiayu/secure)
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Manual
|
||||||
|
Download `installer-rm12.sh` for rm1/2 or `installer-rmpro.sh` on a pc.
|
||||||
|
Transfer to the tablet with `scp` / `WinSCP`
|
||||||
|
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
|
||||||
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
```
|
```
|
||||||
|
@ -30,3 +53,4 @@ key: proxy.key
|
||||||
upstream: https://somehost:123
|
upstream: https://somehost:123
|
||||||
#addr: :443
|
#addr: :443
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
4
go.mod
4
go.mod
|
@ -1,5 +1,5 @@
|
||||||
module github.com/yi-jiayu/secure
|
module github.com/yi-jiayu/secure
|
||||||
|
|
||||||
go 1.15
|
go 1.24
|
||||||
|
|
||||||
require gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
|
require gopkg.in/yaml.v3 v3.0.1
|
||||||
|
|
5
go.sum
5
go.sum
|
@ -1,3 +1,4 @@
|
||||||
|
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
|
||||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||||
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=
|
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
|
||||||
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||||
|
|
|
@ -99,6 +99,9 @@ DNS.2 = *.remarkable.com
|
||||||
DNS.3 = *.cloud.remarkable.com
|
DNS.3 = *.cloud.remarkable.com
|
||||||
DNS.4 = *.cloud.remarkable.engineering
|
DNS.4 = *.cloud.remarkable.engineering
|
||||||
DNS.5 = *.rmfakecloud.localhost
|
DNS.5 = *.rmfakecloud.localhost
|
||||||
|
DNS.6 = *.internal.cloud.remarkable.com
|
||||||
|
DNS.7 = *.tectonic.remarkable.com
|
||||||
|
DNS.8 = *.ping.remarkable.com
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# ca
|
# ca
|
||||||
|
@ -169,6 +172,9 @@ function patch_hosts(){
|
||||||
127.0.0.1 ping.remarkable.com
|
127.0.0.1 ping.remarkable.com
|
||||||
127.0.0.1 internal.cloud.remarkable.com
|
127.0.0.1 internal.cloud.remarkable.com
|
||||||
127.0.0.1 backtrace-proxy.cloud.remarkable.engineering
|
127.0.0.1 backtrace-proxy.cloud.remarkable.engineering
|
||||||
|
127.0.0.1 dev.ping.remarkable.com
|
||||||
|
127.0.0.1 dev.tectonic.remarkable.com
|
||||||
|
127.0.0.1 dev.internal.cloud.remarkable.com
|
||||||
# rmfake_end
|
# rmfake_end
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue