Commit graph

36 commits

Author SHA1 Message Date
ddvk
1b0cb6d5c1 add dev cloud urls 2024-12-15 15:33:18 +01:00
ddvk
665318f08b
Update README.md
typo
2024-11-23 09:04:14 +01:00
ddvk
d41cf0b79f
Update README.md
add simple instructions for rmpro
2024-11-23 09:02:57 +01:00
ddvk
8fc87780f1
Merge pull request #15 from ddvk/revert-14-add-apphost-com
Revert "Add host local.apphost.com"
2024-11-15 18:06:50 +01:00
ddvk
01ed34dc5e
Revert "Add host local.apphost.com" 2024-11-15 18:06:01 +01:00
ddvk
ce61af629c
Merge pull request #14 from innerand/add-apphost-com 2024-11-14 08:27:29 +01:00
Andreas Innerlohninger
1edf5ea4a9 Add host local.apphost.com 2024-11-10 16:04:10 +01:00
ddvk
45f7f5eff6
Merge pull request #13 from Esras/feature/add_rmpro_build_and_installer
Add RM Paper Pro Support
2024-10-07 18:22:51 +02:00
ddvk
ad06c390bb fix build 2024-10-07 14:05:44 +02:00
Esras
e5dec23cd6 Add back in original INSTALLER target for backwards compatability. 2024-10-05 17:24:34 -07:00
Esras
eb3d963a87 Add a new target for the RMPro installer to the Makefile and rearrange / rename some of the other variables to reflect multiple outputs. 2024-10-05 17:14:57 -07:00
ddvk
743a38c344 rename binary to rmfakecloud-proxy 2024-09-26 20:54:33 +02:00
Dobrin von Känel
3ddeb5ae39
Merge pull request #9 from Eeems/patch-1 2023-11-29 10:21:35 +01:00
Nathaniel van Diepen
2f208b01d6
Don't run sed if no metadata files are found 2023-11-28 16:45:06 -07:00
ddvk
fbd6f6f16a add new localhost address 2022-10-28 23:41:02 +02:00
ddvk
fce8ddfeb2 add more hosts 2022-04-06 21:18:56 +02:00
Dobrin von Känel
b137c369b0
Update README.md 2021-12-14 11:13:49 +01:00
ddvk
3c2bac1b29 add doc for config 2021-09-27 00:26:42 +02:00
ddvk
a6a59b1c3a tidy installer script 2021-09-27 00:09:46 +02:00
ddvk
83feb65863
Merge pull request #2 from matteodelabre/rewrite-host-header
Rewrite the Host header in forwarded requests
2021-09-26 22:38:44 +02:00
Mattéo Delabre
9ef79c874c
Rewrite the Host header in forwarded requests
The default httputil.NewSingleHostReverseProxy implementation does not rewrite the Host header in forwarded requests. So, the upstream server receives requests with the Host header set as the original reMarkable domain. In where a reverse proxy is used in front of rmfakecloud (as suggested [here](https://github.com/ddvk/rmfakecloud/blob/master/docs/https.md)), this can make the HTTP server confused especially if it is configured to serve several websites (in which case the Host header is used to differentiate requests).

This PR replaces the call to NewSingleHostReverseProxy with an implementation that rewrites the Host header (by assigning `req.Host`). This is essentially a copy/paste of the [original implementation](https://cs.opensource.google/go/go/+/refs/tags/go1.17.1:src/net/http/httputil/reverseproxy.go;drc=b7a85e0003cedb1b48a1fd3ae5b746ec6330102e;l=143) but with a new line added that does the rewrite. I don’t know if there’s a cleaner way to do this, and this may introduce licensing issues since the original source is BSD-licensed.
2021-09-26 19:43:03 +02:00
ddvk
65969a4697 add yaml 2021-03-21 10:26:56 +01:00
ddvk
8e3defba48 add more hosts 2021-03-21 10:18:07 +01:00
ddvk
8b07f20657
Merge pull request #1 from ddvk/add-license-1
Create LICENSE
2021-02-12 17:30:53 +01:00
ddvk
4c7007371c
Create LICENSE 2021-02-12 17:30:10 +01:00
ddvk
f280156e8a install script 2021-02-12 01:56:32 +01:00
ddvk
80cf65e379 make an installer 2021-02-12 00:36:22 +01:00
ddvk
84e6627f47 add make file 2021-02-09 17:39:44 +01:00
Jiayu Yi
03f09b6b83
Update project description 2018-08-19 17:02:20 +08:00
Jiayu Yi
716c08df33
Run dep init 2018-08-18 23:37:28 +08:00
Jiayu Yi
b3a11a5330
Update generate/versioninfo.go 2018-08-18 21:56:10 +08:00
Jiayu Yi
5b1c71e51f
Leave placeholders in version string before go generate is run 2018-08-18 21:49:08 +08:00
Jiayu Yi
bf3e053367
Add -version flag 2018-08-18 02:04:26 +08:00
Jiayu Yi
546a77b354
README.md: Add potential features 2018-08-18 00:06:34 +08:00
Jiayu Yi
b3064f553c
Update usage 2018-08-18 00:05:13 +08:00
Jiayu Yi
704cba197d
Initial commit 2018-08-17 00:39:14 +08:00