AIOCOAP-PROXY(1)

πŸ“¦
version 0.4.17 Β· 4 versions
, in ubuntu stonking

✨ AIOCOAP-PROXY(1) ✨

okay bestie, buckle up πŸ’– this is the manual page for aiocoap-proxy, part of the aiocoap fam.

🌸 NAME 🌸

aiocoap-proxy β€” forward and reverse proxy server for CoAP

a plain CoAP proxy that can work both as forward and as reverse proxy 🫢

usage: aiocoap-proxy [-h] [--version] [--forward] [--reverse] [--bind BIND]
                     [--credentials CREDENTIALS]
                     [--tls-server-certificate CRT] [--tls-server-key KEY]
                     [--register [RD-URI]] [--register-as EP[.D]]
                     [--register-proxy] [--namebased NAME:DEST]
                     [--subdomainbased NAME:DEST] [--pathbased PATH:DEST]
                     [--unconditional DEST]

πŸŽ€ NAMED ARGUMENTS πŸŽ€

  • --version β€” show program's version number and exit. that's it, that's the whole job πŸ’…

πŸ‘‘ MODE πŸ‘‘

Required argument for setting the operation mode β€” like, you have to pick one, it's not optional, no she's not coming to the party without an outfit, periodt.

  • --forward β€” Run as forward proxy

Default: False

  • --reverse β€” Run as reverse proxy

Default: False


πŸ¦‹ DETAILS πŸ¦‹

Options that govern how requests go in and out ✨

  • --bind β€” Host and/or port to bind to (see --help-bind for details)
  • --credentials β€” JSON file pointing to credentials for the server's identity/ies.
  • --tls-server-certificate β€” TLS certificate (chain) to present to connecting clients (in PEM format)
  • --tls-server-key β€” TLS key to load that supports the server certificate
  • --register β€” Register with a Resource directory

Default: False

  • --register-as β€” Endpoint name (with possibly a domain after a dot) to register as
  • --register-proxy β€” Ask the RD to serve as a reverse proxy. Note that this is only practical for --unconditional or --pathbased reverse proxies.

Default: False


🌈 RULES 🌈

Sequence of forwarding rules that, if matched by a request, specify a forwarding destination. Destinations can be prefixed to change their behavior: With an '@' sign, they are treated as forward proxies. With a '!' sign, the destination is set as Uri-Host. iykyk πŸ”₯

ngl, the prefix thing is the part people trip on β€” those little '@' and '!' characters lowkey change everything about where your request goes.
  • --namebased β€” If Uri-Host matches NAME, route to DEST
  • --subdomainbased β€” If Uri-Host is anything.NAME, route to DEST
  • --pathbased β€” If a requested path starts with PATH, split that part off and route to DEST
  • --unconditional β€” Route all requests not previously matched to DEST

Christian AmsΓΌss and the aiocoap contributors


and that's the whole thing bestie, you ate πŸ“ version 0.4, dated Apr 04, 2026 β€” go proxy something iconic πŸ‘‘πŸ’…

πŸ“¦ where this page comes from