mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-02-25 18:55:38 -06:00
Dev network setup docs
Added guilds for setting up a public bootstrap, a dev network, and config templates for dev nodes. Added link in the contribution guide to dev network setup guide.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
# Starting a Veilid Bootstrap Server
|
||||
# Starting a Generic/Public Veilid Bootstrap Server
|
||||
|
||||
## Instance Recommended Setup
|
||||
|
||||
CPU: Single
|
||||
RAM: 1GB
|
||||
Storage: 25GB
|
||||
@@ -7,50 +9,69 @@ IP: Static v4 & v6
|
||||
Firewall: 5150/TCP/UDP inbound allow all
|
||||
|
||||
## Install Veilid
|
||||
|
||||
Follow instructions in [INSTALL.md](./INSTALL.md)
|
||||
|
||||
## Configure Veilid
|
||||
## Configure Veilid as Bootstrap
|
||||
|
||||
**As root**
|
||||
|
||||
### Stop the Veilid service
|
||||
```shell
|
||||
### Stop the Veilid service
|
||||
|
||||
```shell
|
||||
systemctl stop veilid-server.service
|
||||
```
|
||||
|
||||
### Setup the config
|
||||
|
||||
In _/etc/veilid-server/veilid-server.conf`_ ensure _bootstrap: ['bootstrap.<your.domain>']_ in the _routing_table:_ section
|
||||
|
||||
If you came here from the [dev network setup](./dev-setup/dev-network-setup.md) guide, this is when you set the network key.
|
||||
|
||||
**Switch to veilid user**
|
||||
|
||||
```shell
|
||||
sudo -u veilid /bin/bash
|
||||
```
|
||||
|
||||
### Generate a new keypair
|
||||
|
||||
Copy the output to secure storage.
|
||||
|
||||
```shell
|
||||
veilid-server --generate-key-pair
|
||||
```
|
||||
|
||||
### Create new node ID and flush existing route table
|
||||
|
||||
Include the brackets [] when pasting the keys. Use the public key in the command. Secret key will be request interacitvly and will not echo when pasted.
|
||||
|
||||
```shell
|
||||
veilid-server --set-node-id [PUBLIC_KEY] --delete-table-store
|
||||
```
|
||||
|
||||
### Generate the DNS TXT record
|
||||
|
||||
Copy the output to secure storage.
|
||||
|
||||
```shell
|
||||
veilid-server --dump-txt-record
|
||||
```
|
||||
|
||||
**Switch back to root**
|
||||
### Start the Veilid service
|
||||
```shell
|
||||
|
||||
### Start the Veilid service
|
||||
|
||||
```shell
|
||||
systemctl start veilid-server.service
|
||||
```
|
||||
|
||||
Optionally configure the service to start at boot `sudo systemctl enable veilid-server.service`
|
||||
|
||||
_REPEAT FOR EACH BOOTSTRAP SERVER_
|
||||
|
||||
## Enter DNS Records
|
||||
|
||||
Create the following DNS Records for your domain:
|
||||
|
||||
(This example assumes two bootstrap serves are being created)
|
||||
|
||||
Reference in New Issue
Block a user