Alby User Guide
Developer GuideUser Dashboard
🐝 Alby Hub, Browser Extension and Account
🐝 Alby Hub, Browser Extension and Account
  • 🏠 Hub, Browser Extension, Account
  • Alby Go
    • 📲Get Alby mobile app
    • 👩‍🚀Send, Receive, Go!
  • Alby Hub
    • â„šī¸Introduction
    • đŸšĸGetting Started
    • 🍕Alby Hub flavors
      • Alby Pro Cloud
      • Other Cloud Options
      • Desktop
      • Docker
      • Umbrel, Start9, etc
      • 🐧Linux
      • 🆙Updating
    • 👛Wallet
      • đŸ’ĢOpen your first channel
      • 📤Send
      • đŸ“ĨReceive
      • âŦ†ī¸Buy Bitcoin
        • 💰Withdraw from an exchange
      • âŦ‡ī¸Sell Bitcoin
    • 🔗App Connections
    • 🎮App Store
      • 🏡Sub-wallet, Friends & Family
        • Fast sub-wallets (no lightning address)
        • Sub-wallet with lightning address âšĄī¸
        • Podcaster & musicians sub-wallets
        • ❓Q&A of sub-wallets
      • 📅ZapPlanner
    • 🚰Node
      • đŸ“ĨIncrease receiving capacity
      • 📤Advanced: Increase Spending Balance with on-chain bitcoin
      • â¤ī¸Node Health
      • 💰On-chain Balance
      • Swap In & Out
    • 🔐Backups & Recover
    • ❓FAQ Alby Hub
      • How can I access Alby Hub from my phone?
      • Why do I need to link my Alby Account?
      • Should I open a private or public channel?
      • How can I change routing fees?
      • How can I close a channel? What happens to the sats in this channel?
      • Why was my lightning channel closed and what to do next?
      • How can I update my Alby Hub?
      • How can I change my unlock password?
      • How can I check budgets of connected apps?
      • How can I backup my keys
      • Where is Alby Hub physically located?
      • How can I migrate Alby Hub to a different machine?
      • How to use Fly.io to run Alby Hub
      • What to do during times of high onchain fees?
      • What to do if I cannot send a payment?
      • What to do if I cannot receive a payment
      • Should I open multiple channels with the same counterparty?
      • What happens if the healthcheck indicator turns red?
    • 📚Bitcoin Wallet Glossary
  • Alby Browser Extension
    • 👾Features
      • đŸ’ŗManage multiple wallets
      • đŸ’ĩCreate and change budgets
      • 🔂Send and receive bitcoin
      • đŸĨManage site connections
      • đŸ—ī¸Master Key
      • đŸĻ¤Nostr
      • 🌊Liquid
      • âš–ī¸HOLD Payments
    • 🔗Link wallet
      • Alby web Account
      • Umbrel
      • Alby Hub via NWC link
      • LND
      • No limits - quick & easy
    • 🎮Discover apps
    • 🐞Debugging
      • Connecting your LN node
      • Google Chrome
      • Mozilla Firefox
      • Using nightly builds
    • ❓FAQs Alby Extension
      • How do I install the Alby Browser Extension?
      • Why do I need a unlock password?
      • Can I trust the software?
      • Lost Password
      • Does the extension work on Mobile?
      • Implementing payments and authentication
      • Can I use Alby with the Tor Browser?
      • What is the Alby Companion App?
      • How to enable Alby only on specific websites?
      • Can I connect LND with readonly permissions?
      • How to use Alby with nosft.xyz to get NFT ordinals/inscriptions?
      • How to access my old account in apps with the Alby Extension
      • What permission does the extension require?
      • How can I run my own Lightning node?
      • Migrate from old LNDHub setup
      • I lost my Nostr ID when making a new account
  • Alby Account
    • â„šī¸Introduction
    • 🔗Link wallet
      • 🔗Link Alby Hub
      • 🔗Link other NWC wallet
    • 🌮Features
      • Nostr identifier
      • Lightning Address
      • Notifications and reports
      • Email, Password, Currency
      • âŦ†ī¸Top up your wallet
        • Card or bank transfer
        • Exchange service
        • Other bitcoin wallet
        • Other crypto wallet
      • âŦ‡ī¸Convert to fiat
    • 🎮Connect to apps
      • NWC Connections
      • Alby Browser Extension
      • BTCPay Server
      • Podcast apps
      • Alby Go mobile app
    • 👩‍đŸ’ģUse your lightning address
      • Nostr
      • Own domain
    • ❓FAQs Alby Account
      • Alby Hub is here! What happens to my existing balance?
      • Are there transaction limits with my Alby Account?
      • Can I open a channel to Alby's lightning node?
      • How to increase your weekly payment volume?
      • Why is there a minimum balance required?
      • Which service fees apply for using an Alby account?
      • How does Alby make money?
      • How to use Fly.io to run Alby Hub
      • What are fee credits in my Alby account
      • Embrace Alby Hub - phasing out Alby’s shared wallet
Powered by GitBook
LogoLogo

Our content

  • Website
  • Blog
  • GitHub

Follow us

  • Nostr
  • Twitter / X
  • Youtube

Contact us

  • E-mail
  • Community Chat
  • Open Hours

Your bitcoin & nostr companion / from 🐝 with 🧡

On this page

Was this helpful?

  1. Alby Hub
  2. FAQ Alby Hub

How to use Fly.io to run Alby Hub

This guide describes the steps to host your Alby Hub on Fly.io

Last updated 6 months ago

Was this helpful?

At Alby we are giving you the possibility to connect your own bitcoin lightning node to your . To make it easier to run the node we are using a service to decouple the signing of the transactions from the node. This guide explains how you can self-host the signer app to send and receive payments in a sovereign way. Your lightning node will be independently deployed by Greenlight.

Step 1: Create an account on Fly.io and add your credit card details (for free).

Fly.io offers a free tier which just provides enough compute resources to host your signer app for your own lightning node. Your card won't be charged as long as you only use your account to host the app.

Step 2: Install the flyctl

Have a look at for Windows, macOS and Linux

Step 3: Sign into your fly account via the CLI

To sign in, run

fly auth login

When your browser opens to the Fly.io sign-in screen, enter your user name and password to sign in.

Step 4: Save the config file

Change the name 'Alby-nwc' to a custom name. For example: 'I-run-AlbyHub'

# fly.toml app configuration file generated for nwc

app = 'Alby-nwc'
primary_region = 'lax'
swap_size_mb = 2048

[build]
  image = 'ghcr.io/getalby/hub:latest'

[env]
  DATABASE_URI = '/data/nwc.db'
  WORK_DIR = '/data'

[[mounts]]
  source = 'nwc_data'
  destination = '/data'
  initial_size = '1'
  auto_extend_size_threshold = 80
  auto_extend_size_increment = "1GB"
  auto_extend_size_limit = "5GB"

[http_service]
  internal_port = 8080
  force_https = true
  auto_stop_machines = false
  auto_start_machines = true
  min_machines_running = 0
  processes = ['app']

[[vm]]
  cpu_kind = 'shared'
  cpus = 1
  memory = '512mb'

Step 5: Launch the app

To launch the signer app, run

fly launch

Make sure you run this command in the directory where you store the config file.

The cli might ask you: Would you like to copy its configuration to the new app? Yes Do you want to tweak these settings before proceeding? No Create .dockerignore from 1 .gitignore files? No

If you see: Watch your deployment at https://fly.io/apps/....the app has been deployed successfully.

Step 6: Access the app

Log into your Fly.io account and you see the new app in the 'Apps' view.

Click on the app to access it on your browser.

Step 7: Set up Alby Hub

Click on "Get Started"

How to update Alby Hub on Fly.io

In Powershell on Windows, navigate to the directory of your fly.toml with cd [directory path]. Then type fly deploy in Powershell. You'll see further information printed in Powershell.


Thank you for stopping by! This section was created with contributions from Moritz & Jean-Paul

Congrats you successfully deployed and set up your own lightning node. 🚀 Also: Did you know we have a Discord channel? It's a great place to connect with our community and get to meet one another.🌟 Check it out and come 🚀

❓
Alby Account
this page
join us on Discord!