HTTP/HTTPS compression proxy
Go to file
3wc 4c0f708a93
continuous-integration/drone/push Build is passing Details
Switch to self-hosted stack-ssh-deploy image [mass update]
2023-01-21 11:49:55 -08:00
.drone.yml Switch to self-hosted stack-ssh-deploy image [mass update] 2023-01-21 11:49:55 -08:00
.env.sample Add SSL to .env.sample 2022-03-26 23:25:23 +02:00
.gitignore Initial import 2022-03-26 16:30:13 +02:00
README.md Update README 2022-10-18 17:30:52 -04:00
abra.sh Working SSL oh my (+ README love) 2022-03-27 17:31:01 +02:00
compose.ssl.yml Working SSL oh my (+ README love) 2022-03-27 17:31:01 +02:00
compose.yml Working SSL oh my (+ README love) 2022-03-27 17:31:01 +02:00
proxy.pac.tmpl Working SSL oh my (+ README love) 2022-03-27 17:31:01 +02:00

README.md

compy

Compy is an HTTP/HTTPS forward proxy with content compression/transcoding capabilities. One use case is to reduce bandwidth usage when browsing on limited mobile broadband connection.

  • Category: Apps
  • Status: 1, alpha
  • Image: compy, 0, own
  • Healthcheck: No
  • Backups: No
  • Email: N/A
  • Tests: No
  • SSO: No

Quick start

  • abra app new compy --secrets
  • abra app config <app-name>
  • abra app deploy <app-name>

(For more abra commands, see docs.coopcloud.tech.)

Then, configure an HTTP proxy (either system-wide, or in your app), using:

  • Address/hostname: (your configured domain)
  • Port: 9999
  • Authentication: None (so far..)

SSL (and Man-in-the-Middle)

To enable SSL (recommended), to encrypt the connection between you and Compy, and to enable Man-in-the-Middle (MitM) to prevent hordes of certificate warnings:

  1. abra app config <app-name>
  2. (uncomment the SSL section)
  3. abra app deploy <app-name> --force

When using SSL, there are a few extra steps to set up your client:

  1. Download the generated Certificate Authority certificate: abra app cp <app-name> app:/certs/ca.crt .
  2. Import and trust this CA -- e.g. for Firefox, "Settings" → "Privacy and Security" → "Certificates" → "Authorities" → "Import".
  3. Add a security exception for the self-signed certificate that Compy uses for its own connection (see #1), e.g. by visiting https://<your-domain>:9999 in your browser.
  4. You may need to clear a certificate cache, if there is one (see below for Firefox)

Troubleshooting

Firefox cert9.db

Firefox has a certificate cache, including HSTS information, which can prevent Compy from working. Clear it by deleting or renaming $HOME/.mozilla/firefox/<your-profile>/cert9.db

Firefox & FoxyProxy

FoxyProxy is great. As of March 2022, it doesn't support Proxy Access Configuration files, which Compy needs for working good (FoxyProxy say it's because of an unresolved bug in Firefox). No solution is known at this time 😕