Update INSTALL.md
This commit is contained in:
parent
ca44f467a3
commit
9ac38cf984
41
INSTALL.md
41
INSTALL.md
|
@ -13,7 +13,7 @@ Pre-requisites:
|
||||||
* Raspberry Pi
|
* Raspberry Pi
|
||||||
* MacBook
|
* MacBook
|
||||||
* (pretty much anything, actually)
|
* (pretty much anything, actually)
|
||||||
* You have compatible softwar
|
* You have compatible software
|
||||||
* Linux of any sort that uses systemd
|
* Linux of any sort that uses systemd
|
||||||
* macOS using launchd
|
* macOS using launchd
|
||||||
* You own a domain
|
* You own a domain
|
||||||
|
@ -84,15 +84,17 @@ daplie devices:attach -d $my_device -n cloud.$my_domain
|
||||||
daplie devices:attach -d $my_device -n api.cloud.$my_domain
|
daplie devices:attach -d $my_device -n api.cloud.$my_domain
|
||||||
```
|
```
|
||||||
|
|
||||||
Initialization
|
Goldilocks Configuration
|
||||||
--------------
|
------------------------
|
||||||
|
|
||||||
needs to know its primary domain
|
Walnut must sit behind a proxy that properly terminates https and sets the `X-Forwarded-Proto` header.
|
||||||
|
|
||||||
|
Goldilocks can do this:
|
||||||
|
|
||||||
```
|
```
|
||||||
POST https://api.<domain.tld>/api/walnut@daplie.com/init
|
curl https://daplie.me/install-scripts | bash
|
||||||
|
|
||||||
{ "domain": "<domain.tld>" }
|
daplie-install-goldilocks
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -107,6 +109,8 @@ tls:
|
||||||
- assets.example.com
|
- assets.example.com
|
||||||
- cloud.example.com
|
- cloud.example.com
|
||||||
- api.cloud.example.com
|
- api.cloud.example.com
|
||||||
|
- provider.example.com
|
||||||
|
- api.provider.example.com
|
||||||
|
|
||||||
http:
|
http:
|
||||||
trust_proxy: true
|
trust_proxy: true
|
||||||
|
@ -117,19 +121,6 @@ http:
|
||||||
address: '127.0.0.1:3000'
|
address: '127.0.0.1:3000'
|
||||||
```
|
```
|
||||||
|
|
||||||
Resetting the Initialization
|
|
||||||
----------------------------
|
|
||||||
|
|
||||||
Once you run the app the initialization files will appear in these locations
|
|
||||||
|
|
||||||
```
|
|
||||||
/srv/walnut/var/com.daplie.walnut.config.sqlite3
|
|
||||||
/srv/walnut/config/<domain.tld>/config.json
|
|
||||||
```
|
|
||||||
|
|
||||||
Deleting those files and restarting walnut will reset it to its bootstrap state.
|
|
||||||
|
|
||||||
|
|
||||||
Basic Walnut Install
|
Basic Walnut Install
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
|
@ -165,6 +156,18 @@ curl -X POST http://api.localhost.daplie.me:3000/api/walnut@daplie.com/init \
|
||||||
-d '{ "domain": "'$my_domain'" }'
|
-d '{ "domain": "'$my_domain'" }'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Resetting the Initialization
|
||||||
|
----------------------------
|
||||||
|
|
||||||
|
Once you run the app the initialization files will appear in these locations
|
||||||
|
|
||||||
|
```
|
||||||
|
/srv/walnut/var/com.daplie.walnut.config.sqlite3
|
||||||
|
/srv/walnut/config/<domain.tld>/config.json
|
||||||
|
```
|
||||||
|
|
||||||
|
Deleting those files and restarting walnut will reset it to its bootstrap state.
|
||||||
|
|
||||||
Reset Permissions
|
Reset Permissions
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue