sudo sh -c "cat > /var/lib/lokinet/lokinet.ini" <<'EOF'
[router]
[network]
keyfile=/var/lib/lokinet/snappkey.private
@ -98,7 +151,10 @@ Note down the .loki and .onion address for the next step.
**7. Setup nginx**
For standard installations, run `configs/nginx/nginx.sh` as root. This will prompt you for installation directory, domains, onion/lokinet, enable geoip, install a letsencrypt certificate with certbot and more.
For standard installations, run `configs/nginx/nginx.sh`. This will prompt you for installation directory, domains, onion/lokinet, enable geoip, install a letsencrypt certificate with certbot and more:
```bash
sudo bash configs/nginx/nginx.sh
```
For non-standard installations like using a CDN, see [configs/nginx/README.md](configs/nginx/README.md) and DIY.
@ -131,16 +187,16 @@ npm run-script setup
gulp reset
```
7. Make pm2 a system service and load on system startup. NOTE: This will also output some additional commands you need to run to complete the process. Read the command output carefully.
7. Make pm2 a system service and load on system startup. **NOTE: This will also output some additional commands you need to run to complete the process. Read the command output carefully.**
```
pm2 startup
pm2 save
```
8. Start all the backend processes
8. Start all the backend processes.
```bash
npm run-script start
gulp
pm2 save
```
Some commands you may need to use in future/find helpful: