Bubble proxy service
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

README-release.md 2.8 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # Bubble Flex Router
  2. bubble-flexrouter provides HTTP/HTTPS proxy services for Bubble.
  3. Some websites and apps refuse to respond to requests originating from a cloud IP address.
  4. Thus, when a user is connected to their Bubble, some sites and apps will not work.
  5. With flex routing, Bubble can route these requests through a device connected to the Bubble that is running bubble-flexrouter.
  6. Now, from the perspective of the website or app, these requests will originate from a "clean" IP, and so a valid response
  7. will be sent.
  8. Note that using flex routing does remove some privacy protection - sites and apps that are flex-routed will see
  9. one of your device's real IP addresses.
  10. ## Required software
  11. To use the `flex_init.sh` and `flex_register.sh` tools, you'll need to have some software installed:
  12. * bash
  13. * curl
  14. * jq
  15. * htpassword
  16. On Windows, use [Cygwin](https://cygwin.com) to install these.
  17. `htpasswd` is not available from Cygwin. See below for a workaround.
  18. ## Overview
  19. In order to use bubble-flexrouter, you must:
  20. * Initialize the flex router
  21. * Connect to your Bubble
  22. * Run bubble-flexrouter
  23. * Register the flex router with your Bubble
  24. We'll walk through each of these steps next.
  25. ## Initialize the flex router
  26. This step only needs to be done once. After that, bubble-flexrouter will re-use the initialization settings.
  27. If you're using Windows, start by opening a Cygwin bash shell. That's what you'll use to run these commands.
  28. ### If you have htpasswd installed
  29. To initialize your bubble-flexrouter, set the flexrouter master password and run the init script:
  30. export BUBBLE_FR_PASS=some-plaintext-password
  31. flex_init.sh
  32. ### If you don't have htpasswd installed
  33. If you don't have `htpasswd` on your system, then you will need to manually bcrypt the password.
  34. You can do this online at https://bcrypt-generator.com/
  35. export BUBBLE_FR_PASS=some-bcrypted-password
  36. flex_init.sh --bcrypt
  37. ## Connect to your Bubble
  38. Start the Bubble app and login. On Linux, run `wg-quick up wg0` to connect.
  39. ## Running Flex Router
  40. Then run:
  41. bubble-flexrouter
  42. To see all available options:
  43. bubble-flexrouter --help
  44. ## Register the flex router with your Bubble
  45. Run:
  46. flex_register.sh your-bubble-hostname.example.com
  47. Where `your-bubble-hostname.example.com` is the hostname of your Bubble.
  48. If you're not sure what the hostname is, click on "My Bubble" in the Bubble App and copy the hostname
  49. from your browser's location bar.
  50. On Linux, the hostname is not easily accessible, but you can use the IP address of your Bubble just the same.
  51. To get the IP address of your Bubble on Linux, run:
  52. cat /etc/wireguard/wg0.conf | grep Endpoint | awk -F':' '{print $1}' | awk '{print $NF}'
  53. ## Restarting bubble-flexrouter
  54. Every time you start bubble-flexrouter, you need to run `flex_register.sh` to register the router
  55. with your Bubble.