From 242e39361f0ecd77620caa4d3a8e29635d7296dd Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 1 Aug 2017 09:40:01 -0600 Subject: [PATCH] pages -> sites --- README.md | 46 +++++++++++++++++++--------------------------- 1 file changed, 19 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index c752bd7..7349054 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,6 @@ Currently being tested with Ubuntu, Raspbian, and Debian on Digital Ocean, Raspb ├── node_modules ├── packages │ ├── apis -│ ├── pages │ └── services └── var └── sites @@ -211,16 +210,16 @@ Deleting those files will rese Accessing static apps --------------------- -Static apps are stored in `packages/pages` +Static apps are stored in `var/sites` ``` # App ID as files with a list of packages they should load # note that '#' is used in place of '/' because files and folders may not contain '/' in their names -/srv/walnut/packages/sites/ # https://domain.tld/path -/srv/walnut/packages/sites/ # https://domain.tld and https://domain.tld/foo match +/srv/walnut/var/sites/ # https://domain.tld/path +/srv/walnut/var/sites/ # https://domain.tld and https://domain.tld/foo match # packages are directories with reverse dns name # For the sake of debugging these packages can be accessed directly, without a site by -/srv/walnut/packages/pages/ # matches apps./ and /apps/ +/srv/walnut/var/sites/ # matches apps./ and /apps/ ``` Accessing REST APIs @@ -246,18 +245,6 @@ The packages: ``` /srv/walnut/packages/ ├── api -├── pages -│ └── com.example.hello -│ └── index.html -│ ''' -│ -│ com.example.hello -│ -│

com.example.hello

-│ -│ -│ ''' -│ ├── rest │ └── com.example.hello │ ├── package.json @@ -278,6 +265,19 @@ The packages: │ ''' │ └── services +/srv/walnut/var/ +├── sites + └── demo@example.com + └── index.html + ''' + + demo@example.com + +

demo@example.com

+ + + ''' + ``` The permissions: @@ -287,13 +287,13 @@ The permissions: ├── client-api-grants │ └── cloud.foobar.me │ ''' -│ com.example.hello # refers to /srv/walnut/packages/rest/com.example.hello +│ hello@example.com # refers to /srv/walnut/packages/rest/hello@example.com │ ''' │ └── sites └── daplie.me ''' - com.example.hello # refers to /srv/walnut/packages/pages/com.example.hello + seed@example.com # refers to /srv/walnut/var/sites/seed@example.com ''' ``` @@ -303,11 +303,3 @@ API ``` req.apiUrlPrefix => https://api.example.com/api/tld.domain.pkg ``` - -TODO ----- - -* HTTPS Key Pinning -* Heroku (pending completion of PostgreSQL support) -* [GunDB](https://gundb.io) Support -* OpenID support