@@ -31,124 +31,70 @@ This project is based on [Khatru](https://github.com/fiatjaf/khatru), [Event Sto
3131- [X] Colorful Console/File logger.
3232- [ ] Running on Tor.
3333- [ ] Support plugins.
34- - [ ] Config, Running and plugins full documentation.
3534- [ ] StartOS support.
3635- [ ] Umbrel support.
3736
3837## How to set it up?
3938
40- ### VPS
4139
42- In this guide we explain how you can run an Alienos instance on your VPS using docker and nginx or without docker.
43-
44- 1 . Prerequisites:
45-
46- This project min requirements to be run is as below:
47-
48- - ** CPU** : 0.5 vCore
49- - ** Memory** : 500MB
50- - ** Storage** : Depends on your database size.
51-
52- You need to by a server form your preferred provider and obtain ssh access to it.
53- Its recommended to use debian/ubuntu distribution.
54-
55- 2 . Domain name (optional): you can buy a domain name from your preferred provider to use for your relay. its recommended to do that.
56-
57- 3 . Install Docker and Docker-compose:
58-
59- ``` bash
60- sudo apt update
61- sudo apt install -y docker.io
62- sudo apt install -y docker-compose
63- ```
64-
65- 4 . Clone this repository:
66-
67- ``` bash
68- git clone https://github.com/dezh-tech/alienos.git
69- cd alienos
70- ```
71-
72- 5 . Setup your config:
73-
74- ``` bash
75- cp .env.example .env
76- nano .env
77- ```
78-
79- It would open a file that allows you to edit config file. Each field contains an example and comment as documentation. Make sure you read them.
80-
81- > [ !WARNING]
82- > Technical note:
83- > If you chained port config, don't forget to update it on docker-compose.yaml as well.
84-
85- Use Ctrl+O+Enter and then Ctrl+X to save and exit.
86-
87- 6 . Build and run:
88-
89- Use this command to build and run your image:
90-
91- ``` bash
92- docker-compose up --build -d
93- ```
40+ #### ** Option 1: Use Prebuilt Docker Image (Recommended)**
41+
42+ The easiest way to run the Alienos is by using the prebuilt image:
43+
44+ 1 . ** Pull the latest image**
45+
46+ ``` sh
47+ docker pull dezhtech/alienos
48+ ```
49+
50+ 2 . ** Run Alienos with environment variables**
51+ ``` sh
52+ docker run -d --name alienos \
53+ -p 7771:7771 \
54+ -e ALIENOS_WORK_DIR=" alienos_wd/" \
55+ -e ALIENOS_RELAY_NAME=" Alienos" \
56+ -e ALIENOS_RELAY_ICON=" https://nostr.download/6695de4b095cd99ee7b4f6e2ef9ff89a9029efc1a017e60b8b5b5cb446b2c1e0.webp" \
57+ -e ALIENOS_RELAY_BANNER=" https://nostr.download/5b3fa3e40365061d58946fdb1bc6549a4675186591f9f589f9983895bfac8940.webp" \
58+ -e ALIENOS_RELAY_DESCRIPTION=" A self-hosting Nostr stack!" \
59+ -e ALIENOS_RELAY_PUBKEY=" badbdda507572b397852048ea74f2ef3ad92b1aac07c3d4e1dec174e8cdc962a" \
60+ -e ALIENOS_RELAY_CONTACT=" hi@dezh.tech" \
61+ -e ALIENOS_RELAY_SELF=" " \
62+ -e ALIENOS_RELAY_PORT=7771 \
63+ -e ALIENOS_RELAY_BIND=" 0.0.0.0" \
64+ -e ALIENOS_RELAY_URL=" " \
65+ -e ALIENOS_BACKUP_ENABLE=" true" \
66+ -e ALIENOS_BACKUP_INTERVAL_HOURS=1 \
67+ -e ALIENOS_S3_ACCESS_KEY_ID=" " \
68+ -e ALIENOS_S3_SECRET_KEY=" " \
69+ -e ALIENOS_S3_ENDPOINT=" " \
70+ -e ALIENOS_S3_REGION=" " \
71+ -e ALIENOS_S3_BUCKET_NAME=" alienos" \
72+ -e ALIENOS_S3_AS_BLOSSOM_STORAGE=" false" \
73+ -e ALIENOS_S3_BLOSSOM_BUCKET=" alienos" \
74+ -e ALIENOS_PUBKEY_WHITE_LISTED=" false" \
75+ -e ALIENOS_KIND_WHITE_LISTED=" false" \
76+ -e ALIENOS_ADMINS=" " \
77+ -e ALIENOS_LOG_FILENAME=" alienos.log" \
78+ -e ALIENOS_LOG_LEVEL=" info" \
79+ -e ALIENOS_LOG_TARGETS=" file,console" \
80+ -e ALIENOS_LOG_MAX_SIZE=10 \
81+ -e ALIENOS_LOG_FILE_COMPRESS=true \
82+ dezhtech/alienos
83+ ```
9484
9585---
9686
97- #### Setting up a domain (optional/recommended):
98-
99- Using this command install nginx:
100-
101- ``` bash
102- sudo apt install nginx
103- ```
104-
105- Setup your domain:
106-
107- ``` bash
108- sudo nano /etc/nginx/sites-available/< your-domain.com>
109- ```
110-
111- > Replace it with your domain excluding the < and >.
112-
113- Paste the [ example config] ( nginx.conf ) there and replace your domain.
114-
115- Use Ctrl+O+Enter and then Ctrl+X to save and exit.
116-
117- Enable the Nginx config:
118-
119- ``` bash
120- sudo ln -s /etc/nginx/sites-available/< your-domain.com> /etc/nginx/sites-enabled/
121- ```
122-
123- Restart Nginx:
124-
125- ``` bash
126- sudo systemctl restart nginx
127- ```
128-
129- Setup SSL (optional/recommended):
130-
131- ``` bash
132- sudo apt install certbot python3-certbot-nginx
133- sudo certbot --nginx -d < your-domain.com>
134- ```
135-
136- Then follow the prompts and provide required info to set up the SSL.
137-
138-
139- Now your alienos server must be available using ` wss://you-domain.com ` and ` wss://youe-ip:port ` .
140-
141- ### Relay tools
142-
143- > TODO.
144-
145- ### Umbrel
87+ #### ** Option 2: Using Docker Compose**
14688
147- > TODO.
89+ For a more structured deployment, use ** Docker Compose ** :
14890
149- ### StartOS
91+ 1 . ** use ` compose.yml ` **
92+ use the exist compose file in the alienos directory
15093
151- > TODO.
94+ 2 . ** Run with Compose**
95+ ``` sh
96+ docker-compose up -d
97+ ```
15298
15399## Limitations
154100
0 commit comments