Commit graph

55 commits

Author SHA1 Message Date
Roland
56d118a851
fix: remove dollar sign from linux install scripts (#2525) 2026-08-10 15:33:20 +07:00
Roland
162965300e
docs: add README for keys (#2333) 2026-05-11 19:57:50 +05:30
Adithya Vardhan
04d3712cb2
chore: add new gpg key for im-adithya 2026-05-07 17:51:38 +05:30
Roland
963c7e139c
fix: remove bzip install command (agent can figure it out) (#2246) 2026-04-21 20:59:46 +07:00
Roland
0a36ebaf65
chore: make install and update scripts more agent-friendly (#2245)
The download was too verbose.
This lead to the agent unable to read the whole output.
It then made incorrect decisions on what to do next.
2026-04-21 13:58:40 +07:00
molty21
e963d6a2bf
feat: make installation scripts agent-friendly with CLI args (#2144)
* feat: make installation scripts agent-friendly with CLI args

Add command-line argument support to install.sh and update.sh for both
x86_64 and aarch64 architectures:

- -d, --install-dir DIR    Set installation directory
- -s, --systemd            Auto-setup systemd service (install only)
- --no-systemd             Skip systemd setup (install only)
- -y, --yes                Non-interactive mode (auto-confirm prompts)
- -h, --help               Show usage information

This allows agents and automation tools to run the scripts without
interactive prompts, making them suitable for CI/CD pipelines and
automated deployments.

* fix: add argument validation for --install-dir flag

Add validation to ensure -d/--install-dir is provided with a valid value:
- Checks that argument exists (not empty)
- Checks that argument doesn't start with '-' (not another flag)
- Exits with error message if validation fails

Fixes CodeRabbit review feedback on PR #2144.

* feat: add --skip-verify flag to skip verification step

Add --skip-verify flag to install and update scripts:
- linux-x86_64/install.sh
- linux-x86_64/update.sh
- linux-aarch64/install.sh
- linux-aarch64/update.sh

When --skip-verify is passed, the scripts skip downloading and
calling verify.sh entirely.

Usage: ./install.sh --skip-verify

* fix: ensure install dir does not contain whitespace

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Apply suggestion from @rolznz

* Apply suggestion from @coderabbitai[bot]

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Apply suggestion from @rolznz

* Update scripts/linux-aarch64/install.sh

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: molty21 <moltbot21@agentmail.to>
Co-authored-by: Roland <33993199+rolznz@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-03-16 19:24:43 +07:00
Sergey B.
9701c726ac
Making shell scripts POSIX compliant (#2015)
* feat: usage of rsync for backups

* refactor: making scripts POSIX compliant
2026-02-26 12:19:30 +07:00
Settoshi Tonami
fd9074f9e0
make sure verify.sh is replaced by last version when downloaded (#1956)
fixes #1563
2025-12-02 13:06:15 +07:00
Adithya Vardhan
76a11c1765
chore: set stop grace period to 5 mins (#1637)
* chore: set stop grace period to 5 mins

* chore: add albyhub-data to gitignore

---------

Co-authored-by: Roland Bewick <roland.bewick@gmail.com>
2025-08-21 17:06:30 +07:00
Matjaž Lipuš
e0a51ba0c3
chore: rename LOG_EVENTS env variable (#1509)
* renamed config

* updated configs

* chore: renamed to SEND_EVENTS_TO_ALBY
2025-07-18 21:42:59 +07:00
Roland
c2bec52306
docs: use local update script for pi hubs (#1438)
* docs: use local update script for pi hubs

* chore: download update scripts from pi install scripts
2025-06-27 13:05:25 +07:00
Roland
51ce7c64a0
Feat: allow hosting alby hub on subpath (#1439)
* feat: add base path to front end

- add docker build arg to set base path frontend is served under
- set vite.config.ts base value based on docker build arg
- update http variant request function to inject base path during calls to /api and /images
- update how static assets are loaded from public folder to inject base path during vite build

To use a base path build the docker image with --build-arg BASE_PATH=/hub/.
All assets and api calls from the frontend will use that base path as prefix.

The backend service is not using the base path, when using a proxy the base path has to be stripped.

* chore: simplify base path usage and add extra documentation

* chore: add extra documentation

---------

Co-authored-by: 8de2fdb0 <89734465+8de2fdb0@users.noreply.github.com>
2025-06-26 16:23:40 +05:30
Moritz Kaminski
58b81134cf
Update README.md (#1352)
We don't publish a Raspi Pi Zero guide on guides.getalby.com anymore.
Really only users with enough knowledge should do it.

Co-authored-by: Roland Bewick <roland.bewick@gmail.com>
2025-06-03 13:17:39 +07:00
Moritz Kaminski
043cfec2c6
Updated guide URLs (#1351) 2025-06-03 13:15:22 +07:00
Roman D
004884c07f
feat: verify package signatures (#1220)
* feat: archive integrity verification WIP

* feat: archive integrity verification in the aarch64 update script

* chore: extract verification into a separate file

* feat: add signature verification to all installation and update scripts

* fix: pass correct filenames when invoking the verification script
2025-04-15 23:54:58 +07:00
Roman D
3bddc72b95
chore: add linux-aarch64 scripts (#1032) 2025-01-28 16:21:48 +07:00
Roland
39a0fce839
chore: linux update script improvements (#978)
* chore: linux update script improvements

- add missing newlines
- use pwd to get current absolute directory, remove /albyhub suffix
- add file check to test if user is running in correct directory

* fix: script dir in update.sh
2025-01-17 13:35:13 +07:00
Roland Bewick
4665a8490f
chore: add new gpg key for rolznz 2025-01-07 23:09:49 +07:00
Roland
5a495fb2ab
Revert "chore: add new gpg key for rolznz" (#955)
Revert "chore: add new gpg key for rolznz (#954)"

This reverts commit 42539932ea.
2025-01-07 23:06:12 +07:00
Roland
42539932ea
chore: add new gpg key for rolznz (#954) 2025-01-07 22:53:04 +07:00
Roland
24ad1f2a7f
fix: use a less-used port for the alby hub service so it doesn't conflict with other running apps (#690)
* fix: use a less-used port for the alby hub service so it doesn't conflict with other running apps

* doc: improve alby hub port documentation

Co-authored-by: Michael Bumann <hello@michaelbumann.com>

---------

Co-authored-by: Michael Bumann <hello@michaelbumann.com>
2024-09-22 11:17:16 +07:00
Roland
db658952a9
doc: add info about changing PORT in albyhub.service (#679)
* doc: add info about changing PORT in albyhub.service

* doc: add extra service instructions

* doc: link to editing the service section
2024-09-20 15:55:51 +07:00
Michael Bumann
43f12f2ec2 fix: add missing port to aarch64 install script 2024-09-06 22:54:06 +02:00
Fmar
3d0f02b9f9
fix rpi-install shared-libs/setcap conflict for non-root user (#622)
* add albyhub lib dir to ld.so.conf to allow setcap and shared libs + install lsof

* fix sudo tee

* remove lsof install + checking of port 80

* remove -a from tee

* chore: update install scripts

---------

Co-authored-by: Michael Bumann <hello@michaelbumann.com>
2024-09-06 16:09:40 +02:00
Michael Bumann
49449f0dfc
chore: better handle ports on Pi and allow albyhub to run on port 80 (#584)
* chore: better handle ports on Pi and allow albyhub to run on port 80

* chore: install script: create data dir before running docker compose

* chore: install script for pi-aarch64

* chore: pi-zero move lib folder on update

* chore: replace (not append) files in install scripts

* chore: install text
2024-09-06 10:32:26 +02:00
BtcPins
f53e9e1444
Update README.md
Add command to make the install script executable in the instructions.
2024-08-28 14:29:33 -07:00
Michael Bumann
0577960adf
chore: remove adduser commmand example (#415)
The user should do their own basic server seutp. 
this links to a tutorial.
2024-08-07 21:58:47 +07:00
Michael Bumann
6227c3e582 chore: improve error handling for install script
exit on error and proper exit code check
2024-08-06 20:17:08 +02:00
Michael Bumann
4c18fc5416
feat: improve install scripts for linux (#395)
* feat: improve install scripts for linux

this adds a default linux installation script to download and run Alby
Hub on a plain Linux machine.

* chore: download separate update script

* chore: add example Caddyfile

to setup Alby Hub with a Caddy reverse proxy for TLS

* Update scripts/linux-x86_64/README.md

Co-authored-by: Roland <33993199+rolznz@users.noreply.github.com>

* chore: move pi install scripts in special folder

* chore: note about memory

* chore: typo

---------

Co-authored-by: Roland <33993199+rolznz@users.noreply.github.com>
2024-08-06 20:35:03 +03:00
Michael Bumann
a137474d09
Render.com phoneixd (#280)
* chore: default protocol for phoenixd

some environments can only provide the host and port for internal services (e.g. render.com)
in those cases we default to http

* feat: add render.com config for phoneixd deployment

This allows one click deploys to render.com with a phoenixd backend

* Update render.yaml
2024-07-20 00:21:33 +07:00
Fmar
7d2fefc24d
change electrs domain to getalbypro (#275) 2024-07-18 21:42:55 +07:00
Michael Bumann
2524141bbc
Fix pi install/update script urls 2024-07-18 13:11:00 +03:00
Roland Bewick
c436ae6d26 Merge remote-tracking branch 'origin/master' into electrs-getalby-domain 2024-07-05 21:19:49 +07:00
Roland Bewick
3088373477 chore: rename everything to alby hub 2024-07-05 20:32:40 +07:00
Fmar
745979ee1d chore: change electrs domain from albylabs to getalby 2024-07-04 17:12:34 +02:00
Roland Bewick
ef244400a8 fix: ensure alby hub never uses more than 90% cpu (on RPI zero) 2024-07-01 22:08:22 +07:00
Michael Bumann
d89f08bfaf
chore: use official download url for pi install (#551)
Co-authored-by: René Aaron <rene@twentyuno.net>
2024-07-01 14:45:30 +02:00
René Aaron
b35b00619e
feat: rpi scripts (#513) 2024-07-01 15:02:12 +07:00
Michael Bumann
0f3a2855ae
Update README.md 2024-06-29 22:19:56 +03:00
Michael Bumann
4eb6d0ebe8
Update README.md 2024-06-29 19:25:58 +03:00
Michael Bumann
149ad8ac21
phoenixd readme 2024-06-29 19:23:04 +03:00
Michael Bumann
44c1edc847
update phoenixd container name to prevent potential conflicts 2024-06-29 19:20:53 +03:00
Michael Bumann
7c9b95f1e2
Update README.md 2024-06-29 19:18:36 +03:00
Michael Bumann
653908d057
readme phoenixd 2024-06-29 19:17:17 +03:00
Michael Bumann
192926d456
chore: use new download URL (#525) 2024-06-28 13:38:05 +03:00
Michael Bumann
85381b9183
Build linux http executables (#480)
Co-authored-by: Roman Dmitrienko <roman@dmitrienko.com>
Co-authored-by: Roland Bewick <roland.bewick@gmail.com>
2024-06-25 22:04:30 +07:00
Michael Bumann
cafcdc1010
Start NWC after the network is actually online
currently we start it too early
2024-05-15 09:34:21 +03:00
Roland Bewick
745177e1e2 chore: disable RGS in RPI install script 2024-05-11 12:15:20 +07:00
Michael Bumann
0f77f890df
use sudo to rm the backup folder
the data dir is written by root
2024-05-10 00:54:33 +03:00
Michael Bumann
b511ce1257
Add hub link (#286) 2024-05-08 20:31:38 +02:00