git
nvm
(curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
)nodejs
pnpm
nginx
ufw
containerd
docker
openssl
micro
tsx
pockethost
- Setup SSH
ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519
- Clone repo
git clone https://github.com/benallfree/pockethost.git pockethost
cd pockethost
- Copy the environment file
cp .env-template .env
micro .env
- Then change the rest of the file contents from
/path/to/dist/
to/root/ph/
then make the respective directories in/root
- Add
TEMP_EMAIL
&TEMP_PASSWORD
to the.env
as well - Add Open SSL certificate
.key
&.crt
to/root/ph/
or the path you set in the.env
openssl genrsa -out pockethost.key 2048
openssl req -key pockethost.key -new -x509 -days 365 -out pockethost.crt
-
Run
cat ./setup.sh | bash
-
Run
pnpm dev:cli