From 9ac38cf9848af9af07cbece6ccbaa0e9c54fe35e Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 2 Aug 2017 16:06:13 -0600 Subject: [PATCH] Update INSTALL.md --- INSTALL.md | 41 ++++++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index 0b0537c..e3c35f1 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -13,7 +13,7 @@ Pre-requisites: * Raspberry Pi * MacBook * (pretty much anything, actually) -* You have compatible softwar +* You have compatible software * Linux of any sort that uses systemd * macOS using launchd * 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 ``` -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./api/walnut@daplie.com/init +curl https://daplie.me/install-scripts | bash -{ "domain": "" } +daplie-install-goldilocks ``` @@ -107,6 +109,8 @@ tls: - assets.example.com - cloud.example.com - api.cloud.example.com + - provider.example.com + - api.provider.example.com http: trust_proxy: true @@ -117,19 +121,6 @@ http: 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//config.json -``` - -Deleting those files and restarting walnut will reset it to its bootstrap state. - - 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'" }' ``` +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//config.json +``` + +Deleting those files and restarting walnut will reset it to its bootstrap state. + Reset Permissions -----------------