@@ -26,7 +26,6 @@ This project is based on [Khatru](https://github.com/fiatjaf/khatru), [EventStor
2626- [X] Manageable using NIP-86.
2727- [X] Landing page with NIP-11 document.
2828- [X] S3 backups (relay dbs/blobs/nip05 data/management info).
29- - [ ] Full setup document.
3029- [ ] Moderator notifications.
3130- [ ] StartOS support.
3231- [ ] Umbrel support.
@@ -36,13 +35,106 @@ This project is based on [Khatru](https://github.com/fiatjaf/khatru), [EventStor
3635
3736### VPS
3837
39- > TODO .
38+ In this guide we explain how you can run a alienos instance on your VPS using docker and nginx or without docker .
4039
41- #### Docker
40+ 1 . Prerequisites:
4241
43- > TODO.
42+ This project min requirements to be run is as below:
43+
44+ - ** CPU** : 0.5 vCore
45+ - ** Memory** : 500MB
46+ - ** Storage** : Depends on your database size.
47+
48+ You need to by a server form your preferred provider and obtain ssh access to it.
49+ Its recommended to use debian/ubuntu distribution.
50+
51+ 2 . Domain name (optional): you can buy a domain name from your preferred provider to use for your relay. its recommended to do that.
52+
53+ 3 . Install Docker and Docker-compose:
54+
55+ ``` bash
56+ sudo apt update
57+ sudo apt install -y docker.io
58+ sudo apt install -y docker-compose
59+ ```
60+
61+ 4 . Clone this repository:
62+
63+ ``` bash
64+ git clone https://github.com/dezh-tech/alienos.git
65+ cd alienos
66+ ```
67+
68+ 5 . Setup your config:
69+
70+ ``` bash
71+ cp .env.example .env
72+ nano .env
73+ ```
74+
75+ 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.
76+
77+ > [ !WARNING]
78+ > Technical note:
79+ > If you chained port config, don't forget to update it on docker-compose.yaml as well.
80+
81+ Use Ctrl+O+Enter and then Ctrl+X to save and exit.
82+
83+ 6 . Build and run:
84+
85+ Use this command to build and run your image:
86+
87+ ``` bash
88+ docker-compose up --build -d
89+ ```
90+
91+ ---
92+
93+ #### Setting up a domain (optional/recommended):
94+
95+ Using this command install nginx:
96+
97+ ``` bash
98+ sudo apt install nginx
99+ ```
100+
101+ Setup your domain:
102+
103+ ``` bash
104+ sudo nano /etc/nginx/sites-available/< your-domain.com>
105+ ```
106+
107+ > Replace it with your domain excluding the < and >.
108+
109+ Paste the [ example config] ( nginx.conf ) there and replace your domain.
110+
111+ Use Ctrl+O+Enter and then Ctrl+X to save and exit.
112+
113+ Enable the Nginx config:
114+
115+ ``` bash
116+ sudo ln -s /etc/nginx/sites-available/< your-domain.com> /etc/nginx/sites-enabled/
117+ ```
118+
119+ Restart Nginx:
120+
121+ ``` bash
122+ sudo systemctl restart nginx
123+ ```
124+
125+ Setup SSL (optional/recommended):
126+
127+ ``` bash
128+ sudo apt install certbot python3-certbot-nginx
129+ sudo certbot --nginx -d < your-domain.com>
130+ ```
131+
132+ Then follow the prompts and provide required info to set up the SSL.
133+
134+
135+ Now your alienos server must be available using ` wss://you-domain.com ` and ` wss://youe-ip:port ` .
44136
45- #### OS
137+ ### Relay tools
46138
47139> TODO.
48140
0 commit comments