add sops, add nb-epicenter, add readme

This commit is contained in:
2023-07-13 11:34:59 +02:00
parent 127eab91d5
commit b82a4242bf
5 changed files with 379 additions and 0 deletions

28
README.md Normal file
View File

@@ -0,0 +1,28 @@
# 1. Installation of new servers
- install ubuntu 20.04
- get age key from SSH
```console
$ nix-shell -p ssh-to-age --run 'ssh-keyscan example.com | ssh-to-age'
```
- fix secrets files
```console
$ sops': nix-shell -p sops --run "sops updatekeys -y secrets.yaml"
```
- run install command
```console
$ ./install.sh example.com
```
# 2. Web Server specific
- change the permissions for /var/www
```console
$ chown nginx:nginx /var/www
$ chmod 755 /var/www
```
# 3. Net data
- Netdata data page: Add a node
- Once you got the token, we will claim it to associate it to a node:
- create /var/lib/netdata/cloud.d/token and write the token in it
- run nix-shell -p netdata --run "netdata-claim.sh -id=$(uuidgen)" as root
- your node should be registered in Netdata cloud