diff --git a/Dockerfile b/Dockerfile
index 125ad12de7..e249559e87 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -15,10 +15,12 @@ COPY . .
RUN yarn build
# Production Stage
+ENV PORT 80
+
FROM nginx:1.15.7-alpine as production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
-EXPOSE 80
-
+EXPOSE ${PORT}
+VOLUME /usr/share/nginx/html/item-icons
CMD ["nginx", "-g", "daemon off;"]
diff --git a/README.md b/README.md
index 779de90944..3ed0e9a9fa 100644
--- a/README.md
+++ b/README.md
@@ -19,10 +19,11 @@
- Quickly preview a website, by holding down the Alt key while clicking, to open it in a resizable pop-up modal
- Many options for icons, including full Font-Awesome support and the ability to auto-fetch icon from URLs favicon
- Additional info for each item visible on hover (including opening method icon and description as a tooltip)
-- Option for full-screen background image, custom nav-bar links, and custom footer
-- Preferences stored in local storage and applied on load
-- Easy YAML-based configuration
-- Small bundle size and a fully responsive UI makes the app easy to use on any device
+- Option for full-screen background image, custom nav-bar links, and custom footer text
+- User settings stored in local storage and applied on load
+- Encrypted cloud backup and restore feature available
+- Easy single-file YAML-based configuration
+- Small bundle size, fully responsive UI and PWA makes the app easy to use on any device
- Plus lots more...
**Live Demos**: [Demo 1](https://dashy-demo-1.as93.net) ┆ [Demo 2](https://dashy-demo-2.as93.net) ┆ [Demo 3](https://dashy-demo-3.as93.net)
@@ -38,7 +39,6 @@
---
## Running the App 🏃♂️
-
### Deploying 🚀
- Get Code: `git clone git@github.com:Lissy93/dashy.git` and `cd dashy`
- Configuration: Fill in you're settings in `./public/conf.yml`
@@ -46,17 +46,22 @@
- Build: `yarn build`
- Run: `yarn start`
-### Deploying with Docker 🐳
+### Deploying with Docker from Source 🛳️
- Get Code: `git clone git@github.com:Lissy93/dashy.git` and `cd dashy`
- Configuration: Fill in you're settings in `./public/conf.yml`
- Build: `docker build -t lissy93/dashy .`
-- Start: `docker run -it -p 8080:80 --rm --name my-dashboard lissy93/dashy`
+- Start: `docker run -p 8080:80 --name my-dashboard lissy93/dashy`
+### Deploying from Docker Hub 🐳
+- Get the Image: `docker pull lissy93/dashy`
+- Start the Container: `docker run -d -p 8080:80 --name my-dashboard lissy93/dashy`
### Developing 🧱
- Get Code: `git clone git@github.com:Lissy93/dashy.git` and `cd dashy`
- Install dependencies: `yarn`
- Start dev server: `yarn dev`
+Note that although recommended, it is not required to use the conf.yml file- all settings can be specified through the UI, and backed up on the cloud.
+
---
## Configuring 🔧
@@ -162,17 +167,24 @@ There are a few self-hosted web apps, that serve a similar purpose to Dashy. Inc
### Credits 🏆
-And the app itself is built with [Vue.js](https://github.com/vuejs/vue) ![vue-logo](https://i.ibb.co/xqKW6h5/vue-logo.png)
-
-And wouldn't have been quite possible, without the following components, kudos to their respective authors
+This wouldn't have been quite so possible without the following components, kudos to their respective authors
- [`vue-select`](https://github.com/sagalbot/vue-select) - Dropdown component by @sagalbot `MIT`
- [`vue-js-modal`](https://github.com/euvl/vue-js-modal) - Modal component by @euvl `MIT`
- [`v-tooltip`](https://github.com/Akryum/v-tooltip) - Tooltip component by @Akryum `MIT`
- [`vue-material-tabs`](https://github.com/jairoblatt/vue-material-tabs) - Tab view component by @jairoblatt `MIT`
- [`VJsoneditor`](https://github.com/yansenlei/VJsoneditor) - Interactive JSON editor component by @yansenlei `MIT`
- - Forked from [JsonEditor](https://github.com/josdejong/jsoneditor) by @josdejong `Apache-2.0 License`
+ - Forked from [`JsonEditor`](https://github.com/josdejong/jsoneditor) by @josdejong `Apache-2.0 License`
+ - And using [`ajv`](https://github.com/ajv-validator/ajv) `MIT` JSON schema Validator [`ace`](https://github.com/ajaxorg/ace) `BSD` code editor
- [`vue-toasted`](https://github.com/shakee93/vue-toasted) - Toast notification component by @shakee93 `MIT`
+Utils:
+- [`crypto-js`](https://github.com/brix/crypto-js) - Encryption implementations by @evanvosberg and community `MIT`
+- [`axios`](https://github.com/axios/axios) - Promise based HTTP client by @mzabriskie and community `MIT`
+
+And the app itself is built with [Vue.js](https://github.com/vuejs/vue) ![vue-logo](https://i.ibb.co/xqKW6h5/vue-logo.png)
+
+Although the app is purely frontend, there is an optional cloud backup and restore feature. This is built as a serverless function on [Cloudflare workers](https://workers.cloudflare.com/) using [KV](https://developers.cloudflare.com/workers/runtime-apis/kv) and [web crypto](https://developers.cloudflare.com/workers/runtime-apis/web-crypto)
+
### License 📜
```
@@ -194,3 +206,7 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRA
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWAREOR THE USE
OR OTHER DEALINGS IN THE SOFTWARE.
```
+
+---
+
+
diff --git a/package.json b/package.json
index 316dfcee15..4293e0e819 100644
--- a/package.json
+++ b/package.json
@@ -8,7 +8,9 @@
"lint": "vue-cli-service lint --fix"
},
"dependencies": {
+ "axios": "^0.21.1",
"connect": "^3.7.0",
+ "crypto-js": "^4.0.0",
"register-service-worker": "^1.6.2",
"remedial": "^1.0.8",
"serve-static": "^1.14.1",
diff --git a/src/assets/interface-icons/cloud-backup-restore.svg b/src/assets/interface-icons/cloud-backup-restore.svg
new file mode 100644
index 0000000000..5d17f8f5eb
--- /dev/null
+++ b/src/assets/interface-icons/cloud-backup-restore.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/interface-icons/config-backup.svg b/src/assets/interface-icons/config-backup.svg
new file mode 100644
index 0000000000..281c02438e
--- /dev/null
+++ b/src/assets/interface-icons/config-backup.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/interface-icons/config-restore.svg b/src/assets/interface-icons/config-restore.svg
new file mode 100644
index 0000000000..13f5b7c4b9
--- /dev/null
+++ b/src/assets/interface-icons/config-restore.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/Configuration/CloudBackupRestore.vue b/src/components/Configuration/CloudBackupRestore.vue
new file mode 100644
index 0000000000..8fb4dda0fd
--- /dev/null
+++ b/src/components/Configuration/CloudBackupRestore.vue
@@ -0,0 +1,238 @@
+
+
+ Cloud backup and restore is an optional feature, that enabled you to upload your
+ config to the internet, and then restore it on any other device or instance of Dashy.
+ Cloud Backup & Restore
+
+ All data is fully end-to-end encrypted with AES, using your password as the key.
+ Update Backup
+ Make a Backup
+
+
+ {{ backupId }}
+
+ This is used to restore from backups later.
+ So keep it, along with your password somewhere safe.
+
+ Restore a Backup
+
+
+
+