Skip to content

v0.0.19

Compare
Choose a tag to compare
@av av released this 05 Aug 15:31
· 272 commits to main since this release

harbor tunnel - expose your harbor stack over the internet

Harbor services (2)

# I'm feeling adventurous today!
# Expose default UI over the internet
$ harbor tunnel

# We provide plenty of aliases to ensure
# you can pause tunneling even when adventure goes wrong
$ harbor tunnel down
$ harbor tunnel stop
$ harbor tunnel s
$ harbor tunnel d
$ harbor t d
$ harbor t s

# It's a bad idea to expose services without auth to the internet
# But you only live once!
harbor tunnel ollama

The command will print the URL and a QR code to visit.

If you're feeling especially adventurous, you can instruct Harbor to automatically spin up tunnels for specific services whenever it starts:

# Show current services with automatic tunnels
$ harbor tunnels

# See our new config help!
$ harbor tunnels --help
Harbor config: services.tunnels

This field is an array, use the following actions to manage it:

  ls            - List all values
  clear         - Remove all values
  rm <value>    - Remove a value
  rm <index>    - Remove a value by index
  add <value>   - Add a value

# Add a service
$ harbor tunnels add webui

# Harbor will start the tunnel automatically now
$ harbor up

Current version is an initial implementation with a free version of cloudflared. If you know how to use Docker and Compose you can already tweak Harbor to use your CloudFlare account, otherwise - stay tuned for more updates.

Misc

  • harbor ls [-a] list all available or currently active services
  • harbor cfd access to containerized cloudflared with the access to the rest of harbor services
  • config aliases got help entries (both string and array counterparts)
  • harbor url now supports muiltiple kinds of URLs:
    • -i, --intra - URL of the service on the harbor's docker network
    • -a, --adressable, --lan - (supposed) URL of the service in your LAN (used by harbor qr)
    • no arguments - URL on your local host

Full Changelog: v0.0.18...v0.0.19