diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2021-02-23 20:31:19 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2021-02-23 20:31:19 +0100 |
| commit | 464991b62e4fa6141449ca0c5980fcf0af3097a6 (patch) | |
| tree | 18e597dc951cbf4605995e3aa1b1f8761449549f /Readme.md | |
| parent | 19516de0a43ac5f2b0afc9891bbef09d229ce4e6 (diff) | |
upload files and write to diskv0.3.0
Diffstat (limited to 'Readme.md')
| -rw-r--r-- | Readme.md | 20 |
1 files changed, 15 insertions, 5 deletions
@@ -1,20 +1,19 @@ # OKCMS > "Pretty good" +> > - Steve Jobs - ## To run the demo: -* npm install -* cd examples -* node index +- npm install +- cd examples +- node index Server will be running on http://lvh.me:1337/ Admin area available on http://lvh.me:1337/admin/ - ## Config To access the admin area, you need to set a username and password. @@ -27,6 +26,7 @@ OK_PASS=password ``` S3 needs to be configured in the same way: + ``` S3_KEY=s3key S3_SECRET=s3secret @@ -73,3 +73,13 @@ Valid datatypes include: - double-captioned-image-list - meta +## Local S3 + +If you don't want to use S3 and you have enough disk space locally, you can just write them locally. Supply these options to the S3 service configuration (pathss with trailing slash!). + +``` +local: { + localPath: "/home/username/my-cool-website-pro/public/local-files/", + remotePath: "/local-files/", +}, +``` |
