|
@ -0,0 +1,36 @@
|
||||||
|
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
||||||
|
// README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node
|
||||||
|
{
|
||||||
|
"name": "Dashy",
|
||||||
|
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
||||||
|
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-18-bullseye",
|
||||||
|
"customizations": {
|
||||||
|
"vscode": {
|
||||||
|
"extensions": [
|
||||||
|
"Vue.volar",
|
||||||
|
"dbaeumer.vscode-eslint",
|
||||||
|
"ms-azuretools.vscode-docker",
|
||||||
|
"ms-edgedevtools.vscode-edge-devtools",
|
||||||
|
"firefox-devtools.vscode-firefox-debug",
|
||||||
|
"aaravb.chrome-extension-developer-tools"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
||||||
|
"features": {
|
||||||
|
"ghcr.io/devcontainers/features/github-cli:1": {}
|
||||||
|
},
|
||||||
|
|
||||||
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||||
|
// "forwardPorts": [],
|
||||||
|
|
||||||
|
// Use 'postCreateCommand' to run commands after the container is created.
|
||||||
|
"postCreateCommand": "yarn install --ignore-engines --immutable --no-cache --network-timeout 300000 --network-concurrency 1"
|
||||||
|
|
||||||
|
// Configure tool-specific properties.
|
||||||
|
// "customizations": {},
|
||||||
|
|
||||||
|
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
||||||
|
// "remoteUser": "root"
|
||||||
|
}
|
|
@ -0,0 +1,9 @@
|
||||||
|
# Files specified here are not required for Docker
|
||||||
|
# so ignoring them helps to reduce the container size
|
||||||
|
# The Docker container MUST have the following files:
|
||||||
|
# package.json yarn.lock server.js vue.config.js src/ services/
|
||||||
|
|
||||||
|
node_modules
|
||||||
|
docs
|
||||||
|
.git
|
||||||
|
.github
|
|
@ -0,0 +1,24 @@
|
||||||
|
root = true
|
||||||
|
|
||||||
|
# Basics - All Files
|
||||||
|
[*]
|
||||||
|
end_of_line = lf
|
||||||
|
charset = utf-8
|
||||||
|
insert_final_newline = true
|
||||||
|
|
||||||
|
# JS, TS and Vue
|
||||||
|
[*.{js,jsx,ts,tsx,vue}]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
insert_final_newline = true
|
||||||
|
|
||||||
|
# YAML, for config file
|
||||||
|
[*.{yml,yaml}]
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
# Markdown for docs
|
||||||
|
[*.md]
|
||||||
|
trim_trailing_whitespace = false
|
||||||
|
|
||||||
|
# Licensed under MIT, (C) 2024 Alicia Sykes <https://aliciasykes.com>
|
|
@ -0,0 +1,70 @@
|
||||||
|
# Store environmental variables here. All variables are optional.
|
||||||
|
# Lines beginning in '#' are ignored.
|
||||||
|
|
||||||
|
# Can be either development, production or test
|
||||||
|
# NODE_ENV=production
|
||||||
|
|
||||||
|
# The port to expose the running application on
|
||||||
|
# PORT=4000
|
||||||
|
|
||||||
|
# If you've proved SSL certs, then can set HTTPS port
|
||||||
|
# SSL_PORT=4001
|
||||||
|
|
||||||
|
# The host that Dashy is running on, domain or IP
|
||||||
|
# HOST=localhost
|
||||||
|
|
||||||
|
# The default base path for serving up static assets
|
||||||
|
# BASE_URL=./
|
||||||
|
|
||||||
|
# Optionally, specify the path of SSL private + public keys
|
||||||
|
# SSL_PRIV_KEY_PATH=/etc/ssl/certs/dashy-priv.key
|
||||||
|
# SSL_PUB_KEY_PATH=/etc/ssl/certs/dashy-pub.pem
|
||||||
|
|
||||||
|
# If SSL enabled, choose whether or not to redirect http to https
|
||||||
|
# Defaults to true
|
||||||
|
# REDIRECT_HTTPS=true
|
||||||
|
|
||||||
|
# The path to the user data directory
|
||||||
|
# USER_DATA_DIR=user-data
|
||||||
|
|
||||||
|
# Enable HTTP basic auth to protect your *.yml config files
|
||||||
|
# ENABLE_HTTP_AUTH=true
|
||||||
|
|
||||||
|
# Enable basic HTTP auth to protect your *.yml config files
|
||||||
|
# BASIC_AUTH_USERNAME
|
||||||
|
# BASIC_AUTH_PASSWORD
|
||||||
|
|
||||||
|
# If you'd like frontend to automatically authenticate when basic auth enabled, set credentials here too
|
||||||
|
# VUE_APP_BASIC_AUTH_USERNAME
|
||||||
|
# VUE_APP_BASIC_AUTH_PASSWORD
|
||||||
|
|
||||||
|
# Override where the path to the configuration file is, can be a remote URL
|
||||||
|
# VUE_APP_CONFIG_PATH=/conf.yml
|
||||||
|
|
||||||
|
# Usually the same as BASE_URL, but accessible in frontend
|
||||||
|
# VUE_APP_DOMAIN=https://dashy.to
|
||||||
|
|
||||||
|
# Override the page title for the frontend app
|
||||||
|
# VUE_APP_TITLE=''
|
||||||
|
|
||||||
|
# Set the default view to load on startup (can be `minimal`, `workspace` or `home`)
|
||||||
|
# VUE_APP_STARTING_VIEW=home
|
||||||
|
|
||||||
|
# Set the Vue app routing mode (can be 'hash', 'history' or 'abstract')
|
||||||
|
# VUE_APP_ROUTING_MODE=history
|
||||||
|
|
||||||
|
# Should enable SRI for build script and link resources
|
||||||
|
# INTEGRITY=true
|
||||||
|
|
||||||
|
# Computed automatically on build. Indicates if running in container
|
||||||
|
# IS_DOCKER=true
|
||||||
|
|
||||||
|
# Again, set automatically using package.json during build time
|
||||||
|
# VUE_APP_VERSION=2.0.0
|
||||||
|
|
||||||
|
# Directory for conf.yml backups
|
||||||
|
# BACKUP_DIR=./user-data/config-backups
|
||||||
|
|
||||||
|
# Setup any other user defined vars by prepending VUE_APP_ to the var name
|
||||||
|
# VUE_APP_pihole_ip=http://your.pihole.ip
|
||||||
|
# VUE_APP_pihole_key=your_pihole_secret_key
|
|
@ -0,0 +1,14 @@
|
||||||
|
# Ignore list, for automated broken link checking
|
||||||
|
|
||||||
|
https://fonts.gstatic.com/**
|
||||||
|
https://metager.org/meta/**
|
||||||
|
https://developers.cloudflare.com/**
|
||||||
|
|
||||||
|
http://localhost**
|
||||||
|
https://localhost**
|
||||||
|
http://192.168**
|
||||||
|
https://192.168**
|
||||||
|
file:///github/**
|
||||||
|
http://[dashy-location]**
|
||||||
|
https://[dashy-location]**
|
||||||
|
**.local/**
|
|
@ -0,0 +1,7 @@
|
||||||
|
/src/assets/locales/fr.json
|
||||||
|
^./src/assets/locales/de.json
|
||||||
|
^./src/assets/locales/es.json
|
||||||
|
^./src/assets/locales/fr.json
|
||||||
|
^./src/assets/locales/nl.json
|
||||||
|
^./src/assets/locales/sl.json
|
||||||
|
^./src/assets/locales/zh-CN.json
|
|
@ -0,0 +1,167 @@
|
||||||
|
0n1cOn3 <0n1cOn3@gmx.ch> - 1 commits
|
||||||
|
5idereal <nelson22768384@gmail.com> - 1 commits
|
||||||
|
Alberto <3170731+albcp@users.noreply.github.com> - 1 commits
|
||||||
|
Alicia <liss-bot@d0h.co> - 1 commits
|
||||||
|
Aly Mohamed <alydemah@gmail.com> - 1 commits
|
||||||
|
Artyom <32810520+AaronPorts@users.noreply.github.com> - 1 commits
|
||||||
|
BRAVO68WEB <jbandyopadhayaya@gmail.com> - 1 commits
|
||||||
|
Begin <support@begin.com> - 1 commits
|
||||||
|
Bhasher <github.it@bhasher.com> - 1 commits
|
||||||
|
Bjorn Lammers <walkxnl@gmail.com> - 1 commits
|
||||||
|
Bumsoo Kim <bskim45@gmail.com> - 1 commits
|
||||||
|
BySempron <barquin_rkz@hotmail.com> - 1 commits
|
||||||
|
Celestial.y <celestial.y@outlook.com> - 1 commits
|
||||||
|
CrazyWolf13 <CrazyWolf13@users.noreply.github.com> - 1 commits
|
||||||
|
David <skaarj1989@gmail.com> - 1 commits
|
||||||
|
Dawid Pietrykowski <d.pietrykowski16@gmail.com> - 1 commits
|
||||||
|
DeepSource Bot <bot@deepsource.io> - 1 commits
|
||||||
|
Desmond Kyeremeh <elDekyfin@gmail.com> - 1 commits
|
||||||
|
Devin Buhl <devin.kray@gmail.com> - 1 commits
|
||||||
|
Doug Lock <doug@douglock.co.uk> - 1 commits
|
||||||
|
Dylan-Bs <35694107+Dylan-Bs@users.noreply.github.com> - 1 commits
|
||||||
|
Eduardo Gomez <edugof@users.noreply.github.com> - 1 commits
|
||||||
|
Erwan Miran <emiran.ext@orange.com> - 1 commits
|
||||||
|
Ethan Hann <github.q2oay@slmail.me> - 1 commits
|
||||||
|
FedelloKirfed <fedellokirfed@proton.me> - 1 commits
|
||||||
|
FormatToday <616099456@qq.com> - 1 commits
|
||||||
|
Garrett Brown <gdbrown09@gmail.com> - 1 commits
|
||||||
|
Harald Töpfer <62364169+hubortje@users.noreply.github.com> - 1 commits
|
||||||
|
Hendrik Strydom <56320839+FraglyG@users.noreply.github.com> - 1 commits
|
||||||
|
Ian Neal <wopr@wopr.tech> - 1 commits
|
||||||
|
Iaroslav Dronskii <iaroslav@dronskii.ru> - 1 commits
|
||||||
|
Ishan Jain <ishan@jain.se> - 1 commits
|
||||||
|
JJ Munguia <jj@jjmung.dev> - 1 commits
|
||||||
|
Jemy SCHNEPP <dev@leethium.fr> - 1 commits
|
||||||
|
Jeremy Chauvin <jeremychauvin10@gmail.com> - 1 commits
|
||||||
|
Julian <julian.thanner@gmx.de> - 1 commits
|
||||||
|
Kieran Eglin <kieran.eglin@gmail.com> - 1 commits
|
||||||
|
Kieren Connell <Kieren@kierenconnell.com> - 1 commits
|
||||||
|
Leonardo Colman Lopes <leonardo.dev@colman.com.br> - 1 commits
|
||||||
|
Luis Pabon <luis.pabon@auronconsulting.co.uk> - 1 commits
|
||||||
|
M Asenov <m.assenov@gmail.com> - 1 commits
|
||||||
|
Markus Krause <Krause.Markus@gmx.com> - 1 commits
|
||||||
|
Max Kulik <pearelectronics@live.com> - 1 commits
|
||||||
|
Maxime Moreillon <m.moreillon@gmail.com> - 1 commits
|
||||||
|
Mert Sefa AKGUN <git@msakg.com> - 1 commits
|
||||||
|
Michael <michaellavaire@gmail.com> - 1 commits
|
||||||
|
Nicholas Malcolm <bubylou@pm.me> - 1 commits
|
||||||
|
OKAMOTO Shigehiro <primary@goahi.live> - 1 commits
|
||||||
|
PlusaN <61884717+PlusaN@users.noreply.github.com> - 1 commits
|
||||||
|
Prince Carl Velasco <princevelasco16@gmail.com> - 1 commits
|
||||||
|
Rune Bjørnerås <rune.bjorneras@gmail.com> - 1 commits
|
||||||
|
Ryan Turner <ryan.e.t@gmail.com> - 1 commits
|
||||||
|
Rúben Silva <rubensilva945@gmail.com> - 1 commits
|
||||||
|
Sacha FROMENT <sacha@sacha.house> - 1 commits
|
||||||
|
Sergio <15928132+BySempron@users.noreply.github.com> - 1 commits
|
||||||
|
Shahzzad Ali <shazzgit@gmail.com> - 1 commits
|
||||||
|
Shawn Salat <31082405+ThinkSalat@users.noreply.github.com> - 1 commits
|
||||||
|
Shreya Roy <shreyaroy.2604@gmail.com> - 1 commits
|
||||||
|
Singebob <jeremy.chauvin@systeme-u.fr> - 1 commits
|
||||||
|
Smexhy <roman.bartik@icloud.com> - 1 commits
|
||||||
|
Stavros Kois <47820033+stavros-k@users.noreply.github.com> - 1 commits
|
||||||
|
Steffen Schmidt <service.github@nocer.net> - 1 commits
|
||||||
|
Steven Kast <steven.m.kast@gmail.com> - 1 commits
|
||||||
|
Xert <xertdev@gmail.com> - 1 commits
|
||||||
|
allozavrr <razviyarrr@gmail.com> - 1 commits
|
||||||
|
baifengheixi <98794233+baifengheixi@users.noreply.github.com> - 1 commits
|
||||||
|
deepsource-io[bot] <deepsource-io[bot]@users.noreply.github.com> - 1 commits
|
||||||
|
dr460nf1r3 <njcrypted@protonmail.com> - 1 commits
|
||||||
|
flechaig <flechaig@users.noreply.github.com> - 1 commits
|
||||||
|
huangshaohuai <huangshaohuai@163.com> - 1 commits
|
||||||
|
icy-comet <50461557+icy-comet@users.noreply.github.com> - 1 commits
|
||||||
|
imlonghao <github@esd.cc> - 1 commits
|
||||||
|
jnach <33467747+jnach@users.noreply.github.com> - 1 commits
|
||||||
|
jrobles98 <jose98_21@hotmail.com> - 1 commits
|
||||||
|
kxenox <floriandel@msn.com> - 1 commits
|
||||||
|
laker j.v <la@laker.gay> - 1 commits
|
||||||
|
markxoe <mark@oude-elberink.de> - 1 commits
|
||||||
|
pablomalo <paul.gouin50@gmail.com> - 1 commits
|
||||||
|
poisonadder7 <github.com@loginz.uk> - 1 commits
|
||||||
|
rtm516 <ryantmilner@hotmail.co.uk> - 1 commits
|
||||||
|
soaibsafi <soaib.safi@gmail.com> - 1 commits
|
||||||
|
ssrangisetti <46807508+ssrangisetti@users.noreply.github.com> - 1 commits
|
||||||
|
ssrangisetti <ssrangisetti@protonmail.com> - 1 commits
|
||||||
|
sur1v <gsuriv@gmail.com> - 1 commits
|
||||||
|
tazboyz16 <tazboyz_16@yahoo.com> - 1 commits
|
||||||
|
zcq100 <zcq100@gmail.com> - 1 commits
|
||||||
|
Ángel Fernández Sánchez <angelfx19@gmail.com> - 1 commits
|
||||||
|
Al Saleh <alayham@alayham.com> - 2 commits
|
||||||
|
Alejandro Pinar Ruiz <37040888+pinarruiz@users.noreply.github.com> - 2 commits
|
||||||
|
Alessandro Del Prete <alessandro.delprete@gmail.com> - 2 commits
|
||||||
|
Alexander Mnich <56564725+a-mnich@users.noreply.github.com> - 2 commits
|
||||||
|
BOZG <sr@bozg.se> - 2 commits
|
||||||
|
Brendan O'Leary <boleary@gitlab.com> - 2 commits
|
||||||
|
CHAIYEON CHO <stoutcho21@gmail.com> - 2 commits
|
||||||
|
Dan Gilbert <ddg@daentech.co.uk> - 2 commits
|
||||||
|
Denis Savosin <dsavosin@at-consulting.ru> - 2 commits
|
||||||
|
Mihai <31653632+z3r0l1nk@users.noreply.github.com> - 2 commits
|
||||||
|
Ruben Silva <rubensilva945@gmail.com> - 2 commits
|
||||||
|
Tammes Burghard <kde@kuchenmampfer.de> - 2 commits
|
||||||
|
Thomas Dissert <dissertthomas@gmail.com> - 2 commits
|
||||||
|
cauterize <cauterize@programmer.net> - 2 commits
|
||||||
|
hockeymikey <hockeymikey@hockeymikey.com> - 2 commits
|
||||||
|
itsmejoeeey <9375730+itsmejoeeey@users.noreply.github.com> - 2 commits
|
||||||
|
k073l <21180271+k073l@users.noreply.github.com> - 2 commits
|
||||||
|
kt-alt <kiettrang@hotmail.com> - 2 commits
|
||||||
|
liss-bot <87835202+liss-bot@users.noreply.github.com> - 2 commits
|
||||||
|
mmihaly <mmihaly@gmail.com> - 2 commits
|
||||||
|
patrickheeney <patrickheeney@gmail.com> - 2 commits
|
||||||
|
rokiden <cheto@bk.ru> - 2 commits
|
||||||
|
root <root@dashy-dev.alayham.com> - 2 commits
|
||||||
|
rtm516 <rtm516@users.noreply.github.com> - 2 commits
|
||||||
|
z3r0l1nk <stroescu.mihai@gmail.com> - 2 commits
|
||||||
|
zcq100 <m@zcq100.com> - 2 commits
|
||||||
|
ᗪєνιη ᗷυнʟ <onedr0p@users.noreply.github.com> - 2 commits
|
||||||
|
Alucarddelta <dreyer.brent@gmail.com> - 3 commits
|
||||||
|
Berk Sümbül <mail@berksmbl.com> - 3 commits
|
||||||
|
Tuzi555 <jakub.tuzar@gmail.com> - 3 commits
|
||||||
|
Walkx <71191962+walkxcode@users.noreply.github.com> - 3 commits
|
||||||
|
aterox <kenneth@kenneth.church> - 3 commits
|
||||||
|
bogyeong <boggyhint@gmail.com> - 3 commits
|
||||||
|
stanly0726 <37040069+stanly0726@users.noreply.github.com> - 3 commits
|
||||||
|
Andreas Violaris <48277853+aviolaris@users.noreply.github.com> - 4 commits
|
||||||
|
David Alasow <davidalasow@gmail.com> - 4 commits
|
||||||
|
DimitriDR <dimitridroeck@gmail.com> - 4 commits
|
||||||
|
Lissy93 <alicia@omg.lol> - 4 commits
|
||||||
|
Niklas Zabel <nzabel@Mini-von-Niklas.fritz.box> - 4 commits
|
||||||
|
Rémy GRANDIN <remy.gr@ndin.fr> - 4 commits
|
||||||
|
Todd E Johnson <todd@toddejohnson.net> - 4 commits
|
||||||
|
Totto16 <tobiausgais@gmail.com> - 4 commits
|
||||||
|
Walkx <walkxnl@gmail.com> - 4 commits
|
||||||
|
wozboz <philip@iuno.tech> - 4 commits
|
||||||
|
Alberto Caravaca <3170731+albcp@users.noreply.github.com> - 5 commits
|
||||||
|
Alicie <gh@d0h.co> - 5 commits
|
||||||
|
Benjamin Montgomery <bmontgom@montynet.org> - 5 commits
|
||||||
|
Chris Nielsen <nielsen.chris@gmail.com> - 5 commits
|
||||||
|
UrekD <urek.denis@gmail.com> - 5 commits
|
||||||
|
Erik Vroon <erik.vroon22@gmail.com> - 6 commits
|
||||||
|
Jammo2k5 <jammo2k5@hotmail.co.uk> - 6 commits
|
||||||
|
Leonardo Covarrubias <leos@leocov.com> - 6 commits
|
||||||
|
Magnus Sundström <kmvsundstrom@gmail.com> - 6 commits
|
||||||
|
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> - 6 commits
|
||||||
|
kristian <kristianbrasel@gmail.com> - 6 commits
|
||||||
|
liss-bot <liss-bot@users.noreply.github.com> - 6 commits
|
||||||
|
Josua Blejeru <josua@blejeru.com> - 8 commits
|
||||||
|
Tobias <tobias.meier109@gmail.com> - 8 commits
|
||||||
|
Jimmeh <jimmeh@gmail.com> - 9 commits
|
||||||
|
Kashif Sohail <kashif.ezone@gmail.com> - 9 commits
|
||||||
|
Liss-Bot <liss-bot@d0h.co> - 11 commits
|
||||||
|
Tobias <96661824+CrazyWolf13@users.noreply.github.com> - 12 commits
|
||||||
|
Alejandro Pinar Ruiz <alejandropinarruiz@gmail.com> - 14 commits
|
||||||
|
Alicia Sykes <=> - 16 commits
|
||||||
|
github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> - 16 commits
|
||||||
|
snyk-bot <snyk-bot@users.noreply.github.com> - 18 commits
|
||||||
|
Matthias Bilger <matthias@bilger.info> - 19 commits
|
||||||
|
aterox <church.kennetha@gmail.com> - 19 commits
|
||||||
|
EVOTk <45015615+EVOTk@users.noreply.github.com> - 24 commits
|
||||||
|
snyk-bot <snyk-bot@snyk.io> - 24 commits
|
||||||
|
Marcell Fülöp <marekful@protonmail.com> - 27 commits
|
||||||
|
Alicia Sykes <alicia@futr.ai> - 28 commits
|
||||||
|
Lissy93 <gh@d0h.co> - 78 commits
|
||||||
|
repo-visualizer <repo-visualizer@users.noreply.github.com> - 128 commits
|
||||||
|
Lissy93 <Lissy93@users.noreply.github.com> - 222 commits
|
||||||
|
Alicia Bot <87835202+liss-bot@users.noreply.github.com> - 240 commits
|
||||||
|
liss-bot <liss-bot@d0h.co> - 244 commits
|
||||||
|
Alicia Sykes <gh@d0h.co> - 439 commits
|
||||||
|
Alicia Sykes <alicia@omg.lol> - 471 commits
|
||||||
|
Alicia Sykes <sykes.alicia@gmail.com> - 1488 commits
|
|
@ -0,0 +1,673 @@
|
||||||
|
# Changelog
|
||||||
|
|
||||||
|
## ✨ 2.1.1 Improvements [PR #775](https://github.com/Lissy93/dashy/pull/775)
|
||||||
|
- Stop status checks when item destroyed
|
||||||
|
- #767 by @marekful
|
||||||
|
- Add Elizabeth + non-underground lines to TFL widget
|
||||||
|
- #766 by @dougaldhub
|
||||||
|
- Ensure first SSL certificate check finished before second
|
||||||
|
- #760 by @marekful
|
||||||
|
- Huge improvment to the way widgets are defined
|
||||||
|
- #758 by @patrickheeney
|
||||||
|
- Update APOD widget to use https://apod.as93.net
|
||||||
|
- #745 by @k073l
|
||||||
|
- Small docs update
|
||||||
|
- #741 by @markusdd
|
||||||
|
- A set of awesome NextCloud widgets
|
||||||
|
- #740 by @marekful
|
||||||
|
- Option to show / hide detailed info for StatPing widget
|
||||||
|
- #714 by @marekful
|
||||||
|
- Korean translations
|
||||||
|
- #711 by @boggy-cs
|
||||||
|
- Small docs update
|
||||||
|
- #705 by @pablomalo
|
||||||
|
|
||||||
|
## ✨ 2.0.9 Adds Multi-Page Support [PR #685](https://github.com/Lissy93/dashy/pull/685)
|
||||||
|
- Adds Widgets for AdGuard
|
||||||
|
|
||||||
|
## ✨ 2.0.9 Adds Multi-Page Support [PR #663](https://github.com/Lissy93/dashy/pull/663)
|
||||||
|
- Fix KeyCloak API URL (#564)
|
||||||
|
- Fix guest has config access (#590)
|
||||||
|
- Fix collapsible content in multi-page support (#626)
|
||||||
|
- Fix layout and item size buttons ( #629)
|
||||||
|
- Refactor make request in RSS widget (#632)
|
||||||
|
- Fix material-design-icons header in schema (#640)
|
||||||
|
- Add option to hide seconds in clock widget (#644)
|
||||||
|
- Fix pageInfo not being read in router (#645)
|
||||||
|
- Fix startingView not honored (#646)
|
||||||
|
- Fix Status Check default (#651)
|
||||||
|
- Add option to hide image in SportsScores Widget (#654)
|
||||||
|
- Add Adventure-basic theme (#655)
|
||||||
|
- Write docs for sub-items (#657)
|
||||||
|
- Add Font-Awesome displaying as square to troubleshooting guide (#659)
|
||||||
|
- Show expand / collapse in context menu (#660)
|
||||||
|
- Only deploy new release when relevant files have changed
|
||||||
|
|
||||||
|
## ✨ 2.0.8 Adds Multi-Page Support [PR #617](https://github.com/Lissy93/dashy/pull/617)
|
||||||
|
- Adds support for multiple pages per-dashboard
|
||||||
|
- Adds new attribute at root of main config file: `pages`
|
||||||
|
- Updates router and nav-bar to automatically create paths for both local and remote configs
|
||||||
|
|
||||||
|
## ⚡️ 2.0.7 Improves handling of Sections and Items [PR #595](https://github.com/Lissy93/dashy/pull/595)
|
||||||
|
- Adds functionality for sub-items / item-groups
|
||||||
|
- Creates an item mixin, for reusing functionality
|
||||||
|
- Item width calculated based on parent section width
|
||||||
|
- Improved mobile support, long-press for right-click
|
||||||
|
- Adds 2 new themes (`lissy` and `charry-blossom`)
|
||||||
|
- Adds 2 new widgets (`mullvad-status`, and `blacklist-check`)
|
||||||
|
|
||||||
|
## 🐛 2.0.6 Fixes user requested issues [PR #557](https://github.com/Lissy93/dashy/pull/557)
|
||||||
|
- Allows middle click open new tab, Re: #492
|
||||||
|
- Implements Max redirects for status checks, Re: #494
|
||||||
|
- Adds Gitpod config for cloud-ready IDE, Re: #497
|
||||||
|
- Adss new screenshots to showcase, Re: #505
|
||||||
|
- Fixes excess space below footer, Re: #522
|
||||||
|
- Allows iframe content to be viewed full-screen, Re: #524
|
||||||
|
- Fixes Glances widgets with Authorization headers, Re: #546
|
||||||
|
- Adds target attribute to nav links, Re: #552
|
||||||
|
- Removes fixed max-width on wide-screens, Re: #554
|
||||||
|
- Adds missing type attribute to external CSS, Re: #560
|
||||||
|
- Updates path to Keycloak API, Re: #564
|
||||||
|
- Fixes link to @walkxhub homelab icons, Re #568
|
||||||
|
- Fixes local image path on sub-page, Re: #570
|
||||||
|
- Adds typecheck on edit item tags, Re: #575
|
||||||
|
- Fixes item size in config not honored, Re: #576
|
||||||
|
|
||||||
|
## ✨ 2.0.5 - Bug Fixes and a few New Features
|
||||||
|
|
||||||
|
#### Partially revert 2.0.4, fixing several issues caused by `conf.yml` not being loaded at startup.
|
||||||
|
This change requires a rebuild of the application when several options under `appConfig` are changed.
|
||||||
|
Fixes #544 #555
|
||||||
|
|
||||||
|
#### Several other changes since 2.0.4, including:
|
||||||
|
The `Add New Section` button on the UI editor now displays if no sections are present. #536
|
||||||
|
When using SSL, the server can now redirect from HTTP to HTTPS. This is enabled by default when using SSL. #538
|
||||||
|
Section context menus are now accessible on mobile, and will no longer clip off the screen. #541
|
||||||
|
Italian translations have been added. #556
|
||||||
|
|
||||||
|
## ✨ 2.0.4 - Dynamic Config Loading [PR #528](https://github.com/Lissy93/dashy/pull/528)
|
||||||
|
- `conf.yml` is now loaded dynamically and the app now only needs a browser refresh on config change, not a full rebuild!
|
||||||
|
|
||||||
|
## 🐛 2.0.3 - Bug Fixes [PR #488](https://github.com/Lissy93/dashy/pull/488)
|
||||||
|
- Press enter to submit login form (Re: #483)
|
||||||
|
- Allow disabling write to local storage and disk (Re: #485)
|
||||||
|
- Fix malformed YAML from export config (Re: #482)
|
||||||
|
- Allow global option for useProxy (Re: #486)
|
||||||
|
- Look into arrow key navigation error (Re: #463)
|
||||||
|
- Disallow displaying config (Re: #455)
|
||||||
|
- Round values in Glances Alerts widget (Re: #454)
|
||||||
|
- Create a CPU temp widget (Re: #452)
|
||||||
|
- Add to docs: Keycloak in Kubernetes (Re: #479)
|
||||||
|
- Add a widget for displaying images (Re: #487)
|
||||||
|
|
||||||
|
## ⬆️ 2.0.2 - Dependency Updates [PR #471](https://github.com/Lissy93/dashy/pull/471)
|
||||||
|
- Updates Alpine version for main Dockerfile
|
||||||
|
- Updates node_modules to latest stable versions
|
||||||
|
|
||||||
|
## 🐛 2.0.1 - Fixes Section Height [PR #462](https://github.com/Lissy93/dashy/pull/462)
|
||||||
|
- Adds `cutToHeight` to config schema (Re: #461)
|
||||||
|
- Removes the full-height CSS from colorful theme
|
||||||
|
- Improved config validation warnings in JSON editor
|
||||||
|
- Removes empty Keycloak block from appConfig editor
|
||||||
|
- Adds typechecking to search and clear search for Safari
|
||||||
|
|
||||||
|
## ⚡️ 2.0.0 - Small Fixes and Docker Multi-Arch Build [PR #451](https://github.com/Lissy93/dashy/pull/451)
|
||||||
|
- Fixes full-height sections for mobile and Safari (Re: #432, #442)
|
||||||
|
- Fixes empty section visible in search (Re: #447)
|
||||||
|
- Fixes numbers omited from tag names (Re: #430)
|
||||||
|
- Option for custom status code in status check (Re: #456, #448)
|
||||||
|
- Adds @stuu3k's dashboard to showcase (Re: #446)
|
||||||
|
- Switches recover and death count in Covid widget (Re: #148)
|
||||||
|
- Improved contrast in light material theme
|
||||||
|
- Adds new script to lint, test, build and publish a multi-architecture Docker image to various registries
|
||||||
|
|
||||||
|
## 💄 1.9.9 - Minor UI + Docs Updates [PR #431](https://github.com/Lissy93/dashy/pull/431)
|
||||||
|
- Improved theme support for widgets
|
||||||
|
- Better widget layout in Workspace and Minimal views
|
||||||
|
- Updates lots of the docs
|
||||||
|
|
||||||
|
## ✨ 1.9.8 - More Widgets and Widget Improvements [PR #425](https://github.com/Lissy93/dashy/pull/425)
|
||||||
|
- Fixes several minor widget issues raised by users
|
||||||
|
- Adds several new widgets, for monitoring system
|
||||||
|
- Better widget data requests and error handling
|
||||||
|
- Implements widget support into Workspace view
|
||||||
|
|
||||||
|
## 🐛 1.9.7 - Minor UI Editor Bug fixes [PR #416](https://github.com/Lissy93/dashy/pull/416)
|
||||||
|
- Fixes unable to edit item bug (#415)
|
||||||
|
- Fixes unable to add new app bug (#390)
|
||||||
|
- Fixes nav links visibility (#389)
|
||||||
|
|
||||||
|
## ⚡️ 1.9.6 - Adds Proxy Support for Widget Requests [PR #392](https://github.com/Lissy93/dashy/pull/392)
|
||||||
|
- Refactors widget mixin to include data requests, so that code can be shared between widgets
|
||||||
|
- Adds a Node endpoint for proxying requests server-side, used for APIs that are not CORS enabled
|
||||||
|
- Adds option to config file for user to force proxying of requests
|
||||||
|
- Writes a Netlify cloud function to support proxying when the app is hosted on Netlify
|
||||||
|
|
||||||
|
## 🐛 1.9.5 - Bug fixes and Minor Improvements [PR #388](https://github.com/Lissy93/dashy/pull/388)
|
||||||
|
- Adds icon.horse to supported favicon APIs
|
||||||
|
- Fixes tile move bug, Re: #366
|
||||||
|
- Fixes save items without title bug, Re: #377
|
||||||
|
|
||||||
|
## ✨ 1.9.4 - Widget Support [PR #382](https://github.com/Lissy93/dashy/pull/382)
|
||||||
|
- Adds support for dynamic content, through widgets
|
||||||
|
- Adds 30+ pre-built widgets for general info and self-hosted services
|
||||||
|
- Writes docs on widget usage
|
||||||
|
|
||||||
|
## ⚡️ 1.9.2 - Native SSL Support + Performance Improvements [PR #326](https://github.com/Lissy93/dashy/pull/326)
|
||||||
|
- Updates the server to use Express, removing serve-static, connect and body-parser
|
||||||
|
- Adds native support for passing in self-signed SSL certificates and updates docs
|
||||||
|
- Updates router to lazy-load additional pages (minimal, workspace, etc)
|
||||||
|
- Changes default favicon API to allesedv, since faviconkit is down, and adds basic fallback
|
||||||
|
- Updates GH action build scripts to fallback on context token when running on fork
|
||||||
|
|
||||||
|
## 💄 1.9.1 - Editor and Theming Fixes and Improvements [PR #319](https://github.com/Lissy93/dashy/pull/319)
|
||||||
|
- Bug fixes for interactive editor: #310, #311, #312
|
||||||
|
- Adds option to modify text font through the UI
|
||||||
|
- Adds two new themes: One Dark and Adventure
|
||||||
|
- Theming stylesheet refactor, better inheritance
|
||||||
|
|
||||||
|
## 🐳 1.9.0 - Alpha of Dashy-Lite Docker Container [PR #306](https://github.com/Lissy93/dashy/pull/306)
|
||||||
|
- Create an Alpine-based container, that serves the built app up with plain NGINX, instead of Node.
|
||||||
|
- This is much lighter, but doesn't currently support any of the server-side actions (like status-checks, and writing changes to disk)
|
||||||
|
|
||||||
|
## ✨ 1.8.9 - All New Interactive Config Editor [PR #298](https://github.com/Lissy93/dashy/pull/298)
|
||||||
|
- Builds a new UI-based config editor
|
||||||
|
- Support for sections, items, app config and page info
|
||||||
|
- Live preview, and undoing of local changes
|
||||||
|
- Export config or write changes to disk through UI
|
||||||
|
|
||||||
|
## ✨ 1.8.8 - Improved Item Targets [PR #292](https://github.com/Lissy93/dashy/pull/292)
|
||||||
|
- Adds support for `_top` and `_parent` anchor targets on items, Re: #289
|
||||||
|
- Adds `appConfig.defaultOpeningMethod` option to specify default target
|
||||||
|
- Adds new icons to show items opening method on hover
|
||||||
|
- Refactors target checking, updates item target docs and schema
|
||||||
|
|
||||||
|
## ⚡️ 1.8.7 - Bug Fixes and Improvements [PR #273](https://github.com/Lissy93/dashy/pull/273)
|
||||||
|
- Clean URLs without the hash, now using history-mode routing
|
||||||
|
- New initial main example conf.yml
|
||||||
|
- Minor UI style updates and fixes
|
||||||
|
- Support for single section view
|
||||||
|
- A new theme, soft-glow
|
||||||
|
- Container security in management docs, and other things
|
||||||
|
- Bug fixes, including missing Firefox favicon and fix custom icon paths with base_url
|
||||||
|
|
||||||
|
## ⚡️ 1.8.6 - Implementation of VueX [PR: #271](https://github.com/Lissy93/dashy/pull/271)
|
||||||
|
- New state management pattern, which should lead to a more organized code base long term, and will also make building out the new UI editor significantly easier to do in a clean and reliable way
|
||||||
|
|
||||||
|
## 💄 1.8.5 - Lots of Requested UI Improvements [PR #261](https://github.com/Lissy93/dashy/pull/261)
|
||||||
|
- Adds an option for landing URL in workspace, Re: #255
|
||||||
|
- Switches to a new API for generative icons, Re: #163
|
||||||
|
- Adds new tab functionality to Workspace, Re: #254
|
||||||
|
- Remove CSS validation in style editor, Re: #259
|
||||||
|
- Cap item description at 2 lines, Re: #250
|
||||||
|
- Adds native support for common homelab icons, using dashboard-icons
|
||||||
|
- Improves general responsiveness of home page sections positioning
|
||||||
|
- Updates, fixes and adds a bunch of actions for easier repo management
|
||||||
|
|
||||||
|
## ✨ 1.8.4 - Custom Error Pages [PR #257](https://github.com/Lissy93/dashy/pull/257)
|
||||||
|
- Creates a 404 Not Found page
|
||||||
|
- Routes any missing views to the 404 page
|
||||||
|
|
||||||
|
## ⚡️ 1.8.3 - Improved UX for Initial Load [PR #238](https://github.com/Lissy93/dashy/pull/238)
|
||||||
|
- Removes the old splash screen
|
||||||
|
- Adds placeholder in the HTML index, which will usually be visible on initial load
|
||||||
|
- Show progress bar on route switcher
|
||||||
|
|
||||||
|
## ✨ 1.8.2 - Serverless Functions for Netlify Instances [PR #235](https://github.com/Lissy93/dashy/pull/235)
|
||||||
|
- Previously when Dashy was deployed as a static site to Netlify, it was not possible to use several features, which required server-side code
|
||||||
|
- This PR adds serverless cloud functions to provide most of this functionality
|
||||||
|
|
||||||
|
## 🩹 1.8.1 - Additional Languages, Bug Fix, and more [PR #234](https://github.com/Lissy93/dashy/pull/234)
|
||||||
|
- Merges 5 additional languages
|
||||||
|
- Adds RickyCZ's dashboard to showcase
|
||||||
|
- Fixes #323, and improves status indicator tooltip
|
||||||
|
- Define constants for endpoints
|
||||||
|
- Updates management, translations and readme docs
|
||||||
|
|
||||||
|
## ⚡️ 1.7.7 - Improved Error Handling [PR #226](https://github.com/Lissy93/dashy/pull/226)
|
||||||
|
- Errors can be viewed via the UI (Config menu --> App Info)
|
||||||
|
- Service workers should be disabled by default
|
||||||
|
- Also renames actions to be easier to maintain
|
||||||
|
- Updates docs to include release schedule + merge strategy
|
||||||
|
|
||||||
|
## ✨ 1.7.6 - Adds Multi-Search Support with Bangs [PR #224](https://github.com/Lissy93/dashy/pull/224)
|
||||||
|
- Adds option for user to add custom search bangs, in order to specify search engine/ target app. Re: #206
|
||||||
|
|
||||||
|
## 🎨 1.7.5 - Improved Language Detection & UI [PR #223](https://github.com/Lissy93/dashy/pull/223)
|
||||||
|
- Makes the auto language detection algo smarter
|
||||||
|
- Improves responsiveness for the language selector form
|
||||||
|
|
||||||
|
## 🌐 1.7.4 - Adds Spanish Translations [PR #222](https://github.com/Lissy93/dashy/pull/222)
|
||||||
|
- Adds Spanish language file, contributed by @lu4t
|
||||||
|
|
||||||
|
## 👷 1.7.3 - CI with GH Actions [PR #212](https://github.com/Lissy93/dashy/pull/212)
|
||||||
|
- Adds a series of GH actions for repository maintenance and administration
|
||||||
|
- Auto-labels PR and issues, adds helpful info to PRs based on files changed
|
||||||
|
- Lints, tests, builds and deploys the app when PR submitted
|
||||||
|
- Checks app size, dependencies, security, accessibility etc when PR submitted
|
||||||
|
- Closes incomplete, stale or spammy issues and leaves a comment
|
||||||
|
|
||||||
|
## ✨ 1.7.2 - Item Sort Options [PR #203](https://github.com/Lissy93/dashy/pull/203)
|
||||||
|
- Adds option for user to specify `sortBy` to order items within a section
|
||||||
|
- Can sort by last clicked, most used, alphabetically and more
|
||||||
|
- And fixes UI of the item tooltip and, if specified, will show Provider in the tooltip
|
||||||
|
- Also improves error logging and console warning message
|
||||||
|
|
||||||
|
## 🐛 1.7.1 - Lots of Tiny Fixes and Improvements [PR #200](https://github.com/Lissy93/dashy/pull/201)
|
||||||
|
- Removes background in console art
|
||||||
|
- Updates auto environmental variables
|
||||||
|
- Icon image assets max height Force same Icon/Item Height #200
|
||||||
|
- Adds an action to close spammy issues
|
||||||
|
- Adds option to enable SRI integrity, plus refactos PWA into defaults
|
||||||
|
- Updates privacy and security docs
|
||||||
|
- Adds option for different favicon API for each app [FEATURE_REQUEST] Allow using different faviconApi for each items #196
|
||||||
|
- Fixes loading of local SVG icons #199
|
||||||
|
|
||||||
|
## 🍻 1.7.0 - Documentation Website [PR #190](https://github.com/Lissy93/dashy/pull/190)
|
||||||
|
- Builds a quick website to host the docs. No code changes, but prepares for V1.7 release
|
||||||
|
|
||||||
|
## ✨ 1.6.9 - Web Search Feature [PR #185](https://github.com/Lissy93/dashy/pull/185)
|
||||||
|
- Adds ability to search the web directly from Dashy by pressing enter on the search bar
|
||||||
|
- Adds configuration options, for setting default search engine, opening method and disabling
|
||||||
|
- Adds text under search bar, implements into minimal view also
|
||||||
|
|
||||||
|
## ⚡️ 1.6.8 - Improved Loading Experience [PR #183](https://github.com/Lissy93/dashy/pull/183)
|
||||||
|
- During app initialization, show the build progress and status message
|
||||||
|
- While requests are being made, show loader at top of screen
|
||||||
|
- Also adds some UI improvements to Workspace view
|
||||||
|
|
||||||
|
## ⚡️ 1.6.7 - Option for non-SSL status checks plus minor things [PR #182](https://github.com/Lissy93/dashy/pull/182)
|
||||||
|
- Adds an option for user to use status checks with non-HTTPS services, Re: #181
|
||||||
|
- Updates the .env template, plus the variables used in the server
|
||||||
|
- Uses the v-cloak to hide text before it's finished loading
|
||||||
|
- Fixed the parsing of the update-checker during build
|
||||||
|
|
||||||
|
## ⚡️ 1.6.6 - Improved Search & Shortcuts [PR #175](https://github.com/Lissy93/dashy/pull/175)
|
||||||
|
- Refactors the search algorithm to improve performance and code reusability
|
||||||
|
- Updates search to ignore case, special characters and minor-typos
|
||||||
|
- Adds the option for user to specify tags, which can be used for searching
|
||||||
|
|
||||||
|
## ✨ 1.6.5 - Adds support for Secure Authentication using Keycloak [PR #174](https://github.com/Lissy93/dashy/pull/174)
|
||||||
|
- Major restructure of auth config
|
||||||
|
- Implements keycloak support, adds docs and updates schema
|
||||||
|
|
||||||
|
## ✨ 1.6.4 - Adds functionality for Granular Auth Control [PR #171](https://github.com/Lissy93/dashy/pull/171)
|
||||||
|
- Enables sections to be visible for all users except for those specified
|
||||||
|
- Enables sections to be hidden from all users except for those specified
|
||||||
|
- Enables sections to be hidden from guests, but visible to all authenticated users
|
||||||
|
|
||||||
|
## ⚡️ 1.6.3 - Dependency and Build File Updates [PR #168](https://github.com/Lissy93/dashy/pull/168)
|
||||||
|
- Removes any dependencies which are not 100% essential
|
||||||
|
- Moves packages that are only used for building into devDependencies
|
||||||
|
- Updates dependencies to latest version
|
||||||
|
- Adds a .dockerignore, so that non-essential files are not included in the container
|
||||||
|
- Updates deployment config files for Netlify, Heroku and GH actions
|
||||||
|
- Made a brand new bug-report template, with input fields and validation!
|
||||||
|
|
||||||
|
## ✨ 1.6.2 - Support for Guest Access [PR #167](https://github.com/Lissy93/dashy/pull/167)
|
||||||
|
- Adds functionality for optional read-only guest access to dashboards with authentication
|
||||||
|
- Can be enabled by setting `appConfig.enableGuestAccess: true`
|
||||||
|
|
||||||
|
## 💄 1.6.1 - Adds new Theme [PR #166](https://github.com/Lissy93/dashy/issues/166)
|
||||||
|
- Adds Dashy theme, for use in the dev dashboard
|
||||||
|
|
||||||
|
## ✨ 1.5.9 - New Minimal/ Startpage View [PR #155](https://github.com/Lissy93/dashy/issues/155)
|
||||||
|
- Adds a new view, called minimal view, designed to be like a light-weight startpage
|
||||||
|
- Implemented all the required features (filtering, opening methods, icons, etc) into minimal view
|
||||||
|
- Adds `appConfig.startingView` into schema, for specifying the initial default view to be loaded
|
||||||
|
|
||||||
|
## ✨ 1.5.8 - Multi-Tasking Support in Workspace View [PR #146](https://github.com/Lissy93/dashy/pull/146)
|
||||||
|
- Adds option to keep launched apps open in the background, to reduce friction when switching between websites, Re: #144
|
||||||
|
- This can be enabled by setting `appConfig.enableMultiTasking: true`
|
||||||
|
- Note that having many apps opened simultaneously, will have an impact on performance
|
||||||
|
|
||||||
|
## ✨ 1.5.7 - Adds Support for Material Design Icons [PR #141](https://github.com/Lissy93/dashy/pull/141)
|
||||||
|
- Enables user to use any icon from [materialdesignicons.com](https://dev.materialdesignicons.com/icons), Re: #139
|
||||||
|
- Also adds support for [simpleicons.org](https://simpleicons.org/)
|
||||||
|
- Assets only loaded when needed
|
||||||
|
- Adds docs for using MDI icons
|
||||||
|
|
||||||
|
## ⚡️ 1.5.6 - Refactor + Couple of small things [PR #135](https://github.com/Lissy93/dashy/pull/135)
|
||||||
|
- The main Dockerfile now uses yarn.lock instead of package-lock.json
|
||||||
|
- Adds a check to verify password is not empty in cloud backup screen
|
||||||
|
- Improves responsiveness of config modals for mobile devices
|
||||||
|
- Enables the user to use their own self-hosted Sentry instance
|
||||||
|
- Removes the View Config tab of the Config menu, as not needed
|
||||||
|
- Updates and fixes some typos in the readme
|
||||||
|
|
||||||
|
## 🌐 1.5.5 - Adds Missing Translations + Small UI Issues [PR #129](https://github.com/Lissy93/dashy/pull/129)
|
||||||
|
- Adds missing translations to several UI elements, Re: #126
|
||||||
|
- Fixes login translations not being picked up on page load, Re: #127
|
||||||
|
- Fixes small text overflow glitch in config icon, Re: #123
|
||||||
|
- Several small UI improvements: height of config editor, scrollbar on theme dropdown, page height, white-on-white on material theme, etc
|
||||||
|
- Adds an action to auto-assign reviewer based on ./.github/CODEOWNERS file
|
||||||
|
|
||||||
|
## 🐳 1.5.4 - Docker ARM Support [PR #122](https://github.com/Lissy93/dashy/pull/122)
|
||||||
|
- Adds a Dockerfile for `arm64v8` and `arm32v7`, to support Raspberry Pi and other modern ARM-based devices
|
||||||
|
- Sets up automated workflow to publish ARM containers to DockerHub after every new release
|
||||||
|
- Adds documentation for running Dashy on RPi/ ARM-based devices, Re: #117
|
||||||
|
|
||||||
|
## 🩹 1.5.3 - UI Quick Fix [PR #121](https://github.com/Lissy93/dashy/pull/121)
|
||||||
|
- Downgrades and pins vue-material-tabs to 0.1.5, to prevent breaking changes. Fixes #118 p1
|
||||||
|
- Sets auto-width for theme selector, so text doesn't wrap for long theme names. Fixes #119
|
||||||
|
- Uses flex layout for config menu, so note doesn't overlap menu on small screens. Fixes #118 p2
|
||||||
|
|
||||||
|
## 🌐 1.5.2 - Adds Dutch Translations [PR #120](https://github.com/Lissy93/dashy/pull/120)
|
||||||
|
- Dutch language support, contributed by @evroon
|
||||||
|
|
||||||
|
## 🩹 1.5.1 - UI Quick Fix [PR #116](https://github.com/Lissy93/dashy/pull/116)
|
||||||
|
- Uses min-max width parent layout, to prevent longer languages (e.g. French) text overflow. Fixes #115
|
||||||
|
|
||||||
|
## 🔒 1.5.0 - Improve Robustness of Auth [PR #113](https://github.com/Lissy93/dashy/pull/113)
|
||||||
|
- Use both username + password for generating token, so that a change in either will log the user out
|
||||||
|
- Prevent privilege escalation by disallowing a user from modifying their user type through the UI
|
||||||
|
- Improve the isAuthenticated check, by taking account of empty users array
|
||||||
|
|
||||||
|
## ✨ 1.4.8 - Optional Crash Reports [PR #112](https://github.com/Lissy93/dashy/pull/112)
|
||||||
|
- Adds an optional, off by default method of getting crash reports
|
||||||
|
- This can be enabled in `appConfig.enableErrorReporting`, and will not be used at all unless explicitly activated by user
|
||||||
|
- This is needed for when a user raises a bug which is hard to fix
|
||||||
|
- Also improves robustness of config accumulator, don't throw error when config is missing
|
||||||
|
- Adds Privacy & Security docs
|
||||||
|
|
||||||
|
## ♻️ 1.4.7 - Refactor [PR #110](https://github.com/Lissy93/dashy/pull/110)
|
||||||
|
- Moves cloud sync dialog into the config menu, and removes icon on homepage
|
||||||
|
- Fixes typo in Default theme name, Re #106
|
||||||
|
- Spell checks readme
|
||||||
|
- Updates the contributor CI action, that generates list of contributors + sponsors
|
||||||
|
|
||||||
|
## 📝 1.4.6 - Documentation Updates [PR #108](https://github.com/Lissy93/dashy/pull/108)
|
||||||
|
- Breaks many of the longer files into several more digestible articles
|
||||||
|
- Writes repo pages including, Security, Code of Conduct, Legal, Updates license
|
||||||
|
- Makes an automatically generated Credits page
|
||||||
|
- Adds a contributing page, with several ways that users can help out
|
||||||
|
- Implements this changelog, as requested in #87
|
||||||
|
|
||||||
|
## 🌐 1.4.5 - Adds German Translations [PR #107](https://github.com/Lissy93/dashy/pull/107)
|
||||||
|
- German language support, contributed by @Niklashere
|
||||||
|
|
||||||
|
## ✨ 1.4.4 - Adds Support for Logo Image [PR #105](https://github.com/Lissy93/dashy/pull/105)
|
||||||
|
- Adds option in config file for user to specify path to an image
|
||||||
|
- If found, will display said image in the header
|
||||||
|
|
||||||
|
## ✨ 1.4.3 - Auto-Checks for Updates [PR #101](https://github.com/Lissy93/dashy/pull/101) and [PR #102](https://github.com/Lissy93/dashy/pull/102)
|
||||||
|
- Write a script to compare current version with git master version
|
||||||
|
- Periodically checks for updates, and displays message to user
|
||||||
|
- Enables user to disable update-checks in the config file
|
||||||
|
- Checks not using vulnerable version on project-build
|
||||||
|
|
||||||
|
## ✨ 1.4.2 - Adds Multi-Language Support [PR #99](https://github.com/Lissy93/dashy/pull/99)
|
||||||
|
- Implements vue-i18n, sets object globally
|
||||||
|
- Extracts all text to a single JSON file
|
||||||
|
- Auto-detects users language, and applies, if availible
|
||||||
|
- Builds a form to let user manually select their language
|
||||||
|
- Lets users language be saved and read from local storage, or config file
|
||||||
|
|
||||||
|
## ✨ 1.4.1 - Adds Support for Custom Key Bindings [PR #94](https://github.com/Lissy93/dashy/pull/94)
|
||||||
|
- Adds new attribute under item for saving numeric key binding
|
||||||
|
- Listens for keypress, and launches corresponding item, if found
|
||||||
|
|
||||||
|
## ✨ 1.4.0 - Builds a Custom Theme Configurator
|
||||||
|
- Adds property to save custom theme variables
|
||||||
|
- Builds UI form, with color pickers, a pallette and popup
|
||||||
|
- Integrates the saving colors, and applying saved colors functionality
|
||||||
|
|
||||||
|
## 🔨 1.3.9 - Enable Custom Styesheet in Docker [PR #92](https://github.com/Lissy93/dashy/pull/92)
|
||||||
|
- Enables the user to pass a custom stylesheet in with Docker
|
||||||
|
- Adds support for 1-Click deployment to Render.com
|
||||||
|
|
||||||
|
## 🌟 1.3.8 - Showcase [#91](https://github.com/Lissy93/dashy/pull/91)
|
||||||
|
- Adds @Shadowking001's screenshot to showcase
|
||||||
|
|
||||||
|
## 🌟 1.3.7 - Showcase [PR #84](https://github.com/Lissy93/dashy/pull/84)
|
||||||
|
- Adds @dtctek's screenshot to showcase
|
||||||
|
|
||||||
|
## ✨ 1.3.6 - Enables User to Hide Unwanted Components [PR #78](https://github.com/Lissy93/dashy/pull/78)
|
||||||
|
- Adds several additional options to the config, allowing the user to hide structural components that they don't need
|
||||||
|
- Including hideHeading, hideNav, hideSearch, hideSettings, hideFooter, hideSplashScreen
|
||||||
|
|
||||||
|
## ✨ 1.3.5 - Adds Support for Emoji Icons [PR #76](https://github.com/Lissy93/dashy/pull/76)
|
||||||
|
- Enables user to use emojis for item and section icons
|
||||||
|
- Adds a handler to convert Unicode, or Shortcode into an Emoji
|
||||||
|
|
||||||
|
## 🌟 1.3.4 - Showcase Addition [PR #75](https://github.com/Lissy93/dashy/pull/75)
|
||||||
|
- Adds @cerealconyogurt's screenshot to the showcase
|
||||||
|
|
||||||
|
## 💄 1.3.3 - UI Improvements [PR #73](https://github.com/Lissy93/dashy/pull/73)
|
||||||
|
- New style of Large item
|
||||||
|
- 2 new color themes
|
||||||
|
- Added CSS variables for search label and footer background
|
||||||
|
- Improves process for auto-checking if font-awesome is needed
|
||||||
|
- Silences non-critical warnings in production build
|
||||||
|
- Adds new optional font-face for cyber punk
|
||||||
|
- Shortens readme, and adds contribute links to showcase
|
||||||
|
|
||||||
|
## ⚡️ 1.3.0 - Custom Headers for Status Check [PR #72](https://github.com/Lissy93/dashy/pull/72)
|
||||||
|
- Enables user to pass custom headers to the status check endpoint
|
||||||
|
- Enables user to use a different URL for the status check request
|
||||||
|
|
||||||
|
## 🌟 1.2.9 - Creates a Showcase Page [PR #68](https://github.com/Lissy93/dashy/pull/68)
|
||||||
|
- Adds a page in the docs for users to share their screenshots of their dashboard
|
||||||
|
|
||||||
|
## ✨ 1.2.8 - Adds Remember-Me Functionality into the Login Form [PR #66](https://github.com/Lissy93/dashy/pull/66)
|
||||||
|
- Adds a dropdown menu in the login form with various time intervals available
|
||||||
|
- Adds appropriate expiry into session storage, in order to keep user logged in for their desired time interval
|
||||||
|
|
||||||
|
## ✨ 1.2.7 - Implements a Right-Click Context Menu [#62](https://github.com/Lissy93/dashy/pull/62)
|
||||||
|
- Built a context menu, showing all item opening methods, on right-click
|
||||||
|
- Made a clickOutside directive, in order to close menu when user clicks away
|
||||||
|
- Adds launching functionality, user can click to launch
|
||||||
|
|
||||||
|
## ⚡️ 1.2.6 - Make Font Assets Local [PR #60](https://github.com/Lissy93/dashy/pull/60)
|
||||||
|
- Downloaded font files to assets
|
||||||
|
- Removed all calls to font CDN, replaced with local calls
|
||||||
|
|
||||||
|
## 🐛 1.2.5 - Small Fixes, and Efficiency Improvements [PR #57](https://github.com/Lissy93/dashy/pull/57)
|
||||||
|
- Adds correct license
|
||||||
|
- Improves service workers, and adds serviceWorkerStatus local storage item
|
||||||
|
- Adds missing statusCheck and statusCheckInterval docs into Configuring.md
|
||||||
|
- Adds an About App page, containing info needed to raise a bug report
|
||||||
|
- Adds TDLR license into main readme
|
||||||
|
- Introduces app versioning
|
||||||
|
- Adds safeguards into ConfigAccumalaror, to prevent error being thrown
|
||||||
|
- Updates PR template
|
||||||
|
- Improved Webpack build experience, with progress bar and completion notification
|
||||||
|
- Adds new and improved icons for layout options
|
||||||
|
- Make the Page Title into a home page link
|
||||||
|
- Adds missing favicon, fixes #55
|
||||||
|
- Adds assets to PWA manifest.json
|
||||||
|
- Documents app commands in readme
|
||||||
|
- Enable passing website as URL param to the workspace
|
||||||
|
- Modified items, so that title text doesn't get shortened,
|
||||||
|
|
||||||
|
## ✨ 1.2.4 - Adds Support for Continuous Status Checking [#52](https://github.com/Lissy93/dashy/pull/52)
|
||||||
|
- Enables user to re-call the status check at a specified interval
|
||||||
|
- Processes interval in ms, and updates the traffic light when required
|
||||||
|
|
||||||
|
## 🐛 1.2.3 - Bug Fix [PR #49](https://github.com/Lissy93/dashy/pull/49)
|
||||||
|
- Removes duplicate Docker env var, fixes #48
|
||||||
|
|
||||||
|
## ✨ 1.2.2 - Better Favicon Support
|
||||||
|
- Enables user to force direct/ local favicon fetching
|
||||||
|
- Adds support for additional favicon API, returning high-res app icons
|
||||||
|
- Adds support for generative icons
|
||||||
|
|
||||||
|
## 🐛 1.2.1 - Bugfix [#44](https://github.com/Lissy93/dashy/pull/44)
|
||||||
|
- Fixes footer positioning on mobile, makes sticky, fixes #42
|
||||||
|
|
||||||
|
## ✨ 1.2.0 - Adds Writing Config to Disk from UI Functionality [PR #43](https://github.com/Lissy93/dashy/pull/43)
|
||||||
|
- Creates a new server endpoint for handling the backing up of a the file
|
||||||
|
- Adds backup existing file functionality
|
||||||
|
- Adds writing new file functionality
|
||||||
|
- Does error checking, testing and adds some security parameters
|
||||||
|
- Adds a radio button in the UI, so user chan choose save method
|
||||||
|
- Process config within the UI, convert to YAML, and write changes to disk
|
||||||
|
|
||||||
|
## 🐛 1.1.8 - Bugfix [#40](https://github.com/Lissy93/dashy/pull/40)
|
||||||
|
- Status check tooltip was not visible in Material themes, raised in issue #39
|
||||||
|
|
||||||
|
## ✨ 1.1.7 - Adds Workspace View [PR #38](https://github.com/Lissy93/dashy/pull/38)
|
||||||
|
- Adds a new route, for the workspace view
|
||||||
|
- Builds the sidebar, which displays the users apps
|
||||||
|
- Loads the app into the workspace's main iframe when clicked
|
||||||
|
- Adds some collapsing functionality, better styles, subtle animations and theme support
|
||||||
|
|
||||||
|
## ✨ 1.1.6 - Implements Status Indicators, and Monitoring Functionality [PR #34](https://github.com/Lissy93/dashy/pull/34)
|
||||||
|
- Wrote a Node endpoint for pinging the users desired services
|
||||||
|
- Added status checking functionality in frontend
|
||||||
|
- Build small traffic-light component to display status of users services
|
||||||
|
- Adds animations, and handles errors
|
||||||
|
- Writes docs, and tests code
|
||||||
|
|
||||||
|
## ✨ 1.1.5 - Adds Authentication / Login Functionality [PR #32](https://github.com/Lissy93/dashy/pull/32)
|
||||||
|
- Enables the user to protect their dashboard behind a login screen
|
||||||
|
- Creates a Authentication handler to manage the hashing of passwords, and generation of a token
|
||||||
|
- Build a quick login form, where user can input username and password
|
||||||
|
- Adds a log out button
|
||||||
|
|
||||||
|
## 💄 1.1.4 - Support for Custom HTML Footer [PR #30](https://github.com/Lissy93/dashy/pull/30)
|
||||||
|
- Enables user to insert structure for the footer defined as HTML
|
||||||
|
|
||||||
|
## 🚀 1.1.3 - Adds Support for 1-Click Cloud Deployments [PR #29](https://github.com/Lissy93/dashy/pull/29)
|
||||||
|
- Support for 1-Click Deploy to Netlify
|
||||||
|
- Support for 1-Click Deploy to Heroku
|
||||||
|
|
||||||
|
## 🔧 1.1.2 - Docker Efficiency Improvements [PR #26](https://github.com/Lissy93/dashy/pull/26)
|
||||||
|
- Writes a Node health check script, and implements into the Docker container
|
||||||
|
- Changes default port in docker-compose, as 8080 is commonly used by other apps
|
||||||
|
- Adds the 1-Click deploy with PWD into the readme
|
||||||
|
- Updates dependencies
|
||||||
|
- Adds a getting started guide to the docs
|
||||||
|
- Adds splash screen for first load
|
||||||
|
- Deleted unused assets
|
||||||
|
- Makes linter run as a pre-commit hook
|
||||||
|
- Fixes lint errors in server.js and validate-config.js
|
||||||
|
|
||||||
|
## 🐛 1.1.1 - Bug Fixes [PR #20](https://github.com/Lissy93/dashy/pull/20) + [PR #21](https://github.com/Lissy93/dashy/pull/21)
|
||||||
|
- Adds issue template
|
||||||
|
- Bug fixes
|
||||||
|
- Improves github PR and issue templates
|
||||||
|
- Shortens readme file
|
||||||
|
- Adds documentation in the docs folder
|
||||||
|
- Fixes Layout tab not showing in portrait #19
|
||||||
|
- Improves mobile performance for both the settings, config and backup pop-ups
|
||||||
|
- Fixes issue where theme not applied on load when the settings are hidden
|
||||||
|
- Adds minimum dimensions to modalsShortens readme file
|
||||||
|
- Adds documentation in the docs folder
|
||||||
|
- Adds minimum dimensions to modals
|
||||||
|
|
||||||
|
## 🚑️ 1.1.0 - Hotfix [#18](https://github.com/Lissy93/dashy/pull/18)
|
||||||
|
- Implementing the JSON validator had actually broken the entire JSON editor
|
||||||
|
- Fixed it by remove explicit use of Ajv, and using a derivative instead
|
||||||
|
|
||||||
|
## 📝 1.0.5 - Documentation [PR #16](https://github.com/Lissy93/dashy/pull/16)
|
||||||
|
- Previously there was very little documentation, this release fixed that
|
||||||
|
- Wrote specific docs for:
|
||||||
|
- Getting Started
|
||||||
|
- Configuring
|
||||||
|
- Backup & Restore
|
||||||
|
- Theming
|
||||||
|
- Developing
|
||||||
|
|
||||||
|
## ✨ 1.0.0 - Implements Config Validation [PR #13](https://github.com/Lissy93/dashy/pull/13)
|
||||||
|
- Write a JSON schema for the conf.yml file
|
||||||
|
- Wrote a validation script to compare users config against schema
|
||||||
|
- Adds a formatter to print helpful messages about what needs fixing
|
||||||
|
- Implements validation process into build script
|
||||||
|
- Implements validation process into UI config configurator's validation
|
||||||
|
|
||||||
|
## 🔧 0.9.5 - Brand New Docker Container [PR #12](https://github.com/Lissy93/dashy/pull/12)
|
||||||
|
- With help from several users, a new container based on Alpine is released
|
||||||
|
- A sample Docker Compose script is also written, and docs are updated
|
||||||
|
- A 1-Click button for deploying to Play-with-Docker is added to the Readme
|
||||||
|
|
||||||
|
## ✨ 0.9.0 - Adds Hide Settings Functionality [PR #11](https://github.com/Lissy93/dashy/pull/11)
|
||||||
|
- Enables user to hide settings from UI
|
||||||
|
- Users preference is saved in local storage
|
||||||
|
- User can hide other structural elements of the UI from the config
|
||||||
|
|
||||||
|
## 💄 0.8.5 - Adds new Built-In Themes [PR #9](https://github.com/Lissy93/dashy/pull/9)
|
||||||
|
- Adds Minimal-Dark and Minimal-Light theme
|
||||||
|
- Adds Material-Dark and Material-Light theme
|
||||||
|
- Adds additional theme docs
|
||||||
|
- Adds option for sections to have items too
|
||||||
|
|
||||||
|
## ✨ 0.8.0 - Implements Custom CSS Editor [PR: #8](https://github.com/Lissy93/dashy/pull/8)
|
||||||
|
- Adds a page in the config menu
|
||||||
|
- Adds syntax highlighting, CSS validation and sanitization
|
||||||
|
- Saves users CSS, and applies styles on page load
|
||||||
|
|
||||||
|
## ✨ 0.7.5 - Adds Cloud Backup and Restore Feature [PR #6](https://github.com/Lissy93/dashy/pull/6)
|
||||||
|
- Creates a form for entering backup ID and decryption password
|
||||||
|
- Puts form in modal, and adds button to launch form, with custom icon
|
||||||
|
- Implemented the cryptography stuff for end-to-end data encryption
|
||||||
|
- Wrote and tested the backend, and deployed as a serverless function on CF workers
|
||||||
|
- On the frontend, users input is encrypted, and passed to backend cloud function
|
||||||
|
- Response from the backend is handles appropriately, and message displayed to the user
|
||||||
|
- Implements the restoring from server functionality, with data integrity checks
|
||||||
|
|
||||||
|
## ✨ 0.7.0 - Support for Custom Nav Links [PR #4](https://github.com/Lissy93/dashy/pull/4)
|
||||||
|
- User can add custom nav bar links from the Config Settings menu
|
||||||
|
- Better UI styling to the config menu
|
||||||
|
- New icons inside buttons
|
||||||
|
|
||||||
|
## ✨ 0.6.5 - UI Config Editor [PR #3](https://github.com/Lissy93/dashy/pull/3)
|
||||||
|
Adds the ability for the user to edit their configuration directly from the UI
|
||||||
|
- Edit all section and item data using a rich JSON editor
|
||||||
|
- Download/ backup conf.yml directly from the UI
|
||||||
|
- Edit site meta data: title, description, footer, etc
|
||||||
|
- Reset all locally stored data to the initial state
|
||||||
|
- Also includes a new toast component, for subtle notifications
|
||||||
|
|
||||||
|
## ✨ 0.6.0 - Navbar, Footer and Background Image
|
||||||
|
- Adds option for a custom full-size background image
|
||||||
|
- Made footer customizable
|
||||||
|
- Fixes error being thrown when navbar links are empty
|
||||||
|
|
||||||
|
## ⚡️ 0.5.5 - Improved Theming
|
||||||
|
- Makes more specific color variables, which inherit base vars
|
||||||
|
- Makes it possible for users to write their own theme
|
||||||
|
- Fix some color edge cases
|
||||||
|
- Adds docs for theming
|
||||||
|
|
||||||
|
## ✨ 0.5.0 - Theme Support
|
||||||
|
- Converts all SCSS variables to CSS variables
|
||||||
|
- Implements theme switching functionality
|
||||||
|
- Adds a dropdown menu, enabling user to select theme
|
||||||
|
- Adds an initial theme option to `appConfig.theme`
|
||||||
|
- Saves selected theme to local storage
|
||||||
|
- Wrote a ton of color themes
|
||||||
|
|
||||||
|
## ✨ 0.4.5 - Keyboard Navigation
|
||||||
|
- Implements arrow key navigation
|
||||||
|
|
||||||
|
## ✨ 0.4.0 - Font Awesome Support
|
||||||
|
- Adds support for Font-Awesome icons
|
||||||
|
- Auto-loads font-awesome only when needed
|
||||||
|
- Adds support for SVG icons
|
||||||
|
|
||||||
|
## ✨ 0.3.5 - Opening Method
|
||||||
|
- Shows opening method on hover
|
||||||
|
- Opening method can be specified in config, as `item[n].target`
|
||||||
|
|
||||||
|
## 🔨 0.3.0 - Docker
|
||||||
|
- Writes a Dockerfile
|
||||||
|
|
||||||
|
## 🎨 0.2.5 - Code Quality, Docs and UI
|
||||||
|
- Huge code quality overhaul, now uses AirBnB style ESLint
|
||||||
|
- Adds in-code docs, removes unneeded code, moves reusable helpers into utils dir
|
||||||
|
- Adds a readme, records a demo gif and adds some basic deployment docs
|
||||||
|
- Removes dependencies which are not 100% necessary
|
||||||
|
|
||||||
|
## ✨ 0.2.0 - Collapsible Sections
|
||||||
|
- Implements collapsing functionality, for less used or very long sections
|
||||||
|
- Sections can read default state from `section[n].collapsed` within config
|
||||||
|
- After change, state of each section is stored in local storage
|
||||||
|
|
||||||
|
## ⚡️ 0.1.5 - Search and Navigation
|
||||||
|
- Improves instant search functionality
|
||||||
|
- Implements keyboard navigation for selecting items
|
||||||
|
- Launch selected item with enter, or Ctrl + Enter to open in new tab
|
||||||
|
|
||||||
|
## 🎉 0.1.0 - Init
|
||||||
|
Project started. Forked from [Lissy93/Dash](https://github.com/Lissy93/dash)
|
|
@ -0,0 +1,14 @@
|
||||||
|
# Code Owners helps give greater control to those who developed a feature
|
||||||
|
# PR's which modify files that you own will be marked as trusted
|
||||||
|
# After developing a feature, you can add yourself as it's owner
|
||||||
|
# Each line starts with file pattern, followed by one or more owners
|
||||||
|
# Codeowners Docs: https://github.blog/2017-07-06-introducing-code-owners/
|
||||||
|
|
||||||
|
# Repo Owners
|
||||||
|
* @lissy93
|
||||||
|
|
||||||
|
# Translations
|
||||||
|
src/assets/locales/fr.json @EVOTk
|
||||||
|
|
||||||
|
# Bot PR Permissions
|
||||||
|
docs/assets/CONTRIBUTORS.svg @liss-bot
|
|
@ -0,0 +1,128 @@
|
||||||
|
# Contributor Covenant Code of Conduct
|
||||||
|
|
||||||
|
## Our Pledge
|
||||||
|
|
||||||
|
We as members, contributors, and leaders pledge to make participation in our
|
||||||
|
community a harassment-free experience for everyone, regardless of age, body
|
||||||
|
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
||||||
|
identity and expression, level of experience, education, socio-economic status,
|
||||||
|
nationality, personal appearance, race, religion, or sexual identity
|
||||||
|
and orientation.
|
||||||
|
|
||||||
|
We pledge to act and interact in ways that contribute to an open, welcoming,
|
||||||
|
diverse, inclusive, and healthy community.
|
||||||
|
|
||||||
|
## Our Standards
|
||||||
|
|
||||||
|
Examples of behavior that contributes to a positive environment for our
|
||||||
|
community include:
|
||||||
|
|
||||||
|
* Demonstrating empathy and kindness toward other people
|
||||||
|
* Being respectful of differing opinions, viewpoints, and experiences
|
||||||
|
* Giving and gracefully accepting constructive feedback
|
||||||
|
* Accepting responsibility and apologizing to those affected by our mistakes,
|
||||||
|
and learning from the experience
|
||||||
|
* Focusing on what is best not just for us as individuals, but for the
|
||||||
|
overall community
|
||||||
|
|
||||||
|
Examples of unacceptable behavior include:
|
||||||
|
|
||||||
|
* The use of sexualized language or imagery, and sexual attention or
|
||||||
|
advances of any kind
|
||||||
|
* Trolling, insulting or derogatory comments, and personal or political attacks
|
||||||
|
* Public or private harassment
|
||||||
|
* Publishing others' private information, such as a physical or email
|
||||||
|
address, without their explicit permission
|
||||||
|
* Other conduct which could reasonably be considered inappropriate in a
|
||||||
|
professional setting
|
||||||
|
|
||||||
|
## Enforcement Responsibilities
|
||||||
|
|
||||||
|
Community leaders are responsible for clarifying and enforcing our standards of
|
||||||
|
acceptable behavior and will take appropriate and fair corrective action in
|
||||||
|
response to any behavior that they deem inappropriate, threatening, offensive,
|
||||||
|
or harmful.
|
||||||
|
|
||||||
|
Community leaders have the right and responsibility to remove, edit, or reject
|
||||||
|
comments, commits, code, wiki edits, issues, and other contributions that are
|
||||||
|
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
||||||
|
decisions when appropriate.
|
||||||
|
|
||||||
|
## Scope
|
||||||
|
|
||||||
|
This Code of Conduct applies within all community spaces, and also applies when
|
||||||
|
an individual is officially representing the community in public spaces.
|
||||||
|
Examples of representing our community include using an official e-mail address,
|
||||||
|
posting via an official social media account, or acting as an appointed
|
||||||
|
representative at an online or offline event.
|
||||||
|
|
||||||
|
## Enforcement
|
||||||
|
|
||||||
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
||||||
|
reported to the community leaders responsible for enforcement at
|
||||||
|
alicia@omg.lol.
|
||||||
|
All complaints will be reviewed and investigated promptly and fairly.
|
||||||
|
|
||||||
|
All community leaders are obligated to respect the privacy and security of the
|
||||||
|
reporter of any incident.
|
||||||
|
|
||||||
|
## Enforcement Guidelines
|
||||||
|
|
||||||
|
Community leaders will follow these Community Impact Guidelines in determining
|
||||||
|
the consequences for any action they deem in violation of this Code of Conduct:
|
||||||
|
|
||||||
|
### 1. Correction
|
||||||
|
|
||||||
|
**Community Impact**: Use of inappropriate language or other behavior deemed
|
||||||
|
unprofessional or unwelcome in the community.
|
||||||
|
|
||||||
|
**Consequence**: A private, written warning from community leaders, providing
|
||||||
|
clarity around the nature of the violation and an explanation of why the
|
||||||
|
behavior was inappropriate. A public apology may be requested.
|
||||||
|
|
||||||
|
### 2. Warning
|
||||||
|
|
||||||
|
**Community Impact**: A violation through a single incident or series
|
||||||
|
of actions.
|
||||||
|
|
||||||
|
**Consequence**: A warning with consequences for continued behavior. No
|
||||||
|
interaction with the people involved, including unsolicited interaction with
|
||||||
|
those enforcing the Code of Conduct, for a specified period of time. This
|
||||||
|
includes avoiding interactions in community spaces as well as external channels
|
||||||
|
like social media. Violating these terms may lead to a temporary or
|
||||||
|
permanent ban.
|
||||||
|
|
||||||
|
### 3. Temporary Ban
|
||||||
|
|
||||||
|
**Community Impact**: A serious violation of community standards, including
|
||||||
|
sustained inappropriate behavior.
|
||||||
|
|
||||||
|
**Consequence**: A temporary ban from any sort of interaction or public
|
||||||
|
communication with the community for a specified period of time. No public or
|
||||||
|
private interaction with the people involved, including unsolicited interaction
|
||||||
|
with those enforcing the Code of Conduct, is allowed during this period.
|
||||||
|
Violating these terms may lead to a permanent ban.
|
||||||
|
|
||||||
|
### 4. Permanent Ban
|
||||||
|
|
||||||
|
**Community Impact**: Demonstrating a pattern of violation of community
|
||||||
|
standards, including sustained inappropriate behavior, harassment of an
|
||||||
|
individual, or aggression toward or disparagement of classes of individuals.
|
||||||
|
|
||||||
|
**Consequence**: A permanent ban from any sort of public interaction within
|
||||||
|
the community.
|
||||||
|
|
||||||
|
## Attribution
|
||||||
|
|
||||||
|
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
||||||
|
version 2.0, available at
|
||||||
|
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
||||||
|
|
||||||
|
Community Impact Guidelines were inspired by [Mozilla's code of conduct
|
||||||
|
enforcement ladder](https://github.com/mozilla/diversity).
|
||||||
|
|
||||||
|
[homepage]: https://www.contributor-covenant.org
|
||||||
|
|
||||||
|
For answers to common questions about this code of conduct, see the FAQ at
|
||||||
|
https://www.contributor-covenant.org/faq. Translations are available at
|
||||||
|
https://www.contributor-covenant.org/translations.
|
|
@ -0,0 +1,4 @@
|
||||||
|
# Support Dashy's Development!
|
||||||
|
|
||||||
|
github: lissy93
|
||||||
|
custom: ['https://notes.aliciasykes.com/tip']
|
|
@ -0,0 +1,79 @@
|
||||||
|
name: Bug Report 🐛
|
||||||
|
description: Report something that's not working the way it's (probably) intended to
|
||||||
|
title: '[BUG] <title>'
|
||||||
|
labels: ['🐛 Bug']
|
||||||
|
assignees:
|
||||||
|
- Lissy93
|
||||||
|
body:
|
||||||
|
- type: dropdown
|
||||||
|
id: environment
|
||||||
|
attributes:
|
||||||
|
label: Environment
|
||||||
|
description: Where are you running Dashy?
|
||||||
|
options:
|
||||||
|
- Self-Hosted (Docker)
|
||||||
|
- Self-Hosted (Bare Metal)
|
||||||
|
- Cloud Service (Static)
|
||||||
|
- Other (Specify below)
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: input
|
||||||
|
id: system
|
||||||
|
attributes:
|
||||||
|
label: System
|
||||||
|
description: >-
|
||||||
|
For deployment issues, specify your [distro or OS](https://whatsmyos.com/) and/ or Docker version.
|
||||||
|
For client-side issues, include your [browser version](https://www.whatsmybrowser.org/)
|
||||||
|
placeholder: e.g. Firefox 101, Manjaro Linux 21.3.0, Docker 20.10.16
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
|
- type: input
|
||||||
|
id: version
|
||||||
|
attributes:
|
||||||
|
label: Version
|
||||||
|
description: What version of Dashy are you running?
|
||||||
|
placeholder: 4.2.0 ← should look like this (check config menu)
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
|
- type: textarea
|
||||||
|
id: repro
|
||||||
|
attributes:
|
||||||
|
label: Describe the problem
|
||||||
|
description: Please describe exactly what is not working, include the steps to reproduce, actual result and expected result
|
||||||
|
placeholder: When doing ABC then DEF, I expect to see XYZ, but I actually see ZYX
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: logs
|
||||||
|
attributes:
|
||||||
|
label: Additional info
|
||||||
|
description: Logs? Screenshots? Yes, please.
|
||||||
|
placeholder: If the issue happens during build-time, include terminal logs. For run-time errors, include browser logs which you can view in the Dev Tools (F12), under the Console tab. Take care to blank out any personal info.
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
|
- type: checkboxes
|
||||||
|
id: idiot-check
|
||||||
|
attributes:
|
||||||
|
label: Please tick the boxes
|
||||||
|
description: Before submitting, please ensure that
|
||||||
|
options:
|
||||||
|
- label: You have explained the issue clearly, and included all relevant info
|
||||||
|
required: true
|
||||||
|
- label: You are using a [supported](https://github.com/Lissy93/dashy/blob/master/.github/SECURITY.md#supported-versions) version of Dashy
|
||||||
|
required: true
|
||||||
|
- label: You've checked that this [issue hasn't already been raised](https://github.com/Lissy93/dashy/issues?q=is%3Aissue)
|
||||||
|
required: true
|
||||||
|
- label: You've checked the [docs](https://github.com/Lissy93/dashy/tree/master/docs#readme) and [troubleshooting](https://github.com/Lissy93/dashy/blob/master/docs/troubleshooting.md#troubleshooting) guide 
|
||||||
|
required: true
|
||||||
|
- label: You agree to the [code of conduct](https://github.com/Lissy93/dashy/blob/master/.github/CODE_OF_CONDUCT.md#contributor-covenant-code-of-conduct)
|
||||||
|
required: true
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |-
|
||||||
|
## Thanks 🙏
|
||||||
|
<img align="left" width="160" src="https://i.ibb.co/S5vCnhL/gh-thanks.gif" alt="🐙" />
|
||||||
|
Thank you for raising this ticket - in doing so you are helping to make the app better for everyone 💪<br>
|
||||||
|
You should expect a reply within the next 48 hours :)<br>
|
||||||
|
⭐️ Consider dropping the repo a star if you're enjoying Dashy!<br>
|
||||||
|
validations:
|
||||||
|
required: false
|
|
@ -0,0 +1,64 @@
|
||||||
|
name: Feature Request ✨
|
||||||
|
description: Suggest an idea for future development of Dashy
|
||||||
|
title: '[FEATURE_REQUEST] <title>'
|
||||||
|
labels: ['🦄 Feature Request']
|
||||||
|
assignees:
|
||||||
|
- Lissy93
|
||||||
|
|
||||||
|
body:
|
||||||
|
|
||||||
|
# Field 1 - Is it bug-related
|
||||||
|
- type: textarea
|
||||||
|
id: issue
|
||||||
|
attributes:
|
||||||
|
label: Is your feature request related to a problem? If so, please describe.
|
||||||
|
description:
|
||||||
|
placeholder: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
|
|
||||||
|
# Field 2 - Describe feature
|
||||||
|
- type: textarea
|
||||||
|
id: solution
|
||||||
|
attributes:
|
||||||
|
label: Describe the solution you'd like
|
||||||
|
placeholder: An outline of how you would like this to be implemented, include as much details as possible
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
# Field 3 - Priority
|
||||||
|
- type: dropdown
|
||||||
|
id: priority
|
||||||
|
attributes:
|
||||||
|
label: Priority
|
||||||
|
description: How urgent is the development of this feature
|
||||||
|
options:
|
||||||
|
- Low (Nice-to-have)
|
||||||
|
- Medium (Would be very useful)
|
||||||
|
- High (The app does not function without it)
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
# Field 3 - Can the user implement
|
||||||
|
- type: dropdown
|
||||||
|
id: canImplement
|
||||||
|
attributes:
|
||||||
|
label: Is this something you would be keen to implement
|
||||||
|
description: Are you raising this ticket in order to get an issue number for your PR?
|
||||||
|
options:
|
||||||
|
- 'No'
|
||||||
|
- 'Maybe'
|
||||||
|
- 'Yes!'
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
|
|
||||||
|
# Final text
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |-
|
||||||
|
## Thanks 🙏
|
||||||
|
Thank you for your feature suggestion, you should expect a reply within 48 hours :)
|
||||||
|
Please note that there is no guarantee that your idea will be implemented
|
||||||
|
If you haven't already done so, please Star the Dashy's repository on GitHub, to help other users discover it
|
||||||
|
validations:
|
||||||
|
required: false
|
|
@ -0,0 +1,66 @@
|
||||||
|
name: Question 🤷♂️
|
||||||
|
description: Got a question about Dashy, deployment, development or usage?
|
||||||
|
title: '[QUESTION] <title>'
|
||||||
|
labels: ['🤷♂️ Question']
|
||||||
|
assignees:
|
||||||
|
- Lissy93
|
||||||
|
|
||||||
|
body:
|
||||||
|
# Filed 1 - Intro Text
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: >
|
||||||
|
Thanks for using Dashy! Questions are welcome, but in the future will be moving over to
|
||||||
|
[Discussions](https://github.com/Lissy93/dashy/discussions) page.
|
||||||
|
Quick questions should be asked [here](https://github.com/Lissy93/dashy/discussions/148) instead.
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
|
|
||||||
|
# Field 2 - The actual question
|
||||||
|
- type: textarea
|
||||||
|
id: question
|
||||||
|
attributes:
|
||||||
|
label: Question
|
||||||
|
description: Outline your question in a clear and concise manner
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
# Field 3 - Category
|
||||||
|
- type: dropdown
|
||||||
|
id: category
|
||||||
|
attributes:
|
||||||
|
label: Category
|
||||||
|
description: What part of the application does this relate to?
|
||||||
|
options:
|
||||||
|
- Setup and Deployment
|
||||||
|
- Configuration
|
||||||
|
- App Usage
|
||||||
|
- Development
|
||||||
|
- Documentation
|
||||||
|
- Alternate Views
|
||||||
|
- Authentication
|
||||||
|
- Using Icons
|
||||||
|
- Widgets
|
||||||
|
- Actions
|
||||||
|
- Language Support
|
||||||
|
- Search & Shortcuts
|
||||||
|
- Status Checking
|
||||||
|
- Theming & Layout
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
# Field 4 - User has RTFM first, and agrees to code of conduct, etc
|
||||||
|
- type: checkboxes
|
||||||
|
id: idiot-check
|
||||||
|
attributes:
|
||||||
|
label: Please tick the boxes
|
||||||
|
description: Before submitting, please ensure that
|
||||||
|
options:
|
||||||
|
- label: You are using a [supported](https://github.com/Lissy93/dashy/blob/master/.github/SECURITY.md#supported-versions) version of Dashy (check the first two digits of the version number)
|
||||||
|
required: true
|
||||||
|
- label: You've checked that this [question hasn't already been raised](https://github.com/Lissy93/dashy/issues?q=is%3Aissue)
|
||||||
|
required: true
|
||||||
|
- label: You've checked the [docs](https://github.com/Lissy93/dashy/tree/master/docs#readme) and [troubleshooting](https://github.com/Lissy93/dashy/blob/master/docs/troubleshooting.md#troubleshooting) guide
|
||||||
|
required: true
|
||||||
|
- label: You agree to the [code of conduct](https://github.com/Lissy93/dashy/blob/master/.github/CODE_OF_CONDUCT.md#contributor-covenant-code-of-conduct)
|
||||||
|
required: true
|
|
@ -0,0 +1,10 @@
|
||||||
|
---
|
||||||
|
name: "Share Feedback \U0001F308"
|
||||||
|
about: Share what you think about Dashy, and any ideas or suggestions you have
|
||||||
|
title: "[FEEDBACK]"
|
||||||
|
labels: "\U0001F308 Feedback"
|
||||||
|
assignees: ''
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,60 @@
|
||||||
|
name: Add your Dashboard to the Showcase 🌟
|
||||||
|
description: Share a screenshot of your dashboard to the Readme showcase!
|
||||||
|
title: '[SHOWCASE] <title>'
|
||||||
|
labels: ['💯 Showcase']
|
||||||
|
assignees:
|
||||||
|
- lissy93
|
||||||
|
|
||||||
|
body:
|
||||||
|
# 1 - Title
|
||||||
|
- type: input
|
||||||
|
id: title
|
||||||
|
attributes:
|
||||||
|
label: Title
|
||||||
|
description: Pick a title for your addition
|
||||||
|
placeholder: My Awesome Dashboard
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
|
# 2 - Link to Screenshot
|
||||||
|
- type: textarea
|
||||||
|
id: screenshot
|
||||||
|
attributes:
|
||||||
|
label: Screenshot
|
||||||
|
description: Either upload your screenshot here, or include a link to a png/jpg on a CDN / image hosting service
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
# 3 - Credit user
|
||||||
|
- type: dropdown
|
||||||
|
id: attribution
|
||||||
|
attributes:
|
||||||
|
label: Would you like your name/ username included?
|
||||||
|
description: This will be displayed above the screenshot to your dashboard in the showcase page
|
||||||
|
options:
|
||||||
|
- 'Yes'
|
||||||
|
- 'No'
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
# 4 - Social links
|
||||||
|
- type: input
|
||||||
|
id: links
|
||||||
|
attributes:
|
||||||
|
label: Link to your Website/ Profile/ Twitter (optional)
|
||||||
|
description: You can optionally have your name link to your profile or website. If you'd like this, include the URL to your site below
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
|
# 5 - Description
|
||||||
|
- type: textarea
|
||||||
|
id: description
|
||||||
|
attributes:
|
||||||
|
label: Description (Optional)
|
||||||
|
description: You can optionally also include a short description. If there's anything else you'd like to include, then put it here
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
|
# 6 - All done
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |-
|
||||||
|
## That's It!
|
||||||
|
Thanks for sharing your dashboard :) You will receive an update to this ticket once it's added to the showcase
|
||||||
|
validations:
|
||||||
|
required: false
|
|
@ -0,0 +1,45 @@
|
||||||
|
## ✨ 2.1.1 Improvements [PR #775](https://github.com/Lissy93/dashy/pull/775)
|
||||||
|
|
||||||
|
#### Bug Fixes 🐛
|
||||||
|
|
||||||
|
- Update APOD widget to use https://apod.as93.net
|
||||||
|
- #745 by @k073l
|
||||||
|
- Fixes theme applying bug (#774)
|
||||||
|
|
||||||
|
#### Improvements ⚡️
|
||||||
|
|
||||||
|
- Stop status checks when item destroyed
|
||||||
|
- #767 by @marekful
|
||||||
|
- Ensure first SSL certificate check finished before second
|
||||||
|
- #760 by @marekful
|
||||||
|
- Huge improvement to the way widgets are defined
|
||||||
|
- #758 by @patrickheeney
|
||||||
|
|
||||||
|
#### Features ✨
|
||||||
|
|
||||||
|
- A set of awesome NextCloud widgets
|
||||||
|
- #740 by @marekful
|
||||||
|
- Add Elizabeth + non-underground lines to TFL widget
|
||||||
|
- #766 by @dougaldhub
|
||||||
|
- Option to show / hide detailed info for StatPing widget
|
||||||
|
- #714 by @marekful
|
||||||
|
- Korean translations
|
||||||
|
- #711 by @boggy-cs
|
||||||
|
- Adds option to force ignore widget errors
|
||||||
|
|
||||||
|
#### Docs 📕
|
||||||
|
|
||||||
|
- Small docs update
|
||||||
|
- #741 by @markusdd
|
||||||
|
- Small docs update
|
||||||
|
- #705 by @pablomalo
|
||||||
|
- Adds Dipanghosh's dash to showcase
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
|
Big thanks to the above developers, for their awesome work on this release!
|
||||||
|
|
||||||
|
V 2.1.2 is in the works, and includes an overhaul of how the config is loaded, so stay tuned for that!
|
||||||
|
|
||||||
|
And Happy Friday!
|
|
@ -0,0 +1,35 @@
|
||||||
|
|
||||||
|
Security is taken very seriously
|
||||||
|
|
||||||
|
## Supported Versions
|
||||||
|
The current versions, and previous minor versions and / or the past 5 versions are supported. Releases either older than 5 versions, or from the last major version are no longer maintained or monitored, and hence the security of which cannot be guaranteed.
|
||||||
|
|
||||||
|
## Keeping your Instance of Dashy Secure
|
||||||
|
See [Docs: Management - Security](/docs/management.md#securing)
|
||||||
|
|
||||||
|
## Reporting a Security Issue
|
||||||
|
If you think you've found a critical issue, please send an email to `security@mail.alicia.omg.lol`, to encrypt it, you can use [`0688 F8D3 4587 D954 E9E5 1FB8 FEDB 68F5 5C02 83A7`](https://keybase.io/aliciasykes/pgp_keys.asc?fingerprint=0688f8d34587d954e9e51fb8fedb68f55c0283a7). You should receive a response within 48 hours.
|
||||||
|
|
||||||
|
All non-critical issues can be raised as a ticket.
|
||||||
|
|
||||||
|
Please include the following information:
|
||||||
|
- Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
|
||||||
|
- Full paths of source file(s) related to the manifestation of the issue
|
||||||
|
- The location of the affected source code (tag/branch/commit or direct URL)
|
||||||
|
- Any special configuration required to reproduce the issue
|
||||||
|
- Step-by-step instructions to reproduce the issue
|
||||||
|
- Proof-of-concept or exploit code (if possible)
|
||||||
|
- Impact of the issue, including how an attacker might exploit the issue
|
||||||
|
|
||||||
|
This info will help with finding and fixing the issue.
|
||||||
|
|
||||||
|
Please use only English.
|
||||||
|
|
||||||
|
## Issues That Should Not Be Raised
|
||||||
|
Please do not raise issues in this repo which relate to Vue or Vue CLI, we're already using the latest versions of these dependencies, so any issues here to be taken up with Vue. The same applies to other dev dependencies that are at the latest version.
|
||||||
|
|
||||||
|
## Known Issues
|
||||||
|
|
||||||
|
> **01/09/2021** - [Inefficient Regular Expression Complexity](https://www.huntr.dev/bounties/1e8f07fc-c384-4ff9-8498-0690de2e8c31/) in Axios (Re: [CWE-1333](https://cwe.mitre.org/data/definitions/1333.html)).
|
||||||
|
|
||||||
|
This ReDos vuln, was raised and fixed by @ready-research in Axios in August 2021. The issue was resolved in [`5b45711`](https://github.com/axios/axios/commit/5b457116e31db0e88fede6c428e969e87f290929), but Snyk sometime just takes a while to show updates. Dashy is using the latest version of Axios, and so is not affected by this issue.
|
|
@ -0,0 +1,17 @@
|
||||||
|
# Support
|
||||||
|
|
||||||
|
To report a potential vulnerability, follow the steps in **[Security](https://github.com/Lissy93/dashy/blob/master/.github/SECURITY.md#reporting-a-security-issue)**.
|
||||||
|
|
||||||
|
For setup and usage guides, see **[dashy.to/docs](https://dashy.to/)** or the **[GitHub](https://github.com/Lissy93/dashy)** repo.
|
||||||
|
|
||||||
|
To raise a bug, for something that's not working, **[Open a new Issue](https://github.com/Lissy93/dashy/issues/new/choose)**.
|
||||||
|
|
||||||
|
For help with getting Dashy up and running, please see the **[Discussions](https://github.com/Lissy93/dashy/discussions)**.
|
||||||
|
|
||||||
|
If you'd like to help support Dashy's future development, see **[Contributing](https://github.com/Lissy93/dashy/blob/master/docs/contributing.md)**.
|
||||||
|
|
||||||
|
To get in contact with the author, email me at **`alicia at omg dot lol`** **[[PGP]](https://keybase.io/aliciasykes/pgp_keys.asc?fingerprint=0688f8d34587d954e9e51fb8fedb68f55c0283a7)**.
|
||||||
|
|
||||||
|
-Thank you
|
||||||
|
|
||||||
|
> <sub>Prior to raising a ticket, please check the [docs](https://github.com/Lissy93/dashy/tree/master/docs#readme), [troubleshooting guide](https://github.com/Lissy93/dashy/blob/master/docs/troubleshooting.md) and [previous issues](https://github.com/Lissy93/dashy/issues?q=is%3Aissue).</sub><br><sup>If you're new here, consider also staring the repo before submitting your ticket.</sup>
|
|
@ -0,0 +1,3 @@
|
||||||
|
🐛 Bug: ✅ Fixed
|
||||||
|
🦄 Feature Request: ✅ Implemented
|
||||||
|
🤷♂️ Question: ✅ Answered
|
|
@ -0,0 +1,12 @@
|
||||||
|
# To get started with Dependabot version updates, you'll need to specify which
|
||||||
|
# package ecosystems to update and where the package manifests are located.
|
||||||
|
# Please see the documentation for more information:
|
||||||
|
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
||||||
|
# https://containers.dev/guide/dependabot
|
||||||
|
|
||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: "devcontainers"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: weekly
|
|
@ -0,0 +1,63 @@
|
||||||
|
comment:
|
||||||
|
footer: |
|
||||||
|
---
|
||||||
|
> I am a bot, and this is an automated message 🤖
|
||||||
|
labels:
|
||||||
|
- name: ✖️ Invalid
|
||||||
|
labeled:
|
||||||
|
issue:
|
||||||
|
action: close
|
||||||
|
body: >
|
||||||
|
Hello @{{ issue.user.login }} your ticket has been marked as invalid.
|
||||||
|
Please ensure you follow the issue template, provide all requested info,
|
||||||
|
and be sure to check the docs + previous issues prior to raising tickets.
|
||||||
|
pr:
|
||||||
|
body: Thank you @{{ pull_request.user.login }} for suggesting this. Please follow the pull request templates.
|
||||||
|
action: close
|
||||||
|
|
||||||
|
- name: 👩💻 Good First Issue
|
||||||
|
labeled:
|
||||||
|
issue:
|
||||||
|
body: >
|
||||||
|
This issue has been marked as a good first issue for first-time contributors to implement!
|
||||||
|
This is a great way to support the project, while also improving your skills, you'll also be credited as a contributor once your PR is merged.
|
||||||
|
If you're new to web development, [here are a collection of resources](https://dashy.to/docs/developing#resources-for-beginners)
|
||||||
|
to help you get started. You can also find step-by-step tutorials for common tasks within Dashy, on the [Dev Guides](https://dashy.to/docs/development-guides) page.
|
||||||
|
If you need any support at all, feel free to reach out via [GitHub Discussions](https://github.com/Lissy93/dashy/discussions).
|
||||||
|
|
||||||
|
- name: ❌ wontfix
|
||||||
|
labeled:
|
||||||
|
issue:
|
||||||
|
action: close
|
||||||
|
body: >
|
||||||
|
This ticked has been marked as 'wontfix', which usually means it is out-of-scope, or not feasible at this time.
|
||||||
|
You can still fork the project and make the changes yourself, for support in doing so, please reference the [Developing Docs](https://dashy.to/docs/developing).
|
||||||
|
|
||||||
|
- name: ✅ Fixed
|
||||||
|
labeled:
|
||||||
|
issue:
|
||||||
|
body: >
|
||||||
|
Hello @{{ issue.user.login }}! It looks like all or part of this issue has now been implemented :)
|
||||||
|
If you're enjoying Dashy, please consider supporting the project- for ways to get involved, see [Contributing](https://dashy.to/docs/contributing) 💖
|
||||||
|
|
||||||
|
- name: ‼️ High Priority
|
||||||
|
labeled:
|
||||||
|
issue:
|
||||||
|
body: >
|
||||||
|
This ticket has been marked as high priority, and has been bumped to the top of the priority list.
|
||||||
|
You should expect an implementation to be pushed out within the next 7 days. Thank you for your patience.
|
||||||
|
|
||||||
|
- name: 💀 Spam
|
||||||
|
labeled:
|
||||||
|
issue:
|
||||||
|
action: close
|
||||||
|
locking: lock
|
||||||
|
lock_reason: spam
|
||||||
|
body: >
|
||||||
|
This issue has been identified as spam, and is now locked.
|
||||||
|
Users who repeatedly raise spam issues may be blocked or reported.
|
||||||
|
|
||||||
|
- name: ⛔ Don't Merge
|
||||||
|
labeled:
|
||||||
|
pr:
|
||||||
|
body: This PR has been temporarily blocked from merging.
|
|
@ -0,0 +1,24 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"section": "Feature Requests",
|
||||||
|
"labels": [
|
||||||
|
"🦄 Feature Request"
|
||||||
|
],
|
||||||
|
"threshold": 100
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"section": "Bugs",
|
||||||
|
"labels": [
|
||||||
|
"🐛 Bug"
|
||||||
|
],
|
||||||
|
"threshold": 100
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"section": "Questions & Feedback",
|
||||||
|
"labels": [
|
||||||
|
"🤷♂️ Question",
|
||||||
|
"🌈 Feedback"
|
||||||
|
],
|
||||||
|
"threshold": 100
|
||||||
|
}
|
||||||
|
]
|
|
@ -0,0 +1,135 @@
|
||||||
|
comment:
|
||||||
|
on-update: edit
|
||||||
|
header: |
|
||||||
|
Hi {{ prAuthor }}! Thank you for contributing to Dashy! ✨
|
||||||
|
footer: |
|
||||||
|
---
|
||||||
|
> I'm a bot, and this is an automated comment 🤖
|
||||||
|
snippets:
|
||||||
|
- id: docs-changes
|
||||||
|
files:
|
||||||
|
- docs/**.md
|
||||||
|
body: |
|
||||||
|
When making changes to the documentation, be sure to double check that:
|
||||||
|
- Link and images URLs properly resolve
|
||||||
|
- Your spelling and grammar is correct
|
||||||
|
- Any markdown formatting is valid
|
||||||
|
|
||||||
|
- id: vue-config
|
||||||
|
files:
|
||||||
|
- vue.config.js
|
||||||
|
body: >
|
||||||
|
You're making changes to the main Vue app config. Please test the app thoroughly,
|
||||||
|
as any misconfigurations here may cause the app to stop functioning.
|
||||||
|
|
||||||
|
- id: server-entry
|
||||||
|
files:
|
||||||
|
- server.js
|
||||||
|
body: >
|
||||||
|
You're making changes to the main server entry point. Please test the app thoroughly,
|
||||||
|
as any misconfigurations here may cause the app to stop functioning.
|
||||||
|
|
||||||
|
- id: dependency-changes
|
||||||
|
files:
|
||||||
|
- yarn.lock
|
||||||
|
body: >
|
||||||
|
When updating dependencies, take a moment to verify that there are not security
|
||||||
|
issues associated with any added or modified packages. If adding a new dependency,
|
||||||
|
ensure that it is totally necessary, and check the packages size is not too large,
|
||||||
|
as this will increase overall bundle size.
|
||||||
|
|
||||||
|
- id: environmental-vars
|
||||||
|
files: [ '.env', '*.env', '.env*' ]
|
||||||
|
body: >
|
||||||
|
You're making changes to the main server entry point. Please test the app thoroughly,
|
||||||
|
as any misconfigurations here may cause the app to stop functioning.
|
||||||
|
|
||||||
|
- id: license
|
||||||
|
files: [ 'LICENSE', '**/**/LICENSE*' ]
|
||||||
|
body: >
|
||||||
|
Dashy is licensed under MIT. Your modifying the license file, which shouldn't usually
|
||||||
|
need to be changed. Please ensure that you intended to make this update before continuing.
|
||||||
|
|
||||||
|
- id: cname-file
|
||||||
|
files:
|
||||||
|
- CNAME
|
||||||
|
body: >
|
||||||
|
Are you sure you want to modify the CNAME file? This may stop the documentation
|
||||||
|
website hosted on GitHub pages from working.
|
||||||
|
|
||||||
|
- id: git-ignore
|
||||||
|
files:
|
||||||
|
- .gitignore
|
||||||
|
body: >
|
||||||
|
When modifying the .gitignore, please do not remove any of the existing paths,
|
||||||
|
as this may cause files and directories to be unintentionally committed to git
|
||||||
|
|
||||||
|
- id: netlify-file
|
||||||
|
files:
|
||||||
|
- netlify.toml
|
||||||
|
body: >
|
||||||
|
Please ensure you've tested the app on Netlify, so that the 1-Click deployment
|
||||||
|
does not break, before merging these changes
|
||||||
|
|
||||||
|
- id: heroku-ignore
|
||||||
|
files:
|
||||||
|
- Procfile
|
||||||
|
body: >
|
||||||
|
Please ensure you've tested the app on Heroku, so that the 1-Click deployment
|
||||||
|
does not break, before merging these changes
|
||||||
|
|
||||||
|
- id: ignored-dist
|
||||||
|
files:
|
||||||
|
- dist/**/*
|
||||||
|
body: >
|
||||||
|
Please do not commit the built application to git. The contents of the dist
|
||||||
|
directory will be generated after the app is compiled
|
||||||
|
|
||||||
|
- id: ignored-dependencies
|
||||||
|
files:
|
||||||
|
- node_modules/**/*
|
||||||
|
body: >
|
||||||
|
Please do not commit dependencies to git. Node modules will be pulled down
|
||||||
|
when yarn is run, prior to building the app
|
||||||
|
|
||||||
|
- id: user-themes
|
||||||
|
files:
|
||||||
|
- src/styles/user-defined-themes.scss
|
||||||
|
body: >
|
||||||
|
Please do not commit changes to this file, as it is intended to be overridden with Docker.
|
||||||
|
You can instead add your styles to the color-themes file, or for element-specific styles
|
||||||
|
put it within the appropriate component. Thank you
|
||||||
|
|
||||||
|
- id: code-owners
|
||||||
|
files:
|
||||||
|
- .github/CODEOWNERS
|
||||||
|
body: >
|
||||||
|
Are you adding yourself as a code owner? Please specify the file path as specific
|
||||||
|
as possible, and only assign yourself to files that you created and wish to help
|
||||||
|
maintain (such as a language file, specific feature or widget).
|
||||||
|
If the above is not met, your PR will be declined or modified.
|
||||||
|
|
||||||
|
- id: config-schema
|
||||||
|
files:
|
||||||
|
- src/utils/ConfigSchema.json
|
||||||
|
body: >
|
||||||
|
Don't forget to verify they the config validator script responds correctly to
|
||||||
|
your new attribute.
|
||||||
|
|
||||||
|
- id: showcase
|
||||||
|
files:
|
||||||
|
- docs/showcase.md
|
||||||
|
body: >
|
||||||
|
Thank you for adding your dashboard to the showcase! 🌟
|
||||||
|
|
||||||
|
- id: translations
|
||||||
|
files:
|
||||||
|
- src/assets/locales/**.json
|
||||||
|
body: >
|
||||||
|
Thank you for contributing to Dashy's translations 💖
|
||||||
|
|
||||||
|
- id: themes
|
||||||
|
files:
|
||||||
|
- src/styles/color-themes.scss
|
||||||
|
body: >
|
||||||
|
Thank you for contributing to Dashy's themes 🎨
|
|
@ -0,0 +1,145 @@
|
||||||
|
# Config file for pull-request-badge. See: https://pullrequestbadge.com/ by @stefanbuck
|
||||||
|
# Dynamically inserts status badges into PR description, based on certain conditions
|
||||||
|
|
||||||
|
# Show submitting user's username and profile link
|
||||||
|
- label: 💕 Submitted by
|
||||||
|
message: $payload.pull_request.user.login
|
||||||
|
color: '#f73ae6'
|
||||||
|
when: $payload.pull_request.author_association !== 'OWNER'
|
||||||
|
url: 'https://github.com/$payload.pull_request.user.login'
|
||||||
|
|
||||||
|
# Show a badge indicating the PR category, based on tag
|
||||||
|
- label: Type
|
||||||
|
message: ✨ Feature
|
||||||
|
color: '#39b0fd'
|
||||||
|
when: $labels.includes('✨ New Feature')
|
||||||
|
- label: Type
|
||||||
|
message: 🐛 Fix
|
||||||
|
color: '#39b0fd'
|
||||||
|
when: $labels.includes('🦋 Bug Fix')
|
||||||
|
- label: Type
|
||||||
|
message: 📕 Docs
|
||||||
|
color: '#39b0fd'
|
||||||
|
when: $labels.includes('📕 Docs')
|
||||||
|
- label: Type
|
||||||
|
message: 🛠️ Build Changes
|
||||||
|
color: '#39b0fd'
|
||||||
|
when: $labels.includes('🛠️ Build Changes')
|
||||||
|
- label: Type
|
||||||
|
message: 🛠️ Build Changes
|
||||||
|
color: '#39b0fd'
|
||||||
|
when: $labels.includes('🛠️ Build Changes')
|
||||||
|
- label: Type
|
||||||
|
message: 🚚 Refactor
|
||||||
|
color: '#39b0fd'
|
||||||
|
when: $labels.includes('🚚 Refactor')
|
||||||
|
- label: Type
|
||||||
|
message: 💄 Stylistic Changes
|
||||||
|
color: '#39b0fd'
|
||||||
|
when: $labels.includes('💄 Stylistic Changes')
|
||||||
|
- label: Type
|
||||||
|
message: 🌟 Showcase Addition
|
||||||
|
color: '#39b0fd'
|
||||||
|
when: $labels.includes('💯 Showcase')
|
||||||
|
- label: Type
|
||||||
|
message: 🏗️ Architecture
|
||||||
|
color: '#39b0fd'
|
||||||
|
when: $labels.includes('🏗️ Architectural Changes')
|
||||||
|
- label: Type
|
||||||
|
message: 🤖 Auto Submission
|
||||||
|
color: '#39b0fd'
|
||||||
|
when: $labels.includes('🤖 Auto')
|
||||||
|
- label: Type
|
||||||
|
message: 🌐 Language Update
|
||||||
|
color: '#39b0fd'
|
||||||
|
when: $labels.includes('🌐 Language')
|
||||||
|
|
||||||
|
# Add size label based on very large or tiny PRs
|
||||||
|
- label: PR Size
|
||||||
|
message: Extra Large
|
||||||
|
color: '#f9833e'
|
||||||
|
when: '$additions > 1000'
|
||||||
|
- label: PR Size
|
||||||
|
message: Large
|
||||||
|
color: '#f4b546'
|
||||||
|
when: '$additions > 500 && $additions < 1000'
|
||||||
|
- label: PR Size
|
||||||
|
message: Medium
|
||||||
|
color: '#f3ff59'
|
||||||
|
when: '$additions > 10 && $additions < 500'
|
||||||
|
- label: PR Size
|
||||||
|
message: Quick
|
||||||
|
color: '#3eef8b'
|
||||||
|
when: '$additions < 10'
|
||||||
|
|
||||||
|
# Show badge indicating PR status
|
||||||
|
- label: Status
|
||||||
|
message: ✏️ Draft
|
||||||
|
when: $isDraft
|
||||||
|
color: '#ffa933'
|
||||||
|
- label: Status
|
||||||
|
message: 🧱 Work in Progress
|
||||||
|
when: $payload.pull_request.title.includes('WIP')
|
||||||
|
color: '#29e3f4'
|
||||||
|
- label: Status
|
||||||
|
message: ✅ Ready
|
||||||
|
color: '#3ef963'
|
||||||
|
when: $labels.includes('🔀 Ready for Merge')
|
||||||
|
|
||||||
|
# Show PR number, to destination and from destination
|
||||||
|
- label: '#$prNumber'
|
||||||
|
message: '$payload.pull_request.user.login /$payload.pull_request.head.ref → $payload.repository.full_name'
|
||||||
|
color: '#ab5afc'
|
||||||
|
url: 'https://github.com/$slug/tree/$branchName'
|
||||||
|
|
||||||
|
# Show total code added minus deleted
|
||||||
|
- label: New Code
|
||||||
|
message: 'Commits: $payload.pull_request.commits | Files Changed: $payload.pull_request.changed_files | Additions: $payload.pull_request.additions-$payload.pull_request.deletions'
|
||||||
|
color: '#dddd00'
|
||||||
|
|
||||||
|
# Checks if the required sections are missing
|
||||||
|
- label: ⚠️Missing
|
||||||
|
message: Category
|
||||||
|
color: '#f25265'
|
||||||
|
when: $payload.pull_request.body.includes('Category') === false
|
||||||
|
- label: ⚠️Missing
|
||||||
|
message: Overview
|
||||||
|
color: '#f25265'
|
||||||
|
when: $payload.pull_request.body.includes('Overview') === false
|
||||||
|
- label: ⚠️Missing
|
||||||
|
message: Quality Checklist
|
||||||
|
color: '#f25265'
|
||||||
|
when: $payload.pull_request.body.includes('Code Quality Checklist') === false
|
||||||
|
- label: ⚠️Description
|
||||||
|
message: Incomplete
|
||||||
|
color: '#f25265'
|
||||||
|
when: $payload.pull_request.body.length < 25
|
||||||
|
- label: ⚠️Missing
|
||||||
|
message: Label
|
||||||
|
color: '#f25265'
|
||||||
|
when: $labels.length == 0
|
||||||
|
|
||||||
|
# Show note when task list has unfinished items
|
||||||
|
- label: ⚠️Notice
|
||||||
|
message: Unchecked Tasks
|
||||||
|
when: $payload.pull_request.body.includes('- [ ] ')
|
||||||
|
color: '#f25265'
|
||||||
|
|
||||||
|
# Show warning, when certain tags are applied
|
||||||
|
- label: Warning
|
||||||
|
message: ⛔ Do Not Merge
|
||||||
|
color: '#f25265'
|
||||||
|
when: $labels.includes("⛔ Don't Merge")
|
||||||
|
- label: Warning
|
||||||
|
message: 🚫 Merge Conflicts
|
||||||
|
color: '#f25265'
|
||||||
|
when: $labels.includes('🚫 Merge Conflicts')
|
||||||
|
- label: Warning
|
||||||
|
message: 🕸️ Inactive
|
||||||
|
color: '#f25265'
|
||||||
|
when: $labels.includes('🕸️ Inactive')
|
||||||
|
- label: Warning
|
||||||
|
message: 💀 Spam
|
||||||
|
color: '#f25265'
|
||||||
|
when: $labels.includes('💀 Spam')
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
# PR labels and the branch patterns they should be auto-assigned to
|
||||||
|
✨ New Feature: ['FEATURE/*', 'FEAT/*']
|
||||||
|
🚚 Refactor: ['IMPROVMENTS/*', 'REFACTOR/*']
|
||||||
|
🦋 Bug Fix: ['FIX/*', 'HOT-FIX/*', 'BUG-FIX/*']
|
||||||
|
💯 Showcase: ['SHOWCASE/*', 'SHOWCASE_SUBMISSION/*']
|
||||||
|
💄 Stylistic Changes: ['STYLES/*', 'THEME/*', 'UI/*']
|
||||||
|
🏗️ Architectural Changes: ['ARCH/*', 'ARCHITECTURE/*']
|
||||||
|
🛠️ Build Changes: ['DOCKER/*', 'BUILD/*', 'CI/*', 'ACTIONS/*']
|
||||||
|
🌐 Language: ['LANG/*', 'INTERNATIONALIZATION/*', 'I18N/*', 'TEXT-UPDATE/*']
|
||||||
|
🤖 Auto: ['AUTO/*', 'BOT/*', 'snyk-upgrade-*', 'snyk-fix-*']
|
||||||
|
⛔ Don't Merge: ['WEBSITE/*', 'EXPERIMENT/*', 'DEPLOY/*', 'deploy_*', 'gh-pages', 'dev-demo']
|
|
@ -0,0 +1,27 @@
|
||||||
|
<!--
|
||||||
|
Thank you for contributing to Dashy!
|
||||||
|
So that your PR can be handled effectively, please populate the following fields
|
||||||
|
-->
|
||||||
|
|
||||||
|
**Category**:
|
||||||
|
> One of: Bugfix / Feature / Code style update / Refactoring Only / Build related changes / Documentation / Other (please specify)
|
||||||
|
|
||||||
|
**Overview**
|
||||||
|
> Briefly outline your new changes...
|
||||||
|
|
||||||
|
**Issue Number** _(if applicable)_ #00
|
||||||
|
|
||||||
|
**New Vars** _(if applicable)_
|
||||||
|
> If you've added any new build scripts, environmental variables, config file options, dependency or devDependency, please outline here
|
||||||
|
|
||||||
|
**Screenshot** _(if applicable)_
|
||||||
|
> If you've introduced any significant UI changes, please include a screenshot
|
||||||
|
|
||||||
|
**Code Quality Checklist** _(Please complete)_
|
||||||
|
- [ ] All changes are backwards compatible
|
||||||
|
- [ ] All lint checks and tests are passing
|
||||||
|
- [ ] There are no (new) build warnings or errors
|
||||||
|
- [ ] _(If a new config option is added)_ Attribute is outlined in the schema and documented
|
||||||
|
- [ ] _(If a new dependency is added)_ Package is essential, and has been checked out for security or performance
|
||||||
|
- [ ] _(If significant change)_ Bumps version in package.json
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
.DS_Store
|
||||||
|
node_modules
|
||||||
|
/dist
|
||||||
|
|
||||||
|
# local env files
|
||||||
|
.env.local
|
||||||
|
.env.*.local
|
||||||
|
|
||||||
|
# Log files
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
|
||||||
|
# Editor directories and files
|
||||||
|
.idea
|
||||||
|
*.suo
|
||||||
|
*.ntvs*
|
||||||
|
*.njsproj
|
||||||
|
*.sln
|
||||||
|
*.sw?
|
|
@ -0,0 +1,29 @@
|
||||||
|
# Config for running Dashy in GitPod's cloud dev environment
|
||||||
|
# Docs: https://www.gitpod.io/docs/references/gitpod-yml
|
||||||
|
|
||||||
|
# Commands to start on workspace startup
|
||||||
|
tasks:
|
||||||
|
- init: yarn install
|
||||||
|
command: yarn dev
|
||||||
|
# Ports to expose on workspace startup
|
||||||
|
ports:
|
||||||
|
- port: 8080 # Default dev server
|
||||||
|
visibility: private
|
||||||
|
onOpen: open-preview
|
||||||
|
- port: 4000 # Default prod server
|
||||||
|
visibility: public
|
||||||
|
onOpen: open-preview
|
||||||
|
prebuilds:
|
||||||
|
# Adds 'Open in GitPod' to PRs
|
||||||
|
addBadge: true
|
||||||
|
addComment: false
|
||||||
|
vscode:
|
||||||
|
# Adds Vue.js and formatting extensions
|
||||||
|
extensions:
|
||||||
|
- octref.vetur
|
||||||
|
- dbaeumer.vscode-eslint
|
||||||
|
- streetsidesoftware.code-spell-checker
|
||||||
|
- PKief.material-icon-theme
|
||||||
|
- wix.vscode-import-cost
|
||||||
|
- oderwat.indent-rainbow
|
||||||
|
- eamodio.gitlens
|
|
@ -0,0 +1,65 @@
|
||||||
|
{
|
||||||
|
// Use IntelliSense to learn about possible attributes.
|
||||||
|
// Hover to view descriptions of existing attributes.
|
||||||
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"type": "msedge",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "dashy: edge",
|
||||||
|
"url": "http://localhost:8080",
|
||||||
|
"webRoot": "${workspaceFolder}",
|
||||||
|
"breakOnLoad": true,
|
||||||
|
"pathMapping": {
|
||||||
|
"/_karma_webpack_": "${workspaceFolder}"
|
||||||
|
},
|
||||||
|
"sourceMapPathOverrides": {
|
||||||
|
"webpack:/*": "${webRoot}/*",
|
||||||
|
"/./*": "${webRoot}/*",
|
||||||
|
"/src/*": "${webRoot}/*",
|
||||||
|
"/*": "*",
|
||||||
|
"/./~/*": "${webRoot}/node_modules/*"
|
||||||
|
},
|
||||||
|
"preLaunchTask": "dashy start"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "chrome",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "dashy: chrome",
|
||||||
|
"url": "http://localhost:8080",
|
||||||
|
"webRoot": "${workspaceFolder}",
|
||||||
|
"breakOnLoad": true,
|
||||||
|
"pathMapping": {
|
||||||
|
"/_karma_webpack_": "${workspaceFolder}"
|
||||||
|
},
|
||||||
|
"sourceMapPathOverrides": {
|
||||||
|
"webpack:/*": "${webRoot}/*",
|
||||||
|
"/./*": "${webRoot}/*",
|
||||||
|
"/src/*": "${webRoot}/*",
|
||||||
|
"/*": "*",
|
||||||
|
"/./~/*": "${webRoot}/node_modules/*"
|
||||||
|
},
|
||||||
|
"preLaunchTask": "dashy start"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "firefox",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "dashy: firefox",
|
||||||
|
"url": "http://localhost:8080",
|
||||||
|
"webRoot": "${workspaceFolder}",
|
||||||
|
"breakOnLoad": true,
|
||||||
|
"pathMapping": {
|
||||||
|
"/_karma_webpack_": "${workspaceFolder}"
|
||||||
|
},
|
||||||
|
"sourceMapPathOverrides": {
|
||||||
|
"webpack:/*": "${webRoot}/*",
|
||||||
|
"/./*": "${webRoot}/*",
|
||||||
|
"/src/*": "${webRoot}/*",
|
||||||
|
"/*": "*",
|
||||||
|
"/./~/*": "${webRoot}/node_modules/*"
|
||||||
|
},
|
||||||
|
"preLaunchTask": "dashy start"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
"version": "2.0.0",
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"label": "dashy start",
|
||||||
|
"type": "npm",
|
||||||
|
"script": "dev",
|
||||||
|
"isBackground": true,
|
||||||
|
"problemMatcher": [
|
||||||
|
{
|
||||||
|
"base": "$tsc-watch",
|
||||||
|
"background": {
|
||||||
|
"activeOnStart": true,
|
||||||
|
"beginsPattern": "Starting development server",
|
||||||
|
"endsPattern": "Compiled successfully"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
nodeLinker: node-modules
|
|
@ -0,0 +1,51 @@
|
||||||
|
FROM node:18.19.1-alpine AS BUILD_IMAGE
|
||||||
|
|
||||||
|
# Set the platform to build image for
|
||||||
|
ARG TARGETPLATFORM
|
||||||
|
ENV TARGETPLATFORM=${TARGETPLATFORM:-linux/amd64}
|
||||||
|
|
||||||
|
# Install additional tools needed if on arm64 / armv7
|
||||||
|
RUN \
|
||||||
|
case "${TARGETPLATFORM}" in \
|
||||||
|
'linux/arm64') apk add --no-cache python3 make g++ ;; \
|
||||||
|
'linux/arm/v7') apk add --no-cache python3 make g++ ;; \
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Create and set the working directory
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Install app dependencies
|
||||||
|
COPY package.json yarn.lock ./
|
||||||
|
RUN yarn install --ignore-engines --immutable --no-cache --network-timeout 300000 --network-concurrency 1
|
||||||
|
|
||||||
|
# Copy over all project files and folders to the working directory
|
||||||
|
COPY . ./
|
||||||
|
|
||||||
|
# Build initial app for production
|
||||||
|
RUN yarn build --mode production --no-clean
|
||||||
|
|
||||||
|
# Production stage
|
||||||
|
FROM node:20.11.1-alpine3.19
|
||||||
|
|
||||||
|
# Define some ENV Vars
|
||||||
|
ENV PORT=8080 \
|
||||||
|
DIRECTORY=/app \
|
||||||
|
IS_DOCKER=true
|
||||||
|
|
||||||
|
# Create and set the working directory
|
||||||
|
WORKDIR ${DIRECTORY}
|
||||||
|
|
||||||
|
# Update tzdata for setting timezone
|
||||||
|
RUN apk add --no-cache tzdata
|
||||||
|
|
||||||
|
# Copy built application from build phase
|
||||||
|
COPY --from=BUILD_IMAGE /app ./
|
||||||
|
|
||||||
|
# Finally, run start command to serve up the built application
|
||||||
|
CMD [ "yarn", "build-and-start" ]
|
||||||
|
|
||||||
|
# Expose the port
|
||||||
|
EXPOSE ${PORT}
|
||||||
|
|
||||||
|
# Run simple healthchecks every 5 mins, to check that everythings still great
|
||||||
|
HEALTHCHECK --interval=5m --timeout=5s --start-period=30s CMD yarn health-check
|
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2021-2024 Alicia Sykes <https://aliciasykes.com>
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
|
@ -0,0 +1,810 @@
|
||||||
|
|
||||||
|
<h1 align="center">Dashy</h1>
|
||||||
|
<p align="center">
|
||||||
|
<i>Dashy helps you organize your self-hosted services by making them accessible from a single place</i>
|
||||||
|
<br/>
|
||||||
|
<img width="120" src="https://i.ibb.co/yhbt6CY/dashy.png" />
|
||||||
|
<br/>
|
||||||
|
<b><a href="./docs/showcase.md">User Showcase</a></b> | <b><a href="https://demo.dashy.to">Live Demo</a></b> | <b><a href="./docs/quick-start.md">Getting Started</a></b> | <b><a href="https://dashy.to/docs">Documentation</a></b> | <b><a href="https://github.com/Lissy93/dashy">GitHub</a></b>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<br>
|
||||||
|
<sup>Dashy is kindly sponsored by <a href="https://umbrel.com?ref=dashy">Umbrel</a> - the personal home cloud and OS for self-hosting</sup><br>
|
||||||
|
<a href="https://umbrel.com?ref=dashy">
|
||||||
|
<img width="400" src="https://github.com/Lissy93/dashy/blob/WEBSITE/docs-site-source/static/umbrel-banner.jpg?raw=true" />
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> Version [3.0.0](https://github.com/Lissy93/dashy/releases/tag/3.0.0) has been released, and requires some changes to your setup, see [#1529](https://github.com/Lissy93/dashy/discussions/1529) for details.
|
||||||
|
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary><b>Table of Contents</b></summary>
|
||||||
|
<p>
|
||||||
|
|
||||||
|
- **Getting Started**
|
||||||
|
- [🌈 Features](#features-)
|
||||||
|
- [⚡Demo](#demo-)
|
||||||
|
- [🚀 Getting Started](#getting-started-)
|
||||||
|
- [🔧 Configuring](#configuring-)
|
||||||
|
- **Feature Overview**
|
||||||
|
- [🎨 Theming](#theming-)
|
||||||
|
- [🧸 Icons](#icons-)
|
||||||
|
- [🚦 Status Indicators](#status-indicators-)
|
||||||
|
- [📊 Widgets](#widgets-)
|
||||||
|
- [🔐 Authentication](#authentication-)
|
||||||
|
- [👓 Alternate Views](#alternate-views-)
|
||||||
|
- [🖱️ Opening Methods](#opening-methods-)
|
||||||
|
- [🔎 Searching and Shortcuts](#searching-and-shortcuts-)
|
||||||
|
- [⚙️ Config Editor](#config-editor-)
|
||||||
|
- [☁ Cloud Backup & Sync](#cloud-backup--sync-)
|
||||||
|
- [🌎 Language Switching](#language-switching-)
|
||||||
|
- [📃 Multi-Page Support](#multi-page-support-)
|
||||||
|
- **Community**
|
||||||
|
- [📊 System Requirements](#system-requirements-)
|
||||||
|
- [🙋♀️ Support](#support-)
|
||||||
|
- [💖 Supporting Dashy](#supporting-dashy-)
|
||||||
|
- [🏆 Credits](#credits-)
|
||||||
|
- [🧱 Developing](#developing-)
|
||||||
|
- [🗞️ Release Schedule](#release-schedule-)
|
||||||
|
- [📘 Documentation](#documentation-)
|
||||||
|
- [🛣️ Roadmap](#roadmap-)
|
||||||
|
- [🙌 Alternatives](#alternatives-)
|
||||||
|
- [📜 License](#license-)
|
||||||
|
|
||||||
|
</p>
|
||||||
|
</details>
|
||||||
|
|
||||||
|
## Features 🌈
|
||||||
|
- 📃 Support for multiple pages
|
||||||
|
- 🚦 Real-time status monitoring for each of your apps/links
|
||||||
|
- 📊 Use widgets to display info and dynamic content from self-hosted services
|
||||||
|
- 🔎 Instant search by name, domain, or tags + customizable hotkeys & keyboard shortcuts
|
||||||
|
- 🎨 Many built-in color themes, with UI color editor and support for custom CSS
|
||||||
|
- 🧸 Many icon options - Font-Awesome, homelab icons, auto-fetching Favicon, images, emojis, etc.
|
||||||
|
- 💂 Optional authentication with multi-user access, configurable privileges, and SSO support
|
||||||
|
- 🌎 Multi-language support, with 10+ human-translated languages, and more on the way
|
||||||
|
- ☁ Optional, encrypted, free off-site cloud backup and restore feature available
|
||||||
|
- 💼 A workspace view, for easily switching between multiple apps simultaneously
|
||||||
|
- 🛩️ A minimal view, for use as a fast-loading browser Startpage
|
||||||
|
- 🖱️ Choose app launch methods: new tab, same tab, clipboard, pop-up modal, or open in workspace view
|
||||||
|
- 📏 Customizable layout, sizes, text, component visibility, sort order, behavior, etc.
|
||||||
|
- 🖼️ Options for a full-screen background image, custom nav-bar links, HTML footer, title, etc.
|
||||||
|
- 🚀 Easy to setup with Docker, or on bare metal, or with 1-Click cloud deployment
|
||||||
|
- ⚙️ Easy single-file YAML-based configuration, and option to configure app through the UI
|
||||||
|
- ✨ Under active development with improvements and new features added regularly
|
||||||
|
- 🤏 Small bundle size, fully responsive UI, and PWA for basic offline access
|
||||||
|
- 🆓 100% free and open-source
|
||||||
|
- 🔐 Strong focus on privacy
|
||||||
|
- 🌈 And loads more...
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#dashy)**
|
||||||
|
|
||||||
|
## Demo ⚡
|
||||||
|
|
||||||
|
**Live Instances**: [Demo 1](https://demo.dashy.to) (Live Demo) ┆ [Demo 2](https://live.dashy.to) (Dashy Links) ┆ [Demo 3](https://dev.dashy.to) (Dev Preview)
|
||||||
|
|
||||||
|
**Screenshots**: Checkout the [Showcase](./docs/showcase.md), to see example dashboards from the community
|
||||||
|
|
||||||
|
**Spin up your own demo**: [](https://labs.play-with-docker.com/?stack=https://raw.githubusercontent.com/Lissy93/dashy/master/docker-compose.yml) or [`docker run -p 8080:8080 lissy93/dashy`](./docs/quick-start.md)
|
||||||
|
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img width="800" src="https://i.ibb.co/L8YbNNc/dashy-demo2.gif" alt="Demo" />
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#dashy)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Getting Started 🚀
|
||||||
|
|
||||||
|
> For full setup instructions, see: [**Deployment**](./docs/deployment.md)
|
||||||
|
|
||||||
|
### Deploying from Docker Hub 🐳
|
||||||
|
|
||||||
|
You will need [Docker](https://docs.docker.com/get-docker/) installed on your system
|
||||||
|
|
||||||
|
```
|
||||||
|
docker run -p 8080:8080 lissy93/dashy
|
||||||
|
```
|
||||||
|
|
||||||
|
Or
|
||||||
|
|
||||||
|
```docker
|
||||||
|
docker run -d \
|
||||||
|
-p 4000:8080 \
|
||||||
|
-v /root/my-local-conf.yml:/app/user-data/conf.yml \
|
||||||
|
--name my-dashboard \
|
||||||
|
--restart=always \
|
||||||
|
lissy93/dashy:latest
|
||||||
|
```
|
||||||
|
[](https://hub.docker.com/r/lissy93/dashy)
|
||||||
|
|
||||||
|
See also: [examples with Docker Compose](./docs/deployment.md#using-docker-compose). Dashy is also available via GHCR, and tags for other architectures (`arm32v7`, `arm64v8`, etc.) and set versions are supported
|
||||||
|
|
||||||
|
> Once you've got Dashy running, see [App Management Docs](./docs/management.md) for info on using health checks, updating, backups, web-server configs, logs, performance, security, and more.
|
||||||
|
|
||||||
|
### Deploying from Source 🔨
|
||||||
|
|
||||||
|
You will need [git](https://git-scm.com/downloads), the latest or LTS version of [Node.js](https://nodejs.org/) and _(optionally)_ [Yarn](https://yarnpkg.com/) installed on your system.
|
||||||
|
|
||||||
|
- Clone the Repo: `git clone https://github.com/Lissy93/dashy.git` and `cd dashy`
|
||||||
|
- Configuration: Fill in your settings in `./user-data/conf.yml`
|
||||||
|
- Install dependencies: `yarn`
|
||||||
|
- Build: `yarn build`
|
||||||
|
- Run: `yarn start`
|
||||||
|
|
||||||
|
> See docs: [Full list of Dashy's commands](./docs/management.md#basic-commands)
|
||||||
|
|
||||||
|
### Deploy to the Cloud ☁️
|
||||||
|
|
||||||
|
Dashy supports **1-Click deployments** on several popular cloud platforms. To spin up a new instance, just click a link below:
|
||||||
|
- [<img src="https://i.ibb.co/ZxtzrP3/netlify.png" width="18"/> Deploy to Netlify](https://app.netlify.com/start/deploy?repository=https://github.com/lissy93/dashy)
|
||||||
|
- [<img src="https://i.ibb.co/d2P1WZ7/heroku.png" width="18"/> Deploy to Heroku](https://heroku.com/deploy?template=https://github.com/Lissy93/dashy)
|
||||||
|
- [<img src="https://i.ibb.co/Ld2FZzb/vercel.png" width="18"/> Deploy to Vercel](https://vercel.com/new/project?template=https://github.com/lissy93/dashy)
|
||||||
|
- [<img src="https://i.ibb.co/xCHtzgh/render.png" width="18"/> Deploy to Render](https://render.com/deploy?repo=https://github.com/lissy93/dashy/tree/deploy_render)
|
||||||
|
- [<img src="https://railway.app/brand/logo-light.png" width="18"/> Deploy to Railway](https://railway.app/template/MtdjAQ?referralCode=app)
|
||||||
|
- [<img src="https://i.ibb.co/J7MGymY/googlecloud.png" width="18"/> Deploy to GCP](https://deploy.cloud.run/?git_repo=https://github.com/lissy93/dashy.git)
|
||||||
|
- [<img src="https://i.ibb.co/HVWVYF7/docker.png" width="18"/> Deploy to PWD](https://labs.play-with-docker.com/?stack=https://raw.githubusercontent.com/Lissy93/dashy/master/docker-compose.yml)
|
||||||
|
- [<img src="https://i.ibb.co/7NxnM2P/easypanel.png" width="18"/> Deploy to Easypanel](https://easypanel.io/docs/templates/dashy)
|
||||||
|
|
||||||
|
> For more 1-click cloud deployments, see [Cloud Deployment](./docs/deployment.md#deploy-to-cloud-service)
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#dashy)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Configuring 🔧
|
||||||
|
|
||||||
|
> For full configuration documentation, see: [**Configuring**](./docs/configuring.md)
|
||||||
|
|
||||||
|
Dashy is configured through a YAML file, located at `./user-data/conf.yml`. In addition, you can find a complete list of available options in the [Configuring Docs](./docs/configuring.md). The config can also be edited and saved directly through the UI.
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#dashy)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Theming 🎨
|
||||||
|
|
||||||
|
> For full theming documentation, see: [**Theming**](./docs/theming.md)
|
||||||
|
|
||||||
|
Dashy comes pre-bundled with several built-in themes, which you can preview, apply and edit through the UI. With the theme configurator and support for custom CSS, everything is in place to quickly develop your own unique-looking dashboard.
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<a href="https://i.ibb.co/BVSHV1v/dashy-themes-slideshow.gif">
|
||||||
|
<img alt="Example Themes" src="https://raw.githubusercontent.com/Lissy93/dashy/master/docs/assets/theme-slideshow.gif" width="400" />
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<a href="https://i.ibb.co/cLDXj1R/dashy-theme-configurator.gif">
|
||||||
|
<img alt="Example Themes" src="https://raw.githubusercontent.com/Lissy93/dashy/master/docs/assets/theme-config-demo.gif" width="400" />
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#dashy)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Icons 🧸
|
||||||
|
|
||||||
|
> For full iconography documentation, see: [**Icons**](./docs/icons.md)
|
||||||
|
|
||||||
|
Both sections and items can have an icon associated with them, defined under the `icon` attribute. With several different icon packs supported, you'll be able to find the perfect thumbnail for any app or service.
|
||||||
|
|
||||||
|
The following icon types are supported:
|
||||||
|
- **Favicon** - Automatically fetch an apps icon from its Favicon or logo image
|
||||||
|
- **Icon Packs** - Use any icon from [font-awesome], [simple-icons] or [material icons]
|
||||||
|
- **Emoji** - Any valid emoji can be used as an icon
|
||||||
|
- **Generative** - Unique, auto-generated images for easily identifying services
|
||||||
|
- **URL** - Pass the URL of any valid image in to have it fetched and rendered
|
||||||
|
- **Local** - Store custom images locally and reference by filename
|
||||||
|
- **Homelab Icons** - Using [dashboard-icons] for logos of commonly self-hosted services
|
||||||
|
|
||||||
|
|
||||||
|
[font-awesome]: https://fontawesome.com/icons
|
||||||
|
[simple-icons]: https://simpleicons.org/
|
||||||
|
[material icons]: https://github.com/Templarian/MaterialDesign
|
||||||
|
[dashboard-icons]: https://github.com/WalkxCode/dashboard-icons
|
||||||
|
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img width="400" src="https://i.ibb.co/GTVmZnc/dashy-example-icons.png" />
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#dashy)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Status Indicators 🚦
|
||||||
|
|
||||||
|
> For full monitoring documentation, see: [**Status Indicators**](./docs/status-indicators.md)
|
||||||
|
|
||||||
|
Dashy has an optional feature to check if each app/ service is up and responding, then display a small status indicator icon. Hovering over it will show additional stats like response time and status code.
|
||||||
|
|
||||||
|
Status indicators can be globally enabled by setting `appConfig.statusCheck: true` or enabled/ disabled on a per-item basis. Status is checked on page load, but you can allow continuous polling by specifying a time interval between checks, in seconds under `appConfig.statusCheckInterval`. You can also use a different endpoint for status checking, with `statusCheckUrl`, and if needed, pass in custom headers under `statusCheckHeaders`.
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img alt="Status Checks demo" src="https://raw.githubusercontent.com/Lissy93/dashy/master/docs/assets/status-check-demo.gif" width="600" />
|
||||||
|
</p>
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#dashy)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Widgets 📊
|
||||||
|
|
||||||
|
> For full widget documentation, see: [**Widgets**](./docs/widgets.md)
|
||||||
|
|
||||||
|
You can display dynamic content from services in the form of widgets. There are several pre-built widgets available for showing useful info, and integrations with commonly self-hosted services, but you can also easily create your own for almost any app.
|
||||||
|
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img width="600" src="https://i.ibb.co/GFjXVHy/dashy-widgets.png" />
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#dashy)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Authentication 🔐
|
||||||
|
|
||||||
|
> For full authentication documentation, see: [**Authentication**](./docs/authentication.md)
|
||||||
|
|
||||||
|
Dashy has full support for secure single-sign-on using [Keycloak](https://www.keycloak.org/) for secure, easy authentication, see [setup docs](/docs/authentication.md#keycloak) for a full usage guide.
|
||||||
|
|
||||||
|
There is also a basic auth feature, which doesn't require additional setup. To enable this, add an `auth` attribute under `appConfig`, containing an array of `users`, each with a username, SHA-256 hashed password and optional user type. Basic auth also supports several access control features, including read-only guest access and granular controls.
|
||||||
|
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
appConfig:
|
||||||
|
auth:
|
||||||
|
users:
|
||||||
|
- user: alicia
|
||||||
|
hash: 4D1E58C90B3B94BCAD9848ECCACD6D2A8C9FBC5CA913304BBA5CDEAB36FEEFA3
|
||||||
|
type: admin
|
||||||
|
```
|
||||||
|
|
||||||
|
Other access control systems are also supported, see the [Alternative Auth Methods](./docs/authentication.md#alternative-authentication-methods) docs.
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#dashy)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Alternate Views 👓
|
||||||
|
|
||||||
|
As well as the default homepage, there is also:
|
||||||
|
- A minimal view, valid for use as a browser start page
|
||||||
|
- A workspace view, useful for visiting many apps simultaneously
|
||||||
|
|
||||||
|
You can change the view from the UI, using the switch icon in the top-right corner, or select a default view in the config under `appConfig.startingView` attribute.
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<b>Example of Workspace View</b><br>
|
||||||
|
<img alt="Workspace view demo" src="https://raw.githubusercontent.com/Lissy93/dashy/master/docs/assets/workspace-demo.gif" width="600" />
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<b>Example of Minimal View</b><br>
|
||||||
|
<img alt="Workspace view demo" src="https://raw.githubusercontent.com/Lissy93/dashy/master/docs/assets/minimal-view-demo.gif" width="600" />
|
||||||
|
</p>
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#dashy)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Opening Methods 🖱️
|
||||||
|
|
||||||
|
> For full documentation on views and opening methods, see: [**Alternate Views**](./docs/alternate-views.md)
|
||||||
|
|
||||||
|
There are several different ways you can launch apps. You can specify the default opening method for any given item under the `target` attribute or set a site-wide default under `appConfig.defaultOpeningMethod`. Right-click on an item to item for all options. The following options are supported:
|
||||||
|
- `sametab` - The app will be launched in the current tab
|
||||||
|
- `newtab` - The app will be launched in a new tab (or use Ctrl + Click)
|
||||||
|
- `modal` - Launch app in a resizable/ movable popup modal on the current page (or use Alt + Click)
|
||||||
|
- `workspace` - Changes to Workspace view and launches app
|
||||||
|
- `clipboard` - Copy the app's URL to your system clipboard
|
||||||
|
- `top` - Opens in the top-most browsing context, useful if you're accessing Dashy through an iframe
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#dashy)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Searching and Shortcuts 🔎
|
||||||
|
|
||||||
|
> For full documentation on searching, see: [**Searching & Shortcuts**](./docs/searching.md)
|
||||||
|
|
||||||
|
Quickly finding and launching applications is the primary aim of Dashy. To that end, instant search and customizable keyboard shortcuts are built-in.
|
||||||
|
|
||||||
|
To start filtering, start typing—no need to select the search bar or use any special key. Then use either the tab key or arrow keys to select and move between results, and hit enter to launch the currently selected application.
|
||||||
|
|
||||||
|
For apps that you use regularly, you can set a custom keybinding. Use the `hotkey` parameter on a certain item to specify a numeric key between `0 - 9`. You can then launch that app by just pressing that key.
|
||||||
|
|
||||||
|
You can also add custom tags to a given item to make finding them based on keywords easier. For example, in the following example, searching for 'Movies' will show 'Plex'
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
items:
|
||||||
|
- title: Plex
|
||||||
|
hotkey: 8
|
||||||
|
icon: favicon
|
||||||
|
description: Media library
|
||||||
|
url: https://plex.lab.local
|
||||||
|
tags: [ movies, videos, music ]
|
||||||
|
```
|
||||||
|
|
||||||
|
To search the web directly through Dashy, just press enter after typing your query. Options for web search are set under `appConfig.webSearch`. There is built-in support for [10+ search engines](./docs/searching.md#setting-search-engine), or [use your own custom provider](./docs/searching.md#using-custom-search-engine) or self-hosted instance. With the web search, you can also define your bangs to redirect results to any given app, website, or search engine, when the query is preceded with a certain character sequence (usually beginning in `/`, `!` or `:`).
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
webSearch:
|
||||||
|
searchEngine: duckduckgo
|
||||||
|
openingMethod: newtab
|
||||||
|
searchBangs:
|
||||||
|
/r: reddit
|
||||||
|
/w: wikipedia
|
||||||
|
/s: https://whoogle.local/search?q=
|
||||||
|
':wolf': wolframalpha
|
||||||
|
':so': stackoverflow
|
||||||
|
':git': github
|
||||||
|
```
|
||||||
|
|
||||||
|
Hit `Esc` at any time to close any open apps, clear the search field, or hide any modals.
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#dashy)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Config Editor ⚙️
|
||||||
|
> For full config documentation, see: [**Configuring**](./docs/configuring.md)
|
||||||
|
|
||||||
|
As well as passing in a YAML config file, you can also configure the app directly through the UI and preview changes live.
|
||||||
|
|
||||||
|
To edit any section or item, right-click on it, and select "Edit", or enter the Edit Mode (using the Pen icon in the top-right), then click any part of the page to edit. Changes will be visible immediately but will not be saved until clicking "Save to Disk" or "Save Locally".
|
||||||
|
|
||||||
|
Under the config menu, you can export, view, backup, or reset app config and edit the raw config file in a text editor with built-in schema validation. It's recommended to keep a backup of your config.
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img alt="Interactive Editor demo" src="https://user-images.githubusercontent.com/1862727/139543020-b0576d28-0830-476f-afc8-a815d4de6def.gif" width="600" />
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img alt="Config Editor demo" src="https://raw.githubusercontent.com/Lissy93/dashy/master/docs/assets/config-editor-demo.gif" width="600" />
|
||||||
|
</p>
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#dashy)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Cloud Backup & Sync ☁
|
||||||
|
|
||||||
|
> For full backup documentation, see: [**Cloud Backup & Sync**](./docs/backup-restore.md)
|
||||||
|
|
||||||
|
Dashy has an **optional** built-in feature for securely backing up your config to a hosted cloud service and then restoring it on another instance. This is useful not only for backing up your configuration off-site but also enables Dashy to be used without having to write a YAML config file.
|
||||||
|
|
||||||
|
All data is fully E2E encrypted before being sent to the backend (done in [`CloudBackup.js`](https://github.com/Lissy93/dashy/blob/master/src/utils/CloudBackup.js) using [crypto.js](https://github.com/brix/crypto-js) 's AES method). The data is then sent to a [Cloudflare worker](https://developers.cloudflare.com/workers/learning/how-workers-works) and stored in a [KV](https://developers.cloudflare.com/workers/learning/how-kv-works) data store.
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#dashy)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Language Switching 🌎
|
||||||
|
> For full internationalization documentation, see: [**Multi-Language Support**](./docs/multi-language-support.md)
|
||||||
|
|
||||||
|
Dashy supports multiple languages and locales. When available, your language should be automatically detected and applied on load. But you can also select a language through the UI (under config --> Switch Language) or set `appConfig.language` to your language (specified as a 2-digit [ISO 639-1 code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)), as seen below, e.g. `language: de`.
|
||||||
|
|
||||||
|
#### Supported Languages
|
||||||
|
- 🇬🇧 **English**: `en` - _Default_
|
||||||
|
- 🇦🇪 **Arabic**: `ar` - _Auto-generated_
|
||||||
|
- 🇧🇩 **Bengali**: `bn` - Contributed by **[@soaibsafi](https://github.com/soaibsafi)**
|
||||||
|
- 🇧🇬 **Bulgarian**: `bg` - Contributed by **[@asenov](https://github.com/asenov)**
|
||||||
|
- 🇨🇳 **Chinese**: `cn` - Contributed by **[@FormatToday](https://github.com/FormatToday)**
|
||||||
|
- 🇨🇿 **Czech**: `cs` - Contributed by **[@Tuzi555](https://github.com/Tuzi555)**
|
||||||
|
- 🇩🇰 **Danish**: `da` - Contributed by **[@lordpansar](https://github.com/lordpansar)**
|
||||||
|
- 🇳🇱 **Dutch**: `nl` - Contributed by **[@evroon](https://github.com/evroon)**
|
||||||
|
- 🇫🇷 **French**: `fr` - Contributed by **[@EVOTk](https://github.com/EVOTk)**
|
||||||
|
- 🇩🇪 **German**: `de` - Contributed by **[@Niklashere](https://github.com/Niklashere)**
|
||||||
|
- 🇬🇷 **Greek**: `el` - Contributed by **[@aviolaris](https://github.com/aviolaris)**
|
||||||
|
- 🇮🇳 **Hindi**: `hi` - _Auto-generated_
|
||||||
|
- 🇮🇹 **Italian**: `it` - Contributed by **[@alexdelprete](https://github.com/alexdelprete)**
|
||||||
|
- 🇯🇵 **Japanese**: `ja` - _Auto-generated_
|
||||||
|
- 🇰🇷 **Korean**: `ko` - Contributed by **[@boggy-cs](https://github.com/boggy-cs)**
|
||||||
|
- 🇳🇴 **Norwegian Bokmål**: `nb` - Contributed by **[@rubjo](https://github.com/rubjo)**
|
||||||
|
- 🇵🇱 **Polish**: `pl` - Contributed by **[@skaarj1989](https://github.com/skaarj1989)**
|
||||||
|
- 🇵🇹 **Portuguese**: `pt` - Contributed by **[@LeoColman](https://github.com/LeoColman)**
|
||||||
|
- 🛰️ **Galician**: `gl` - Contributed by **[@pvillaverde](https://github.com/pvillaverde)**
|
||||||
|
- 🇷🇺 **Russian**: `ru` - _Auto-generated_
|
||||||
|
- 🇸🇰 **Slovak**: `sk` - Contributed by **[@Smexhy](https://github.com/Smexhy)**
|
||||||
|
- 🇸🇮 **Slovenian**: `sl` - Contributed by **[@UrekD](https://github.com/UrekD)**
|
||||||
|
- 🇪🇸 **Spanish**: `es` - Contributed by **[@lu4t](https://github.com/lu4t)**
|
||||||
|
- 🇸🇪 **Swedish**: `sv` - Contributed by **[@BOZG](https://github.com/BOZG)**
|
||||||
|
- 🇹🇼 **Traditional Chinese**: `zh-TW` - Contributed by **[@stanly0726](https://github.com/stanly0726)**
|
||||||
|
- 🇹🇷 **Turkish**: `tr` - Contributed by **[@imsakg](https://github.com/imsakg)**
|
||||||
|
- 🏴☠️ **Pirate**: `pirate` - Contributed by **[@Lissy93](https://github.com/lissy93)**
|
||||||
|
|
||||||
|
#### Add your Language
|
||||||
|
I would love Dashy to be available to everyone without language being a barrier to entry. If you've got a few minutes to spare, consider adding translations for your language. It's a quick task, and all text is in [a single JSON file](https://github.com/Lissy93/dashy/tree/master/src/assets/locales). Since any missing text will fall back to English, you don't need to translate it all.
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#dashy)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Multi-Page Support 📃
|
||||||
|
|
||||||
|
> For full multi-page documentation, see: [**Pages & Sections**](./docs/pages-and-sections.md)
|
||||||
|
|
||||||
|
Within your dashboard, you can have as many sub-pages as you require. To load additional pages, specify a name, and path to a config file under `pages`. The config file can be either local (stored in `/public`), or remote (located anywhere accessible).
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
pages:
|
||||||
|
- name: Networking Services
|
||||||
|
path: 'networking.yml'
|
||||||
|
- name: Work Stuff
|
||||||
|
path: 'work.yml'
|
||||||
|
```
|
||||||
|
|
||||||
|
Or
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
pages:
|
||||||
|
- name: Getting Started
|
||||||
|
path: 'https://snippet.host/tvcw/raw'
|
||||||
|
- name: Homelab
|
||||||
|
path: 'https://snippet.host/tetp/raw'
|
||||||
|
- name: Browser Startpage
|
||||||
|
path: 'https://snippet.host/zcom/raw'
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## System Requirements 📊
|
||||||
|
|
||||||
|
If running on bare metal, Dashy requires [Node](https://nodejs.org/en/) V 16.0.0 or later, LTS (16.13.2) is recommended.
|
||||||
|
|
||||||
|
If running in Docker container, the recommended base image is Alpine (3.15)
|
||||||
|
|
||||||
|
The hardware requirements vary depending on where and how you are running Dashy. Generally speaking, on a bare-metal system or Docker container, 1GB of memory should be more than enough, and depending on whether you are using your own assets, then 1GB of disk space should be sufficient.
|
||||||
|
|
||||||
|
If you are using one of the 1-click cloud deployment methods, serving the app through a CDN or using a static hosting provider, then there are no specific requirements, as the built app is just a series of static JS files, and so is very light-weight.
|
||||||
|
|
||||||
|
Dashy also wells run on low-powered ARM-based single board computers, such as a Raspberry Pi (tested on Pi 3)
|
||||||
|
|
||||||
|
**Browser Support**
|
||||||
|
 |  |  |  | 
|
||||||
|
--- | --- | --- | --- | --- |
|
||||||
|
Latest ✔ | Latest ✔ | 10+ ✔ | Latest ✔ | 6.1+ ❌ |
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#dashy)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Support 🙋♀️
|
||||||
|
|
||||||
|
If you're having trouble getting Dashy up and running, or have a question about usage or configuration, feel free to ask. The best place to do this is via [the Discussions](https://github.com/Lissy93/dashy/discussions).
|
||||||
|
|
||||||
|
If you've found something which isn't working as it should, please raise a bug by [opening a ticket](https://github.com/Lissy93/dashy/issues/new/choose).
|
||||||
|
|
||||||
|
It's best to check the [docs](./docs), [previous issues](https://github.com/Lissy93/dashy/issues?q=label%3A%22%F0%9F%A4%B7%E2%80%8D%E2%99%82%EF%B8%8F+Question%22+) and [troubleshooting guide](./docs/troubleshooting.md) first.
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#dashy)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Supporting Dashy 💖
|
||||||
|
|
||||||
|
> For full details and other ways you can help out, see: [**Contributing**](./docs/contributing.md)
|
||||||
|
|
||||||
|
If you're using Dashy and would like to help support its development, then that would be awesome! Contributions of any type, any size, are always very much appreciated, and we will appropriately credit you for your effort.
|
||||||
|
|
||||||
|
Several areas that we need a bit of help with at the moment are:
|
||||||
|
- Translating - Help make Dashy available to non-native English speakers by [adding your language](./docs/multi-language-support.md#adding-a-new-language)
|
||||||
|
- Donate a small amount by [Sponsoring @Lissy93 on GitHub](https://github.com/sponsors/Lissy93) and receive some extra perks!
|
||||||
|
- Complete a [short survey](https://survey.typeform.com/to/gl0L68ou) to have your say about future features
|
||||||
|
- Share your dashboard in the [Showcase](https://github.com/Lissy93/dashy/blob/master/docs/showcase.md#dashy-showcase-), to inspire others
|
||||||
|
- Spread the word by sharing Dashy or a screenshot of your dashboard to help new users discover it
|
||||||
|
- Submit a PR to add a new feature, fix a bug, update the docs, add a theme, widget or something else
|
||||||
|
- Star Dashy on GitHub/ DockerHub or leave an upvote / review on [these platforms](https://github.com/Lissy93/dashy/blob/master/docs/contributing.md#star-upvote-or-leave-a-review)
|
||||||
|
|
||||||
|
[](https://github.com/sponsors/Lissy93)
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#dashy)**
|
||||||
|
|
||||||
|
## Credits 🏆
|
||||||
|
|
||||||
|
> For a complete list of credits, and attributions to packages used within Dashy, see: [**Credits**](./docs/credits.md)
|
||||||
|
|
||||||
|
Thank you so much to everyone who has helped with Dashy so far; every contribution is very much appreciated.
|
||||||
|
|
||||||
|
#### Sponsors
|
||||||
|
|
||||||
|
Huge thanks to the sponsors helping to support Dashy's development!
|
||||||
|
<!-- readme: sponsors -start -->
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://github.com/vincentkoc">
|
||||||
|
<img src="https://avatars.githubusercontent.com/u/25068?u=fbd5b2d51142daa4bdbc21e21953a3b8b8188a4a&v=4" width="80;" alt="vincentkoc"/>
|
||||||
|
<br />
|
||||||
|
<sub><b>Vincent Koc</b></sub>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://github.com/BrianCurliss">
|
||||||
|
<img src="https://avatars.githubusercontent.com/u/1222949?v=4" width="80;" alt="BrianCurliss"/>
|
||||||
|
<br />
|
||||||
|
<sub><b>Brian Curliss</b></sub>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://github.com/AnandChowdhary">
|
||||||
|
<img src="https://avatars.githubusercontent.com/u/2841780?u=747e554b3a7f12eb20b7910e1c87d817844f714f&v=4" width="80;" alt="AnandChowdhary"/>
|
||||||
|
<br />
|
||||||
|
<sub><b>Anand Chowdhary</b></sub>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://github.com/bile0026">
|
||||||
|
<img src="https://avatars.githubusercontent.com/u/5022496?u=aec96ad173c0ea9baaba93807efa8a848af6595c&v=4" width="80;" alt="bile0026"/>
|
||||||
|
<br />
|
||||||
|
<sub><b>Zach Biles</b></sub>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://github.com/UlisesGascon">
|
||||||
|
<img src="https://avatars.githubusercontent.com/u/5110813?u=3c41facd8aa26154b9451de237c34b0f78d672a5&v=4" width="80;" alt="UlisesGascon"/>
|
||||||
|
<br />
|
||||||
|
<sub><b>Ulises Gascón</b></sub>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://github.com/InDieTasten">
|
||||||
|
<img src="https://avatars.githubusercontent.com/u/7047377?u=8d8f8017628b38bc46dcbf3620e194b01d3fb2d1&v=4" width="80;" alt="InDieTasten"/>
|
||||||
|
<br />
|
||||||
|
<sub><b>InDieTasten</b></sub>
|
||||||
|
</a>
|
||||||
|
</td></tr>
|
||||||
|
<tr>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://github.com/araguaci">
|
||||||
|
<img src="https://avatars.githubusercontent.com/u/7318668?v=4" width="80;" alt="araguaci"/>
|
||||||
|
<br />
|
||||||
|
<sub><b>Araguaci</b></sub>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://github.com/bmcgonag">
|
||||||
|
<img src="https://avatars.githubusercontent.com/u/7346620?u=2a0f9284f3e12ac1cc15288c254d1ec68a5081e8&v=4" width="80;" alt="bmcgonag"/>
|
||||||
|
<br />
|
||||||
|
<sub><b>Brian McGonagill</b></sub>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://github.com/vlad-tim">
|
||||||
|
<img src="https://avatars.githubusercontent.com/u/11474041?u=eee43705b54d2ec9f51fc4fcce5ad18dd17c87e4&v=4" width="80;" alt="vlad-tim"/>
|
||||||
|
<br />
|
||||||
|
<sub><b>Vlad</b></sub>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://github.com/helixzz">
|
||||||
|
<img src="https://avatars.githubusercontent.com/u/12218889?u=d06d0c103dfbdb99450623064f7da3c5a3675fb6&v=4" width="80;" alt="helixzz"/>
|
||||||
|
<br />
|
||||||
|
<sub><b>HeliXZz</b></sub>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://github.com/mryesiller">
|
||||||
|
<img src="https://avatars.githubusercontent.com/u/24632172?u=0d20f2d615158f87cd60a3398d3efb026c32f291&v=4" width="80;" alt="mryesiller"/>
|
||||||
|
<br />
|
||||||
|
<sub><b>Göksel Yeşiller</b></sub>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://github.com/undefined">
|
||||||
|
<img src="" width="80;" alt="undefined"/>
|
||||||
|
<br />
|
||||||
|
<sub><b>Undefined</b></sub>
|
||||||
|
</a>
|
||||||
|
</td></tr>
|
||||||
|
<tr>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://github.com/OlliVHH">
|
||||||
|
<img src="https://avatars.githubusercontent.com/u/84959562?v=4" width="80;" alt="OlliVHH"/>
|
||||||
|
<br />
|
||||||
|
<sub><b>HamburgerJung</b></sub>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://github.com/frankdez93">
|
||||||
|
<img src="https://avatars.githubusercontent.com/u/87549420?v=4" width="80;" alt="frankdez93"/>
|
||||||
|
<br />
|
||||||
|
<sub><b>Frankdez93</b></sub>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://github.com/hudsonrock-partnerships">
|
||||||
|
<img src="https://avatars.githubusercontent.com/u/163282900?u=5f2667f7fe5d284ac7a2da6b0800ea8970b0fcbf&v=4" width="80;" alt="hudsonrock-partnerships"/>
|
||||||
|
<br />
|
||||||
|
<sub><b>Hudsonrock-partnerships</b></sub>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://github.com/gl0bal01">
|
||||||
|
<img src="https://avatars.githubusercontent.com/u/173822055?u=4d323807f120b34da9b156bfd168b46a22844764&v=4" width="80;" alt="gl0bal01"/>
|
||||||
|
<br />
|
||||||
|
<sub><b>Gl0bal01 💖 龴ↀ◡ↀ龴</b></sub>
|
||||||
|
</a>
|
||||||
|
</td></tr>
|
||||||
|
</table>
|
||||||
|
<!-- readme: sponsors -end -->
|
||||||
|
|
||||||
|
#### Contributors
|
||||||
|
[](./docs/credits.md)
|
||||||
|
|
||||||
|
#### Stats
|
||||||
|
[](https://github.com/Lissy93/dashy/blob/master/docs/credits.md)
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#dashy)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Developing 🧱
|
||||||
|
|
||||||
|
> For full development documentation, see: [**Developing**](./docs/developing.md)
|
||||||
|
|
||||||
|
[](https://open.vscode.dev/Lissy93/Dashy)
|
||||||
|
[](https://gitpod.io/#github.com/lissy93/dashy.git)
|
||||||
|
[](https://github.dev/Lissy93/dashy)
|
||||||
|
|
||||||
|
Before getting started, you'll need [Git](https://git-scm.com/downloads), [Node](https://nodejs.org/en/download/) and optionally [Yarn](https://yarnpkg.com/) (run `npm i -g yarn`) installed.
|
||||||
|
|
||||||
|
To set up the development environment:
|
||||||
|
1. Get Code: `git clone https://github.com/Lissy93/dashy.git` and `cd dashy`
|
||||||
|
2. Install dependencies: `yarn`
|
||||||
|
3. Start dev server: `yarn dev`
|
||||||
|
4. Open the browser: `http://localhost:8080`
|
||||||
|
|
||||||
|
When you're ready, you can build the production app with `yarn build`, and then run it with `yarn start`
|
||||||
|
|
||||||
|
If you're new to web development, I've put together a short [list of resources](https://github.com/Lissy93/dashy/blob/master/docs/developing.md#resources-for-beginners) to help beginners get started
|
||||||
|
|
||||||
|
**Repo Status**:
|
||||||
|
[](https://github.com/Lissy93/dashy/pulls)
|
||||||
|
[](https://github.com/Lissy93/dashy/pulls?q=)
|
||||||
|
[](https://github.com/Lissy93/dashy/commits/master)
|
||||||
|
[](https://github.com/Lissy93/dashy/commits/master)
|
||||||
|
[](https://github.com/Lissy93/dashy/graphs/contributors)
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#dashy)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Documentation 📘
|
||||||
|
> For full docs, see: **[Documentation Contents](./docs/readme.md)**
|
||||||
|
#### Running Dashy
|
||||||
|
- 💨 [Quick Start](/docs/quick-start.md) - TDLR guide on getting Dashy up and running in under 5 minutes
|
||||||
|
- 🚀 [Deployment](/docs/deployment.md) - Full guide on setting up Dashy on various different environments
|
||||||
|
- 🔧 [Configuring](/docs/configuring.md) - Complete list of all available options in the config file
|
||||||
|
- 💻 [Management](/docs/management.md) - Managing your app, updating, security, web server configuration, etc
|
||||||
|
- 🚒 [Troubleshooting](/docs/troubleshooting.md) - Common errors and problems, and how to fix them
|
||||||
|
|
||||||
|
#### Feature Docs
|
||||||
|
- 🛡️ [Authentication](/docs/authentication.md) - Guide to setting up authentication to protect your dashboard
|
||||||
|
- 🌈 [Alternate Views](/docs/alternate-views.md) - Outline of available pages / views and item opening methods
|
||||||
|
- 💾 [Backup & Restore](/docs/backup-restore.md) - Guide to backing up config with Dashy's cloud sync feature
|
||||||
|
- 🧸 [Icons](/docs/icons.md) - Outline of all available icon types for sections and items, with examples
|
||||||
|
- 🌐 [Multi-Language Support](/docs/multi-language-support.md) - Switching languages, and adding a new locales
|
||||||
|
- 🚦 [Status Indicators](/docs/status-indicators.md) - Using Dashy to monitor uptime and status of your apps
|
||||||
|
- 🔍 [Searching & Shortcuts](/docs/searching.md) - Searching, launching methods + keyboard shortcuts
|
||||||
|
- 🎨 [Theming](/docs/theming.md) - Complete guide to applying, writing and modifying themes + styles
|
||||||
|
- 📊 [Widgets](/docs/widgets.md) - List of all dynamic content widgets, with usage guides and examples
|
||||||
|
|
||||||
|
#### Development and Contributing
|
||||||
|
- 🧱 [Developing](/docs/developing.md) - Running Dashy development server locally, and general workflow
|
||||||
|
- 🛎️ [Development Guides](/docs/development-guides.md) - Common development tasks, to help new contributors
|
||||||
|
- 💖 [Contributing](/docs/contributing.md) - How to contribute to Dashy
|
||||||
|
- 🌟 [Showcase](/docs/showcase.md) - See how others are using Dashy, and share your dashboard
|
||||||
|
- 🏆 [Credits](/docs/credits.md) - Shout out to the amazing people who have contributed so far
|
||||||
|
- 🗞️ [Release Workflow](/docs/release-workflow.md) - Info about releases, CI and automated tasks
|
||||||
|
|
||||||
|
#### Misc
|
||||||
|
- 🔐 [Privacy & Security](/docs/privacy.md) - List of requests, potential issues, and security resources
|
||||||
|
- 📄 [License](/LICENSE) - Copy of the MIT License
|
||||||
|
- ⚖️ [Legal](/.github/LEGAL.md) - Licenses of direct dependencies
|
||||||
|
- 📏 [Code of Conduct](/.github/CODE_OF_CONDUCT.md) - Contributor Covenant Code of Conduct
|
||||||
|
- 🌳 [Changelog](/.github/CHANGELOG.md) - Details of recent changes, and historical versions
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#dashy)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Roadmap 🛣️
|
||||||
|
|
||||||
|
For upcoming features that will be released in the near future, see the [**Current Roadmap**](https://github.com/Lissy93/dashy/discussions/405)
|
||||||
|
|
||||||
|
For past updates, see the [**Changelog**](/.github/CHANGELOG.md)
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#dashy)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Alternatives 🙌
|
||||||
|
|
||||||
|
A few self-hosted web apps serve a similar purpose to Dashy. If you're looking for a dashboard, and Dashy doesn't meet your needs, I highly recommend you check these projects out!
|
||||||
|
- [Flame](https://github.com/pawelmalak/flame) by @pawelmalak (`MIT`)
|
||||||
|
- [HomeDash2](https://lamarios.github.io/Homedash2)
|
||||||
|
- [Homer](https://github.com/bastienwirtz/homer) (`Apache License 2.0`)
|
||||||
|
- [Organizr](https://organizr.app/) (`GPL-3.0 License`)
|
||||||
|
- [Heimdall](https://github.com/linuxserver/Heimdall) (`MIT`)
|
||||||
|
- [Smashing](https://github.com/Smashing/smashing) (`MIT`)
|
||||||
|
- See more 👉 [Awesome Self-Hosted](https://github.com/awesome-selfhosted/awesome-selfhosted#personal-dashboards)
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#dashy)**
|
||||||
|
|
||||||
|
---
|
||||||
|
## License 📜
|
||||||
|
|
||||||
|
Dashy is Licensed under [MIT X11](https://en.wikipedia.org/wiki/MIT_License)
|
||||||
|
|
||||||
|
```
|
||||||
|
Copyright © 2021-2024 Alicia Sykes <https://aliciasykes.com>
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this
|
||||||
|
software and associated documentation files (the "Software"), to deal in the Software
|
||||||
|
without restriction, including without limitation the rights to use, copy, modify, merge,
|
||||||
|
publish, distribute, sublicense, and/or sell copies of the Software, and to permit
|
||||||
|
persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all copies or
|
||||||
|
substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||||
|
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||||
|
LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
|
TORT OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE
|
||||||
|
OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
Except as contained in this notice, Dashy shall not be used in advertising or otherwise
|
||||||
|
to promote the sale, use, or other dealings in this Software without prior written
|
||||||
|
authorization from the repo owner.
|
||||||
|
```
|
||||||
|
|
||||||
|
**TDLR;** _You can do whatever you like with Dashy: use it in private or commercial settings,_
|
||||||
|
_redistribute and modify it. But you must display this license and credit the author._
|
||||||
|
_There is no warranty that this app will work as expected, and the author cannot be held_
|
||||||
|
_liable for anything that goes wrong._
|
||||||
|
For more info, see TLDR Legal's [Explanation of MIT](https://tldrlegal.com/license/mit-license)
|
||||||
|
|
||||||
|
[](https://app.fossa.com/projects/git%2Bgithub.com%2FLissy93%2Fdashy?ref=badge_large)
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#dashy)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
<!-- License + Copyright -->
|
||||||
|
<p align="center">
|
||||||
|
<i>© <a href="https://aliciasykes.com">Alicia Sykes</a> 2024</i><br>
|
||||||
|
<i>Licensed under <a href="https://gist.github.com/Lissy93/143d2ee01ccc5c052a17">MIT</a></i><br>
|
||||||
|
<a href="https://github.com/lissy93"><img src="https://i.ibb.co/4KtpYxb/octocat-clean-mini.png" /></a><br>
|
||||||
|
<sup>Thanks for visiting :)</sup>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<!-- Dinosaurs are Awesome -->
|
||||||
|
<!--
|
||||||
|
. - ~ ~ ~ - .
|
||||||
|
.. _ .-~ ~-.
|
||||||
|
//| \ `..~ `.
|
||||||
|
|| | } } / \ \
|
||||||
|
(\ \\ \~^..' | } \
|
||||||
|
\`.-~ o / } | / \
|
||||||
|
(__ | / | / `.
|
||||||
|
`- - ~ ~ -._| /_ - ~ ~ ^| /- _ `.
|
||||||
|
| / | / ~-. ~- _
|
||||||
|
|_____| |_____| ~ - . _ _~_-_
|
||||||
|
-->
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
{
|
||||||
|
"name": "Dashy",
|
||||||
|
"website": "https://dashy.to/",
|
||||||
|
"description": "A Dashboard for your Homelab 🚀",
|
||||||
|
"repository": "https://github.com/lissy93/dashy",
|
||||||
|
"logo": "https://raw.githubusercontent.com/Lissy93/dashy/master/docs/assets/logo.png",
|
||||||
|
"keywords": [
|
||||||
|
"node",
|
||||||
|
"vue",
|
||||||
|
"static",
|
||||||
|
"dashboard",
|
||||||
|
"self-hosted",
|
||||||
|
"home-lab",
|
||||||
|
"lissy93"
|
||||||
|
],
|
||||||
|
"stack": "heroku-20"
|
||||||
|
}
|
|
@ -0,0 +1,43 @@
|
||||||
|
---
|
||||||
|
# Welcome to Dashy! To get started, run `docker compose up -d`
|
||||||
|
# You can configure your container here, by modifying this file
|
||||||
|
version: "3.8"
|
||||||
|
services:
|
||||||
|
dashy:
|
||||||
|
container_name: Dashy
|
||||||
|
|
||||||
|
# Pull latest image from DockerHub
|
||||||
|
image: lissy93/dashy
|
||||||
|
|
||||||
|
# To build from source, replace 'image: lissy93/dashy' with 'build: .'
|
||||||
|
# build: .
|
||||||
|
|
||||||
|
# You can also use an image with a different tag, or pull from a different registry, e.g:
|
||||||
|
# image: ghcr.io/lissy93/dashy or image: lissy93/dashy:3.0.0
|
||||||
|
|
||||||
|
# Pass in your config file below, by specifying the path on your host machine
|
||||||
|
# volumes:
|
||||||
|
# - /path/to/my-config.yml:/app/user-data/conf.yml
|
||||||
|
# - /path/to/item-icons:/app/user-data/item-icons/
|
||||||
|
|
||||||
|
# Set port that web service will be served on. Keep container port as 8080
|
||||||
|
ports:
|
||||||
|
- 4000:8080
|
||||||
|
|
||||||
|
# Set any environmental variables
|
||||||
|
environment:
|
||||||
|
- NODE_ENV=production
|
||||||
|
# Specify your user ID and group ID. You can find this by running `id -u` and `id -g`
|
||||||
|
# - UID=1000
|
||||||
|
# - GID=1000
|
||||||
|
|
||||||
|
# Specify restart policy
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
# Configure healthchecks
|
||||||
|
healthcheck:
|
||||||
|
test: ['CMD', 'node', '/app/services/healthcheck']
|
||||||
|
interval: 1m30s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 3
|
||||||
|
start_period: 40s
|
|
@ -0,0 +1,43 @@
|
||||||
|
FROM alpine:3.12 AS builder
|
||||||
|
|
||||||
|
# Download QEMU, see https://github.com/docker/hub-feedback/issues/1261
|
||||||
|
RUN QEMU_URL=https://github.com/balena-io/qemu/releases/download/v5.2.0%2Bbalena4/qemu-5.2.0.balena4-arm.tar.gz \
|
||||||
|
&& apk add curl && curl -L $QEMU_URL | tar zxvf - -C . --strip-components 1
|
||||||
|
|
||||||
|
# Start second (arm32v7) stage
|
||||||
|
FROM arm32v7/alpine:3.12
|
||||||
|
|
||||||
|
# Add QEMU from build stage
|
||||||
|
COPY --from=builder qemu-arm-static /usr/bin
|
||||||
|
|
||||||
|
# Install Node and Yarn
|
||||||
|
RUN apk add --update --no-cache nodejs npm yarn
|
||||||
|
|
||||||
|
# Define some ENV Vars
|
||||||
|
ENV PORT=80 \
|
||||||
|
DIRECTORY=/app \
|
||||||
|
IS_DOCKER=true
|
||||||
|
|
||||||
|
# Create and set the working directory
|
||||||
|
WORKDIR ${DIRECTORY}
|
||||||
|
|
||||||
|
# Copy over both 'package.json' and 'package-lock.json' (if available)
|
||||||
|
COPY package*.json ./
|
||||||
|
|
||||||
|
# Install project dependencies
|
||||||
|
RUN yarn
|
||||||
|
|
||||||
|
# Copy over all project files and folders to the working directory
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
# Build initial app for production
|
||||||
|
RUN yarn build
|
||||||
|
|
||||||
|
# Expose given port
|
||||||
|
EXPOSE ${PORT}
|
||||||
|
|
||||||
|
# Finally, run start command to serve up the built application
|
||||||
|
CMD [ "yarn", "build-and-start"]
|
||||||
|
|
||||||
|
# Run simple healthchecks every 5 mins, to check the Dashy's everythings great
|
||||||
|
HEALTHCHECK --interval=5m --timeout=2s --start-period=30s CMD yarn health-check
|
|
@ -0,0 +1,43 @@
|
||||||
|
FROM alpine:3.12 AS builder
|
||||||
|
|
||||||
|
# Download QEMU, see https://github.com/docker/hub-feedback/issues/1261
|
||||||
|
RUN QEMU_URL=https://github.com/balena-io/qemu/releases/download/v5.2.0%2Bbalena4/qemu-5.2.0.balena4-aarch64.tar.gz \
|
||||||
|
&& apk add curl && curl -L $QEMU_URL | tar zxvf - -C . --strip-components 1
|
||||||
|
|
||||||
|
# Start second (arm64v8) stage
|
||||||
|
FROM arm64v8/alpine:3.12
|
||||||
|
|
||||||
|
# Add QEMU from build stage
|
||||||
|
COPY --from=builder qemu-aarch64-static /usr/bin
|
||||||
|
|
||||||
|
# Install Node and Yarn
|
||||||
|
RUN apk add --update --no-cache nodejs npm yarn
|
||||||
|
|
||||||
|
# Define some ENV Vars
|
||||||
|
ENV PORT=80 \
|
||||||
|
DIRECTORY=/app \
|
||||||
|
IS_DOCKER=true
|
||||||
|
|
||||||
|
# Create and set the working directory
|
||||||
|
WORKDIR ${DIRECTORY}
|
||||||
|
|
||||||
|
# Copy over both 'package.json' and 'package-lock.json' (if available)
|
||||||
|
COPY package*.json ./
|
||||||
|
|
||||||
|
# Install project dependencies
|
||||||
|
RUN yarn
|
||||||
|
|
||||||
|
# Copy over all project files and folders to the working directory
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
# Build initial app for production
|
||||||
|
RUN yarn build
|
||||||
|
|
||||||
|
# Expose given port
|
||||||
|
EXPOSE ${PORT}
|
||||||
|
|
||||||
|
# Finally, run start command to serve up the built application
|
||||||
|
CMD [ "yarn", "build-and-start"]
|
||||||
|
|
||||||
|
# Run simple healthchecks every 5 mins, to check the Dashy's everythings great
|
||||||
|
HEALTHCHECK --interval=5m --timeout=2s --start-period=30s CMD yarn health-check
|
|
@ -0,0 +1,22 @@
|
||||||
|
# -----------------------------------------------------------------------------------------
|
||||||
|
# A light-weight alternative Docker image, using NGINX rather than Node.js to serve the app
|
||||||
|
# This means that certain features that require server-side endpoints will not be available
|
||||||
|
# -----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# Build Stage - Install dependencies + build the app
|
||||||
|
FROM node:lts-alpine3.14 as build
|
||||||
|
WORKDIR /dashy
|
||||||
|
COPY package*.json .
|
||||||
|
COPY yarn.lock .
|
||||||
|
RUN yarn
|
||||||
|
COPY . .
|
||||||
|
RUN yarn build
|
||||||
|
|
||||||
|
# Production Stage - Serve up built files with NGINX
|
||||||
|
FROM nginx:alpine as production
|
||||||
|
COPY ./docker/nginx.conf /etc/nginx/nginx.conf
|
||||||
|
COPY --from=build /dashy/dist /usr/share/nginx/html
|
||||||
|
EXPOSE 80
|
||||||
|
ENTRYPOINT ["nginx", "-g", "daemon off;"]
|
||||||
|
|
||||||
|
LABEL maintainer="Alicia Sykes <alicia@omg.lol>"
|
|
@ -0,0 +1,31 @@
|
||||||
|
FROM node:lts-alpine3.14
|
||||||
|
|
||||||
|
# Define some ENV Vars
|
||||||
|
ENV PORT=80 \
|
||||||
|
DIRECTORY=/app \
|
||||||
|
IS_DOCKER=true
|
||||||
|
|
||||||
|
# Create and set the working directory
|
||||||
|
WORKDIR ${DIRECTORY}
|
||||||
|
|
||||||
|
# Copy over both 'package.json' and 'package-lock.json' (if available)
|
||||||
|
COPY package*.json ./
|
||||||
|
COPY yarn.lock ./
|
||||||
|
|
||||||
|
# Install project dependencies
|
||||||
|
RUN yarn
|
||||||
|
|
||||||
|
# Copy over all project files and folders to the working directory
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
# Build initial app for production
|
||||||
|
RUN yarn build
|
||||||
|
|
||||||
|
# Expose given port
|
||||||
|
EXPOSE ${PORT}
|
||||||
|
|
||||||
|
# Finally, run start command to serve up the built application
|
||||||
|
CMD [ "yarn", "build-and-start"]
|
||||||
|
|
||||||
|
# Run simple healthchecks every 5 mins, to check the Dashy's everythings great
|
||||||
|
HEALTHCHECK --interval=5m --timeout=2s --start-period=30s CMD yarn health-check
|
|
@ -0,0 +1,136 @@
|
||||||
|
<h1 align="center">Dashy</h1>
|
||||||
|
<p align="center">
|
||||||
|
<i>Dashy helps you organize your self-hosted services by making them accessible from a single place</i>
|
||||||
|
<br/>
|
||||||
|
<img width="120" src="https://i.ibb.co/yhbt6CY/dashy.png" />
|
||||||
|
<br/>
|
||||||
|
<b><a href="https://github.com/Lissy93/dashy/blob/master/docs/showcase.md">User Showcase</a></b> | <b><a href="https://demo.dashy.to">Live Demo</a></b> | <b><a href="https://github.com/Lissy93/dashy/blob/master/docs/quick-start.md">Getting Started</a></b> | <b><a href="https://dashy.to/docs">Documentation</a></b> | <b><a href="https://github.com/Lissy93/dashy">GitHub</a></b>
|
||||||
|
<br/><br/>
|
||||||
|
<a href="https://github.com/awesome-selfhosted/awesome-selfhosted#personal-dashboards">
|
||||||
|
<img src="https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg" alt="Awesome Self-Hosted">
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/Lissy93/dashy/blob/master/LICENSE">
|
||||||
|
<img src="https://img.shields.io/badge/License-MIT-0aa8d2?logo=opensourceinitiative&logoColor=fff" alt="License MIT">
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/Lissy93/dashy/blob/master/.github/CHANGELOG.md">
|
||||||
|
<img src="https://img.shields.io/github/package-json/v/lissy93/dashy?logo=azurepipelines&color=0aa8d2" alt="Current Version">
|
||||||
|
</a>
|
||||||
|
<a href="https://hub.docker.com/r/lissy93/dashy">
|
||||||
|
<img src="https://img.shields.io/docker/pulls/lissy93/dashy?logo=docker&color=0aa8d2&logoColor=fff" alt="Docker Pulls">
|
||||||
|
</a>
|
||||||
|
<a href="http://as93.link/dashy-build-status">
|
||||||
|
<img src="https://badgen.net/github/status/lissy93/dashy?icon=github" alt="GitHub Status">
|
||||||
|
</a>
|
||||||
|
<a href="https://snyk.io/test/github/lissy93/dashy">
|
||||||
|
<img src="https://snyk.io/test/github/lissy93/dashy/badge.svg" alt="Known Vulnerabilities">
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
## Features 🌈
|
||||||
|
|
||||||
|
- 🔎 Instant search by name, domain, or tags + customizable hotkeys & keyboard shortcuts
|
||||||
|
- 🎨 Multiple built-in color themes, with UI color editor and support for custom CSS
|
||||||
|
- 🧸 Many icon options - Font-Awesome, homelab icons, auto-fetching Favicon, images, emojis, etc.
|
||||||
|
- 🚦 Status monitoring for each of your apps/links for basic availability and uptime checking
|
||||||
|
- 📊 Widgets for displaying info and dynamic content from your self-hosted services
|
||||||
|
- 💂 Optional authentication with multi-user access, configurable privileges, and SSO support
|
||||||
|
- 🌎 Multi-language support, with 10+ human-translated languages, and more on the way
|
||||||
|
- ☁ Optional, encrypted, free off-site cloud backup and restore feature available
|
||||||
|
- 💼 A workspace view, for easily switching between multiple apps simultaneously
|
||||||
|
- 🛩️ A minimal view, for use as a fast-loading browser Startpage
|
||||||
|
- 🖱️ Choose app launch method, either new tab, same tab, a pop-up modal, or in the workspace view
|
||||||
|
- 📏 Customizable layout, sizes, text, component visibility, sort order, behavior, etc.
|
||||||
|
- 🖼️ Options for a full-screen background image, custom nav-bar links, HTML footer, title, etc.
|
||||||
|
- 🚀 Easy to setup with Docker, or on bare metal, or with 1-Click cloud deployment
|
||||||
|
- ⚙️ Easy configuration, either through the UI, or using a YAML file
|
||||||
|
- ✨ Under active development with improvements and new features added regularly
|
||||||
|
- 🤏 Small bundle size, fully responsive UI, and PWA for basic offline access
|
||||||
|
- 🆓 100% free and open-source
|
||||||
|
- 🔐 Strong focus on privacy
|
||||||
|
- 🌈 And loads more...
|
||||||
|
|
||||||
|
## Demo ⚡
|
||||||
|
|
||||||
|
**Live Instances**: [Demo 1](https://demo.dashy.to) (Live Demo) ┆ [Demo 2](https://live.dashy.to) (Dashy Links) ┆ [Demo 3](https://dev.dashy.to) (Dev Preview)
|
||||||
|
|
||||||
|
**Screenshots**: Checkout the [Showcase](https://github.com/Lissy93/dashy/blob/master/docs/showcase.md), to see example dashboards from the community
|
||||||
|
|
||||||
|
**Spin up your own demo**: [](https://labs.play-with-docker.com/?stack=https://raw.githubusercontent.com/Lissy93/dashy/master/docker-compose.yml) or [`docker run -p 8080:8080 lissy93/dashy`](./docs/quick-start.md)
|
||||||
|
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img width="800" src="https://i.ibb.co/L8YbNNc/dashy-demo2.gif" alt="Demo" />
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#dashy)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Getting Started 🛫
|
||||||
|
|
||||||
|
To deploy Dashy with Docker, just run `docker run -p 8080:8080 lissy93/dashy`, then open `http://localhost:8080`
|
||||||
|
|
||||||
|
For full list of options and a Docker compose file, see the [Deployment Docs](https://github.com/Lissy93/dashy/blob/master/docs/deployment.md).
|
||||||
|
|
||||||
|
Dashy can also be run on bare metal using Node.js, or deployed to a cloud service, using the 1-Click deploy script.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Documentation 📝
|
||||||
|
|
||||||
|
#### Running Dashy
|
||||||
|
- **[Quick Start](https://github.com/Lissy93/dashy/blob/master/docs/quick-start.md)** - TDLR guide on getting Dashy up and running
|
||||||
|
- **[Deployment](https://github.com/Lissy93/dashy/blob/master/docs/deployment.md)** - Full guide on deploying Dashy either locally or online
|
||||||
|
- **[Configuring](https://github.com/Lissy93/dashy/blob/master/docs/configuring.md)** - Complete list of all available options in the config file
|
||||||
|
- **[App Management](https://github.com/Lissy93/dashy/blob/master/docs/management.md)** - Managing your app, updating, security, web server configuration, etc
|
||||||
|
- **[Troubleshooting](https://github.com/Lissy93/dashy/blob/master/docs/troubleshooting.md)** - Common errors and problems, and how to fix them
|
||||||
|
|
||||||
|
#### Feature Docs
|
||||||
|
- **[Authentication](https://github.com/Lissy93/dashy/blob/master/docs/authentication.md)** - Guide to setting up authentication to protect your dashboard
|
||||||
|
- **[Alternate Views](https://github.com/Lissy93/dashy/blob/master/docs/alternate-views.md)** - Outline of available pages / views and item opening methods
|
||||||
|
- **[Backup & Restore](https://github.com/Lissy93/dashy/blob/master/docs/backup-restore.md)** - Guide to backing up config with Dashy's cloud sync feature
|
||||||
|
- **[Icons](https://github.com/Lissy93/dashy/blob/master/docs/icons.md)** - Outline of all available icon types for sections and items, with examples
|
||||||
|
- **[Language Switching](https://github.com/Lissy93/dashy/blob/master/docs/multi-language-support.md)** - Details on how to switch language, or add a new locale
|
||||||
|
- **[Status Indicators](https://github.com/Lissy93/dashy/blob/master/docs/status-indicators.md)** - Using Dashy to monitor uptime and status of your apps
|
||||||
|
- **[Searching & Shortcuts](https://github.com/Lissy93/dashy/blob/master/docs/searching.md)** - Searching, launching methods + keyboard shortcuts
|
||||||
|
- **[Theming](https://github.com/Lissy93/dashy/blob/master/docs/theming.md)** - Complete guide to applying, writing and modifying themes + styles
|
||||||
|
- **[Widgets](https://github.com/Lissy93/dashy/blob/master/docs/widgets.md)** - List of all dynamic content widgets, with usage guides and examples
|
||||||
|
|
||||||
|
#### Development and Contributing
|
||||||
|
- **[Developing](https://github.com/Lissy93/dashy/blob/master/docs/developing.md)** - Running Dashy development server locally, and general workflow
|
||||||
|
- **[Development Guides](https://github.com/Lissy93/dashy/blob/master/docs/development-guides.md)** - Common development tasks, to help new contributors
|
||||||
|
- **[Contributing](https://github.com/Lissy93/dashy/blob/master/docs/contributing.md)** - How you can help keep Dashy alive
|
||||||
|
- **[Showcase](https://github.com/Lissy93/dashy/blob/master/docs/showcase.md)** - See how others are using Dashy, and share your dashboard
|
||||||
|
- **[Credits](https://github.com/Lissy93/dashy/blob/master/docs/credits.md)** - List of people and projects that have made Dashy possible
|
||||||
|
- **[Release Workflow](https://github.com/Lissy93/dashy/blob/master/docs/release-workflow.md)** - Info about releases, CI and automated tasks
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## License 📜
|
||||||
|
|
||||||
|
Dashy is Licensed under [MIT X11](https://en.wikipedia.org/wiki/MIT_License)
|
||||||
|
|
||||||
|
```
|
||||||
|
Copyright © 2024 Alicia Sykes <https://aliciasykes.com>
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this
|
||||||
|
software and associated documentation files (the "Software"), to deal in the Software
|
||||||
|
without restriction, including without limitation the rights to use, copy, modify, merge,
|
||||||
|
publish, distribute, sublicense, and/or sell copies of the Software, and to permit
|
||||||
|
persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all copies or
|
||||||
|
substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||||
|
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||||
|
LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
|
TORT OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE
|
||||||
|
OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
Except as contained in this notice, Dashy shall not be used in advertising or otherwise
|
||||||
|
to promote the sale, use, or other dealings in this Software without prior written
|
||||||
|
authorization from the repo owner.
|
||||||
|
```
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Used to setup QEMU to build arm images on amd64 processors.
|
||||||
|
# Source: https://git.io/J0ezo
|
||||||
|
|
||||||
|
# Register qemu-*-static for all supported processors except the
|
||||||
|
# current one, but also remove all registered binfmt_misc before
|
||||||
|
docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
|
@ -0,0 +1,15 @@
|
||||||
|
worker_processes 4;
|
||||||
|
|
||||||
|
events { worker_connections 1024; }
|
||||||
|
|
||||||
|
http {
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
include /etc/nginx/mime.types;
|
||||||
|
|
||||||
|
location /appui {
|
||||||
|
try_files $uri /index.html;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,64 @@
|
||||||
|
# Alternate Views & Opening Methods
|
||||||
|
|
||||||
|
## Views
|
||||||
|
|
||||||
|
Dashy has three different views:
|
||||||
|
|
||||||
|
- Default View - This is the main homepage with sections in a grid layout
|
||||||
|
- Workspace View - Items displayed on the side, and are launched within Dashy
|
||||||
|
- Minimal View - A clean + simple tabbed view
|
||||||
|
|
||||||
|
You can switch between views using the dropdown in the top-right corner. Set your chosen Starting View with `appConfig.startingView`. Click the page title at any time to go back to your selected starting view.
|
||||||
|
|
||||||
|
### Default
|
||||||
|
|
||||||
|
This is the main page that you will land on when you first launch the application. Here all of your sections (with items + widgets) are visible in a grid layout.
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<b>Example of Default View</b><br>
|
||||||
|
<img width="800" src="https://i.ibb.co/L8YbNNc/dashy-demo2.gif" alt="Demo" />
|
||||||
|
</p>
|
||||||
|
|
||||||
|
### Workspace
|
||||||
|
|
||||||
|
The workspace view displays your links in a sidebar on the left-hand side, and apps are launched inside an iframe without having to leave Dashy. This enables you to use all of your self-hosted apps from one place, and makes multi-tasking easy.
|
||||||
|
|
||||||
|
You can specify a default app to be opened when you land on the workspace, by setting `appConfig.workspaceLandingUrl: https://app-to-open/`. If this app exists within your sections.items, then the corresponding section will also be expanded.
|
||||||
|
|
||||||
|
You can also opt to keep previously opened websites/ apps open in the background, by setting `appConfig.enableMultiTasking: true`. This comes at the cost of performance, but does mean that your session with each app is preserved, enabling you to quickly switch between them.
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<b>Example of Workspace View</b><br>
|
||||||
|
<img alt="Workspace view demo" src="https://raw.githubusercontent.com/Lissy93/dashy/master/docs/assets/workspace-demo.gif" width="800" />
|
||||||
|
</p>
|
||||||
|
|
||||||
|
### Minimal View
|
||||||
|
|
||||||
|
The minimal view aims to be super fast and simple, and can be used as a browser startpage. Items are grouped into a tab view, and the last opened tab will be remembered. Similar to the main view, you can search and launch items just by typing, and right-clicking will show more options (like open in modal, workspace or new tab).
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<b>Example of Minimal View</b><br>
|
||||||
|
<img alt="Workspace view demo" src="https://raw.githubusercontent.com/Lissy93/dashy/master/docs/assets/minimal-view-demo.gif" width="800" />
|
||||||
|
</p>
|
||||||
|
|
||||||
|
## Opening Methods
|
||||||
|
|
||||||
|
Dashy supports several different ways to launch your apps. The primary opening method for each app can be specified using the `target` attribute, with a value of one of the following:
|
||||||
|
|
||||||
|
- `sametab` - The app will be launched in the current tab
|
||||||
|
- `newtab` - The app will be launched in a new tab
|
||||||
|
- `top` - Opens in the top-most browsing context, useful if you're accessing Dashy through an iframe
|
||||||
|
- `modal` - Launch app in a resizable/ movable popup modal on the current page
|
||||||
|
- `workspace` - Changes to Workspace view, and launches app
|
||||||
|
|
||||||
|
You can also set a default opening method, which will be applied to all items that don't have a specified target, using `appConfig.defaultOpeningMethod`, to one of the above values.
|
||||||
|
|
||||||
|
Even if the target is not set (or is set to `sametab`), you can still launch any given app in an alternative method. Either right-click to see all options, or use one of the keyboard shortcuts: Alt + Click will open the modal, and Ctrl + Click will open in a new tab.
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img width="500" src="https://i.ibb.co/vmZdSRt/dashy-context-menu-2.png" />
|
||||||
|
</p>
|
||||||
|
|
||||||
|
If you don't like the custom context menu, it can be disabled by setting `appConfig.disableContextMenu: true`.
|
||||||
|
|
||||||
|
If you get a 'Refused to Connect' error in the modal or workspace views, then the target app has it's X-Frame-Options HTTP set to block requests from embedded content. You can easily fix this by setting this header to ALLOW, for instructions on how to do so, see the [Troubleshooting Docs](/docs/troubleshooting.md#refused-to-connect-in-modal-or-workspace-view).
|
After Width: | Height: | Size: 36 MiB |
After Width: | Height: | Size: 1.9 MiB |
After Width: | Height: | Size: 58 KiB |
After Width: | Height: | Size: 2.0 MiB |
After Width: | Height: | Size: 94 KiB |
|
@ -0,0 +1,7 @@
|
||||||
|
<svg width="223px" height="30px" version="1.1" viewBox="0 0 223 30" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<title>Artboard</title>
|
||||||
|
<desc>Created with Sketch.</desc>
|
||||||
|
<rect id="Rectangle" width="223" height="30" rx="8" fill="#ff5e5b" style="fill-rule:evenodd;fill:#ff8eff"/>
|
||||||
|
<path d="m19.011 10.912c0.57462-1.6874 1.9364-2.531 4.0853-2.531 3.2234 0 4.4184 4.0247 2.7288 6.6559-1.1264 1.7541-3.3978 3.9728-6.8141 6.6559-3.4163-2.6832-5.6877-4.9018-6.8141-6.6559-1.6896-2.6312-0.49462-6.6559 2.7288-6.6559 2.1489 0 3.5107 0.84368 4.0853 2.531z" fill="#ff5e5b" style="fill:none;stroke-width:1.5;stroke:#fff"/>
|
||||||
|
<text x="55" y="20" style="fill:#ffffff;font-family:sans-serif;font-size:16px;letter-spacing:0px;line-height:1.25;word-spacing:0px" xml:space="preserve"><tspan x="31.423412" y="20.493532" style="fill:#ffffff;font-size:16px">Sponsor me on Github</tspan></text>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 879 B |
After Width: | Height: | Size: 1.1 MiB |
After Width: | Height: | Size: 5.6 MiB |
After Width: | Height: | Size: 20 MiB |
After Width: | Height: | Size: 2.8 MiB |
|
@ -0,0 +1,649 @@
|
||||||
|
# Authentication
|
||||||
|
|
||||||
|
- [Basic Auth](#built-in-auth)
|
||||||
|
- [Setting Up Authentication](#setting-up-authentication)
|
||||||
|
- [Hash Password](#hash-password)
|
||||||
|
- [Logging In and Out](#logging-in-and-out)
|
||||||
|
- [Guest Access](#enabling-guest-access)
|
||||||
|
- [Per-User Access](#granular-access)
|
||||||
|
- [Using Environment Variables for Passwords](#using-environment-variables-for-passwords)
|
||||||
|
- [Adding HTTP Auth to Configuration](#adding-http-auth-to-configuration)
|
||||||
|
- [Security Considerations](#security)
|
||||||
|
- [HTTP Auth](#http-auth)
|
||||||
|
- [Keycloak Auth](#keycloak)
|
||||||
|
- [Deploying Keycloak](#1-deploy-keycloak)
|
||||||
|
- [Setting up Keycloak](#2-setup-keycloak-users)
|
||||||
|
- [Configuring Dashy for Keycloak](#3-enable-keycloak-in-dashy-config-file)
|
||||||
|
- [Toubleshooting Keycloak](#troubleshooting-keycloak)
|
||||||
|
- [OIDC Auth](#oidc)
|
||||||
|
- [authentik](#authentik)
|
||||||
|
- [Alternative Authentication Methods](#alternative-authentication-methods)
|
||||||
|
- [VPN](#vpn)
|
||||||
|
- [IP-Based Access](#ip-based-access)
|
||||||
|
- [Web Server Authentication](#web-server-authentication)
|
||||||
|
- [OAuth Services](#oauth-services)
|
||||||
|
- [Auth on Cloud Hosting Services](#static-site-hosting-providers)
|
||||||
|
|
||||||
|
|
||||||
|
> [!IMPORTANT]
|
||||||
|
> Dashy's built-in auth is not indented to protect a publicly hosted instance against unauthorized access. Instead you should use an auth provider compatible with your reverse proxy, or access Dashy via your VPN, or implement your own SSO logic.
|
||||||
|
>
|
||||||
|
> In cases where Dashy is only accessibly within your home network, and you just want to add a login page, then the built-in auth may be sufficient, but keep in mind that configuration can still be accessed.
|
||||||
|
|
||||||
|
## Built-In Auth
|
||||||
|
|
||||||
|
Dashy has a basic login page included, and frontend authentication. You can enable this by adding users to the `auth` section under `appConfig` in your `conf.yml`. If this section is not specified, then no authentication will be required to access the app, and the homepage will resolve to your dashboard.
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> Since the auth is initiated in the main app entry point (for security), a rebuild is required to apply changes to the auth configuration.
|
||||||
|
> You can trigger a rebuild through the UI, under Config --> Rebuild, or by running `yarn build` in the root directory.
|
||||||
|
|
||||||
|
|
||||||
|
### Setting Up Authentication
|
||||||
|
|
||||||
|
The `auth` property takes an array of users. Each user needs to include a username, hash and optional user type (`admin` or `normal`). The hash property is a [SHA-256 Hash](https://en.wikipedia.org/wiki/SHA-2) of your desired password.
|
||||||
|
|
||||||
|
For example:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
appConfig:
|
||||||
|
auth:
|
||||||
|
users:
|
||||||
|
- user: alicia
|
||||||
|
hash: 4D1E58C90B3B94BCAD9848ECCACD6D2A8C9FBC5CA913304BBA5CDEAB36FEEFA3
|
||||||
|
type: admin
|
||||||
|
- user: bob
|
||||||
|
hash: 5E884898DA28047151D0E56F8DC6292773603D0D6AABBDD62A11EF721D1542D8
|
||||||
|
```
|
||||||
|
|
||||||
|
### Hash Password
|
||||||
|
|
||||||
|
Dashy uses [SHA-256 Hash](https://en.wikipedia.org/wiki/Sha-256), a 64-character string, which you can generate using an online tool, such as [this one](https://passwordsgenerator.net/sha256-hash-generator/) or [CyberChef](https://gchq.github.io/CyberChef/) (which can be self-hosted/ ran locally).
|
||||||
|
|
||||||
|
A hash is a one-way cryptographic function, meaning that it is easy to generate a hash for a given password, but very hard to determine the original password for a given hash. This means, that so long as your password is long, strong and unique, it is safe to store its hash in the clear. Having said that, you should never reuse passwords, hashes can be cracked by iterating over known password lists, generating a hash of each.
|
||||||
|
|
||||||
|
### Logging In and Out
|
||||||
|
|
||||||
|
Once authentication is enabled, so long as there is no valid token in cookie storage, the application will redirect the user to the login page. When the user enters credentials in the login page, they will be checked, and if valid, then a token will be generated, and they can be redirected to the home page. If credentials are invalid, then an error message will be shown, and they will remain on the login page. Once in the application, to log out: the user can click the logout button (in the top-right), which will clear cookie storage, causing them to be redirected back to the login page.
|
||||||
|
|
||||||
|
### Enabling Guest Access
|
||||||
|
|
||||||
|
With authentication set up, by default no access is allowed to your dashboard without first logging in with valid credentials. Guest mode can be enabled to allow for read-only access to a secured dashboard by any user, without the need to log in. A guest user cannot write any changes to the config file, but can apply modifications locally (stored in their browser). You can enable guest access, by setting `appConfig.auth.enableGuestAccess: true`.
|
||||||
|
|
||||||
|
### Granular Access
|
||||||
|
|
||||||
|
You can use the following properties to make certain pages, sections or items only visible to some users, or hide pages, sections and items from guests.
|
||||||
|
|
||||||
|
- `hideForUsers` - Page, Section or Item will be visible to all users, except for those specified in this list
|
||||||
|
- `showForUsers` - Page, Section or Item will be hidden from all users, except for those specified in this list
|
||||||
|
- `hideForGuests` - Page, Section or Item will be visible for logged in users, but not for guests
|
||||||
|
|
||||||
|
For Example:
|
||||||
|
```yaml
|
||||||
|
pages:
|
||||||
|
- name: Home Lab
|
||||||
|
path: home-lab.yml
|
||||||
|
displayData:
|
||||||
|
showForUsers: [admin]
|
||||||
|
- name: Intranet
|
||||||
|
path: intranet.yml
|
||||||
|
displayData:
|
||||||
|
hideForGuests: true
|
||||||
|
hideForUsers: [alicia, bob]
|
||||||
|
```
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- name: Code Analysis & Monitoring
|
||||||
|
icon: fas fa-code
|
||||||
|
displayData:
|
||||||
|
cols: 2
|
||||||
|
hideForUsers: [alicia, bob]
|
||||||
|
items:
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- name: Deployment Pipelines
|
||||||
|
icon: fas fa-rocket
|
||||||
|
displayData:
|
||||||
|
hideForGuests: true
|
||||||
|
items:
|
||||||
|
- title: Hide Me
|
||||||
|
displayData:
|
||||||
|
hideForUsers: [alicia, bob]
|
||||||
|
```
|
||||||
|
|
||||||
|
### Permissions
|
||||||
|
|
||||||
|
Any user who is not an admin (with `type: admin`) will not be able to write changes to disk.
|
||||||
|
|
||||||
|
You can also prevent any user from writing changes to disk, using `preventWriteToDisk`. Or prevent any changes from being saved locally in browser storage, using `preventLocalSave`. Both properties can be found under [`appConfig`](./docs/configuring.md#appconfig-optional).
|
||||||
|
|
||||||
|
To disable all UI config features, including View Config, set `disableConfiguration`. Alternatively you can disable UI config features for all non admin users by setting `disableConfigurationForNonAdmin` to true.
|
||||||
|
|
||||||
|
### Using Environment Variables for Passwords
|
||||||
|
|
||||||
|
If you don't want to hash your password, you can instead leave out the `hash` attribute, and replace it with `password` which should have the value of an environmental variable name you wish to use.
|
||||||
|
|
||||||
|
Note that env var must begin with `VUE_APP_`, and you must set this variable before building the app.
|
||||||
|
|
||||||
|
For example:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
auth:
|
||||||
|
users:
|
||||||
|
- user: bob
|
||||||
|
password: VUE_APP_BOB
|
||||||
|
```
|
||||||
|
|
||||||
|
Just be sure to set `VUE_APP_BOB='my super secret password'` before build-time.
|
||||||
|
|
||||||
|
### Adding HTTP Auth to Configuration
|
||||||
|
|
||||||
|
If you'd also like to prevent direct visit access to your configuration file, you can set the `ENABLE_HTTP_AUTH` environmental variable.
|
||||||
|
|
||||||
|
### Security
|
||||||
|
|
||||||
|
With basic auth, all logic is happening on the client-side, which could mean a skilled user could manipulate the code to view parts of your configuration, including the hash. If the SHA-256 hash is of a common password, it may be possible to determine it, using a lookup table, in order to find the original password. Which can be used to manually generate the auth token, that can then be inserted into session storage, to become a valid logged in user. Therefore, you should always use a long, strong and unique password, and if you instance contains security-critical info and/ or is exposed directly to the internet, and alternative authentication method may be better. The purpose of the login page is merely to prevent immediate unauthorized access to your homepage.
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#authentication)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## HTTP Auth
|
||||||
|
|
||||||
|
If you'd like to protect all your config files from direct access, you can set the `BASIC_AUTH_USERNAME` and `BASIC_AUTH_PASSWORD` environmental variables. You'll then be prompted to enter these credentials when visiting Dashy.
|
||||||
|
|
||||||
|
Then, if you'd like your frontend to automatically log you in, without prompting you for credentials (insecure, so only use on a trusted environment), then also specify `VUE_APP_BASIC_AUTH_USERNAME` and `VUE_APP_BASIC_AUTH_PASSWORD`. This is useful for when you're hosting Dashy on a private server, and just want to use auth for user management and to prevent direct access to your config files, while still allowing the frontend to access them. Note that a rebuild is required for these changes to take effect.
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#authentication)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Keycloak
|
||||||
|
|
||||||
|
Dashy also supports using a [Keycloak](https://www.keycloak.org/) authentication server. The setup for this is a bit more involved, but it gives you greater security overall, useful for if your instance is exposed to the internet.
|
||||||
|
|
||||||
|
[Keycloak](https://www.keycloak.org/about.html) is a Java-based [open source](https://github.com/keycloak/keycloak), high-performance, secure authentication system, supported by [RedHat](https://www.redhat.com/en). It is easy to setup ([with Docker](https://quay.io/repository/keycloak/keycloak)), and enables you to secure multiple self-hosted applications with single-sign-on using standard protocols (OpenID Connect, OAuth 2.0, SAML 2.0 and social login). It's also very customizable, you can write or use custom [themes](https://wjw465150.gitbooks.io/keycloak-documentation/content/server_development/topics/themes.html), [plugins](https://www.keycloak.org/extensions.html), [password policies](https://wjw465150.gitbooks.io/keycloak-documentation/content/server_admin/topics/authentication/password-policies.html) and more.
|
||||||
|
The following guide will walk you through setting up Keycloak with Dashy. If you already have a Keycloak instance configured, then skip to Step 3.
|
||||||
|
|
||||||
|
### 1. Deploy Keycloak
|
||||||
|
|
||||||
|
First thing to do is to spin up a new instance of Keycloak. You will need [Docker installed](https://docs.docker.com/engine/install/), and can then choose a tag, and pull the container from [quay.io/keycloak/keycloak](https://quay.io/repository/keycloak/keycloak)
|
||||||
|
|
||||||
|
Use the following run command, replacing the attributes (default credentials, port and name), or incorporate this into your docker-compose file.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker run -d \
|
||||||
|
-p 8081:8080 \
|
||||||
|
--name auth-server \
|
||||||
|
-e KEYCLOAK_USER=admin \
|
||||||
|
-e KEYCLOAK_PASSWORD=admin \
|
||||||
|
quay.io/keycloak/keycloak:15.0.2
|
||||||
|
```
|
||||||
|
|
||||||
|
If you need to pull from DockerHub, a non-official image is available [here](https://registry.hub.docker.com/r/jboss/keycloak). Or if you would prefer not to use Docker, you can also directly install Keycloak from source, following [this guide](https://www.keycloak.org/docs/latest/getting_started/index.html).
|
||||||
|
|
||||||
|
You should now be able to access the Keycloak web interface, using the port specified above (e.g. `http://127.0.0.1:8081`), login with the default credentials, and when prompted create a new password.
|
||||||
|
|
||||||
|
### 2. Setup Keycloak Users
|
||||||
|
|
||||||
|
Before we can use Keycloak, we must first set it up with some users. Keycloak uses Realms (similar to tenants) to create isolated groups of users. You must create a Realm before you will be able to add your first user.
|
||||||
|
|
||||||
|
1. Head over to the admin console
|
||||||
|
2. In the top-left corner there is a dropdown called 'Master', hover over it and then click 'Add Realm'
|
||||||
|
3. Give your realm a name, and hit 'Create'
|
||||||
|
|
||||||
|
You can now create your first user.
|
||||||
|
|
||||||
|
1. In the left-hand menu, click 'Users', then 'Add User'
|
||||||
|
2. Fill in the form, including username and hit 'Save'
|
||||||
|
3. Under the 'Credentials' tab, give the new user an initial password. They will be prompted to change this after first login
|
||||||
|
|
||||||
|
The last thing we need to do in the Keycloak admin console is to create a new client
|
||||||
|
|
||||||
|
1. Within your new realm, navigate to 'Clients' on the left-hand side, then click 'Create' in the top-right
|
||||||
|
2. Choose a 'Client ID', set 'Client Protocol' to 'openid-connect', and for 'Valid Redirect URIs' put a URL pattern to where you're hosting Dashy (if you're just testing locally, then * is fine), and do the same for the 'Web Origins' field
|
||||||
|
3. Make note of your client-id, and click 'Save'
|
||||||
|
|
||||||
|
### 3. Enable Keycloak in Dashy Config File
|
||||||
|
|
||||||
|
Now that your Keycloak instance is up and running, all that's left to do is to configure Dashy to use it. Under `appConfig`, set `auth.enableKeycloak: true`, then fill in the details in `auth.keycloak`, including: `serverUrl` - the URL where your Keycloak instance is hosted, `realm` - the name you gave your Realm, and `clientId` - the Client ID you chose.
|
||||||
|
For example:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
appConfig:
|
||||||
|
...
|
||||||
|
auth:
|
||||||
|
enableKeycloak: true
|
||||||
|
keycloak:
|
||||||
|
serverUrl: 'http://localhost:8081'
|
||||||
|
realm: 'alicia-homelab'
|
||||||
|
clientId: 'dashy'
|
||||||
|
```
|
||||||
|
|
||||||
|
Note that if you are using Keycloak V 17 or older, you will also need to set `legacySupport: true` (also under `appConfig.auth.keycloak`). This is because the API endpoint was updated in later versions.
|
||||||
|
|
||||||
|
If you use Keycloak with an external Identity Provier, you can set the `idpHint: 'alias-of-kc-idp'` option to allow the IdP Hint to be passed to Keycloak. This will cause Keycloak to skip its login page and redirect the user directly to the specified IdP's login page. Set to the value of the 'Alias' field of the desired IdP as defined in Keycloak under 'Identity Providers'.
|
||||||
|
|
||||||
|
### 4. Add groups and roles (Optional)
|
||||||
|
|
||||||
|
Keycloak allows you to assign users roles and groups. You can use these values to configure who can access various sections or items in Dashy.
|
||||||
|
Keycloak server administration and configuration is a deep topic; please refer to the [server admin guide](https://www.keycloak.org/docs/latest/server_admin/index.html#assigning-permissions-and-access-using-roles-and-groups) to see details about creating and assigning roles and groups.
|
||||||
|
Once you have groups or roles assigned to users you can configure access under each section or item `displayData.showForKeycloakUser` and `displayData.hideForKeycloakUser`.
|
||||||
|
Both show and hide configurations accept a list of `groups` and `roles` that limit access. If a users data matches one or more items in these lists they will be allowed or excluded as defined.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
sections:
|
||||||
|
- name: DeveloperResources
|
||||||
|
displayData:
|
||||||
|
showForKeycloakUsers:
|
||||||
|
roles: ['canViewDevResources']
|
||||||
|
hideForKeycloakUsers:
|
||||||
|
groups: ['ProductTeam']
|
||||||
|
items:
|
||||||
|
- title: Not Visible for developers
|
||||||
|
displayData:
|
||||||
|
hideForKeycloakUsers:
|
||||||
|
groups: ['DevelopmentTeam']
|
||||||
|
```
|
||||||
|
|
||||||
|
Depending on how you're hosting Dashy and Keycloak, you may also need to set some HTTP headers, to prevent a CORS error. This would typically be the `Access-Control-Allow-Origin [URL-of Dashy]` on your Keycloak instance. See the [Setting Headers](https://github.com/Lissy93/dashy/blob/master/docs/management.md#setting-headers) guide in the management docs for more info.
|
||||||
|
|
||||||
|
Your app is now secured :) When you load Dashy, it will redirect to your Keycloak login page, and any user without valid credentials will be prevented from accessing your dashboard.
|
||||||
|
|
||||||
|
From within the Keycloak console, you can then configure things like time-outs, password policies, etc. You can also backup your full Keycloak config, and it is recommended to do this, along with your Dashy config. You can spin up both Dashy and Keycloak simultaneously and restore both applications configs using a `docker-compose.yml` file, and this is recommended.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Troubleshooting Keycloak
|
||||||
|
|
||||||
|
If you encounter issues with your Keycloak setup, follow these steps to troubleshoot and resolve common problems.
|
||||||
|
|
||||||
|
1. Client Authentication Issue
|
||||||
|
Problem: Redirect loop, if client authentication is enabled.
|
||||||
|
Solution: Switch off "client authentication" in "TC clients" -> "Advanced" settings.
|
||||||
|
|
||||||
|
2. Double URL
|
||||||
|
Problem: If you get redirected to "https://dashy.my.domain/#iss=https://keycloak.my.domain/realms/my-realm"
|
||||||
|
Solution: Make sure to turn on "Exclude Issuer From Authentication Response" in "TC clients" -> "Advanced" -> "OpenID Connect Compatibility Modes"
|
||||||
|
|
||||||
|
3. Problems with mutiple Dashy Pages
|
||||||
|
Problem: Refreshing or logging out of dashy results in an "invalid_redirect_uri" error.
|
||||||
|
Solution: In "TC clients" -> "Access settings" -> "Root URL" https://dashy.my.domain/, valid redirect URIs must be /*
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## OIDC
|
||||||
|
|
||||||
|
Dashy also supports using a general [OIDC compatible](https://openid.net/connect/) authentication server. In order to use it, the authentication section needs to be configured:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
appConfig:
|
||||||
|
auth:
|
||||||
|
enableOidc: true
|
||||||
|
oidc:
|
||||||
|
clientId: [registered client id]
|
||||||
|
endpoint: [OIDC endpoint]
|
||||||
|
scope: [The scope(s) to request from the OIDC provider]
|
||||||
|
```
|
||||||
|
|
||||||
|
Because Dashy is a SPA, a [public client](https://datatracker.ietf.org/doc/html/rfc6749#section-2.1) registration with PKCE is needed.
|
||||||
|
|
||||||
|
An example for Authelia is shared below, but other OIDC systems can be used:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
identity_providers:
|
||||||
|
oidc:
|
||||||
|
clients:
|
||||||
|
- client_id: dashy
|
||||||
|
client_name: dashy
|
||||||
|
public: true
|
||||||
|
authorization_policy: 'one_factor'
|
||||||
|
require_pkce: true
|
||||||
|
pkce_challenge_method: 'S256'
|
||||||
|
redirect_uris:
|
||||||
|
- https://dashy.local # should point to your dashy endpoint
|
||||||
|
grant_types:
|
||||||
|
- authorization_code
|
||||||
|
scopes:
|
||||||
|
- 'openid'
|
||||||
|
- 'profile'
|
||||||
|
- 'roles'
|
||||||
|
- 'email'
|
||||||
|
- 'groups'
|
||||||
|
```
|
||||||
|
|
||||||
|
Groups and roles will be populated and available for controlling display similar to [Keycloak](#Keycloak) above.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### authentik
|
||||||
|
|
||||||
|
This documentation is specific to `authentik`, however it may be useful in getting other idP's working with `Dashy`.
|
||||||
|
|
||||||
|
This guide will only walk through the following:
|
||||||
|
* Creating and configuring an OIDC provider
|
||||||
|
* Creating and configuring an application
|
||||||
|
* Assigning groups
|
||||||
|
* Configuring `Dashy` to use the OIDC client
|
||||||
|
* Show quick examples of how to hide/show `pages`, `items`, and `sections` using OIDC groups
|
||||||
|
|
||||||
|
This guide assumes the following:
|
||||||
|
* You have a working instance of `authentik` terminated with SSL
|
||||||
|
* You have a working instance of `Dashy` terminated with SSL
|
||||||
|
* Users and groups are provisioned
|
||||||
|
* You are familiar with how `authentik` works in case you need to do further troubleshooting that is outside the scope of this guide.
|
||||||
|
|
||||||
|
>[!TIP]
|
||||||
|
>It it recommended that you create groups specific for `Dashy`. Groups will allow you to display content based on group membership as well as limiting user access to `Dashy`. If you do not need this functionality, then you can forgo creating specific groups.
|
||||||
|
|
||||||
|
>[!TIP]
|
||||||
|
>You can use the application wizard to create the provider and application at one time. This is the recommended route, but only the manual process will be outlined in this guide.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
#### 1. Create an OIDC provider
|
||||||
|
|
||||||
|
Login to the admin console for `authentik`. Go to `Applications` > `Providers`. Click `Create`.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
A dialog box will pop-up, select the `OAuth2/OpenID Provider`. Click `Next`.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
On the next page of the wizard, set the `Name`, `Authentication flow`, and `Authorization flow`. See example below. Using the `default-provider-authorization-implicit-consent` authorization flow on internal services and `default-provider-authorization-explicit-consent` on external services is a common practice. However, it is fully up to you on how you would like to configure this option. `Implicit` will login directly without user consent, `explicit` will ask if the user approves the service being logged into with their user credentials.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Scroll down and configure the `Protocol settings`. Set the `Client type` to `Public`. Add the `Redirect URIs/Origins (RegEx)`. If the site is hosted at `dashy.lan.domain.com`, then you would enter as the example below.
|
||||||
|
|
||||||
|
>[!NOTE]
|
||||||
|
>If you have an internal and external domain for `Dashy`, enter both URI's. Enter each URI on a new line.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Scroll down to set the `Signing Key`. It is recommended to use the built in `authentik Self-signed Certificate` here unless you have special needs for your own custom cert.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Expand `Advanced protocol settings` then verify the `Scopes` are set to what is highlighted in `white` below. Set the `Subject mode` to `Based on the Users's Email`.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Lastly, toggle `Include claims in id_token` to on. Click `Finish` to complete creating the provider.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Grab the generated `Client ID` and `OpenID Configuration Issuer` URL by clicking the newly created provider as this will use this later when `Dashy` is configured to use the OIDC auth mechanism. In this tutorial, what was generated is used below. Obviously adjust the `Client ID` that was generated and use your domain here for the `issuer`.
|
||||||
|
```
|
||||||
|
Client ID: pzN9DCMLqHTTatgtYFg50cl0jn1NmCyBC3wreX15
|
||||||
|
OpenID Configuration Issuer: https://auth.domain.com/application/o/dashy/
|
||||||
|
```
|
||||||
|
|
||||||
|
#### 2. Create an application
|
||||||
|
|
||||||
|
Make sure you are still in the `authentik` admin console then go to `Applications` > `Applications`. Click `Create`.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Next, it is required to give a user facing `Name`, `Slug` and assign the newly created provider. Use the example below if you have been following the guide. If you have used your own naming, then adjust accordingly. Click `Create` once you are done.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
>[!TIP]
|
||||||
|
>Open the application in a new tab from the `authentik` user portal and upload a custom icon. You can also enter a user facing `Description` that the user would see.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
#### 3. *(Optional)* Limiting access via `authentik` with groups
|
||||||
|
|
||||||
|
If you would like to deny `Dashy` access from specific users who are not within `authentik` based groups, you bind them to the application you just created now. `authentik` will deny access to those who are not members of this group or groups. If you want to allow everyone access from your `authentik` instance, skip this step.
|
||||||
|
|
||||||
|
Make sure you are still in the `authentik` admin console then go to `Applications` > `Applications`. Click the newly created `Dashy` application.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Click the `Policy/Group/User Bindings` tab at the top, then click `Bind existing policy`. This assumes you have already created the groups you want to use for `Dashy` and populated users in those groups.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Click `Group` for the binding type. Under `Group` select the appropriate group you would like to bind. Make sure `Enabled` is toggeled on. Click `Create`.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
`Dashy` will now be scoped only to users within the assigned groups you have bound the application to. Keep adding groups if you would like to adjust the dashboard visibilty based on group membership.
|
||||||
|
|
||||||
|
#### 4. Configure `Dashy` to use OIDC client
|
||||||
|
|
||||||
|
>[!IMPORTANT]
|
||||||
|
>It is highly recommended to edit your `conf.yml` directly for this step.
|
||||||
|
|
||||||
|
>[!CAUTION]
|
||||||
|
>Do not make the same mistake many have made here by including the fully qualified address for the `OpenID Configuration URL`. `Dashy` will append the `.well-known` configuration automatically. If the `.well-known` URI is included the app will get redirect loops and `400` errors.
|
||||||
|
|
||||||
|
Enter the `Client ID` in the `clientId` field and `OpenID Configuration Issuer` in the `endpoint` field.
|
||||||
|
|
||||||
|
Below is how to configure the `auth` section in the yaml syntax. Once this is enabled, when an attempt to access `Dashy` is made it will now redirect you to the `authentik` login page moving forward.
|
||||||
|
|
||||||
|
```
|
||||||
|
appConfig:
|
||||||
|
theme: glass
|
||||||
|
layout: auto
|
||||||
|
iconSize: medium
|
||||||
|
auth:
|
||||||
|
enableOidc: true
|
||||||
|
oidc:
|
||||||
|
clientId: pzN9DCMLqHTTatgtYFg50cl0jn1NmCyBC3wreX15
|
||||||
|
endpoint: https://auth.domain.com/application/o/dashy/
|
||||||
|
```
|
||||||
|
|
||||||
|
#### 5. *(OPTIONAL)* Example snippets for dashboard visibility
|
||||||
|
|
||||||
|
Using the `hideForKeycloakUsers` configuration option is needed to use the `authentik` groups that were created previously.
|
||||||
|
|
||||||
|
Adjusting `pages` visibility:
|
||||||
|
```
|
||||||
|
pages:
|
||||||
|
- name: App Management
|
||||||
|
path: appmgmt.yml
|
||||||
|
displayData:
|
||||||
|
hideForKeycloakUsers:
|
||||||
|
groups:
|
||||||
|
- Dashy Users
|
||||||
|
- name: Network Management
|
||||||
|
path: network.yml
|
||||||
|
displayData:
|
||||||
|
hideForKeycloakUsers:
|
||||||
|
groups:
|
||||||
|
- Dashy Users
|
||||||
|
```
|
||||||
|
|
||||||
|
Adjusting `items` visibility:
|
||||||
|
```
|
||||||
|
items:
|
||||||
|
- title: Authentik Admin
|
||||||
|
icon: authentik.svg
|
||||||
|
url: https://auth.domain.com/if/admin/
|
||||||
|
target: newtab
|
||||||
|
id: 0_1472_authentikadmin
|
||||||
|
displayData:
|
||||||
|
hideForKeycloakUsers:
|
||||||
|
groups:
|
||||||
|
- Dashy Users
|
||||||
|
- title: Authentik User
|
||||||
|
icon: authentik-light.png
|
||||||
|
url: https://auth.domain.com/if/user/
|
||||||
|
target: newtab
|
||||||
|
id: 1_1472_authentikuser
|
||||||
|
```
|
||||||
|
|
||||||
|
Adjusting `sections` visibility:
|
||||||
|
```
|
||||||
|
sections:
|
||||||
|
- name: Authentication
|
||||||
|
displayData:
|
||||||
|
sortBy: default
|
||||||
|
rows: 2
|
||||||
|
cols: 1
|
||||||
|
collapsed: false
|
||||||
|
hideForGuests: false
|
||||||
|
hideForKeycloakUsers:
|
||||||
|
groups:
|
||||||
|
- Dashy Users
|
||||||
|
```
|
||||||
|
---
|
||||||
|
|
||||||
|
## Alternative Authentication Methods
|
||||||
|
|
||||||
|
If you are self-hosting Dashy, and require secure authentication to prevent unauthorized access, then you can either use Keycloak, or one of the following options:
|
||||||
|
|
||||||
|
- [Authentication Server](#authentication-server) - Put Dashy behind a self-hosted auth server
|
||||||
|
- [VPN](#vpn) - Use a VPN to tunnel into the network where Dashy is running
|
||||||
|
- [IP-Based Access](#ip-based-access) - Disallow access from all IP addresses, except your own
|
||||||
|
- [Web Server Authentication](#web-server-authentication) - Enable user control within your web server or proxy
|
||||||
|
- [OAuth Services](#oauth-services) - Implement a user management system using a cloud provider
|
||||||
|
- [Password Protection (for cloud providers)](#static-site-hosting-providers) - Enable password-protection on your site
|
||||||
|
|
||||||
|
### Authentication Server
|
||||||
|
|
||||||
|
#### Authelia
|
||||||
|
|
||||||
|
[Authelia](https://www.authelia.com/) is an open-source full-featured authentication server, which can be self-hosted and either on bare metal, in a Docker container or in a Kubernetes cluster. It allows for fine-grained access control rules based on IP, path, users etc, and supports 2FA, simple password access or bypass policies for your domains.
|
||||||
|
|
||||||
|
- `git clone https://github.com/authelia/authelia.git`
|
||||||
|
- `cd authelia/examples/compose/lite`
|
||||||
|
- Modify the `users_database.yml` the default username and password is authelia
|
||||||
|
- Modify the `configuration.yml` and `docker-compose.yml` with your respective domains and secrets
|
||||||
|
- `docker-compose up -d`
|
||||||
|
|
||||||
|
For more information, see the [Authelia docs](https://www.authelia.com/docs/)
|
||||||
|
|
||||||
|
### VPN
|
||||||
|
|
||||||
|
A catch-all solution to accessing services running from your home network remotely is to use a VPN. It means you do not need to worry about implementing complex authentication rules, or trusting the login implementation of individual applications. However it can be inconvenient to use on a day-to-day basis, and some public and corporate WiFi block VPN connections. Two popular VPN protocols are [OpenVPN](https://openvpn.net/) and [WireGuard](https://www.wireguard.com/)
|
||||||
|
|
||||||
|
### IP-Based Access
|
||||||
|
|
||||||
|
If you have a static IP or use a VPN to access your running services, then you can use conditional access to block access to Dashy from everyone except users of your pre-defined IP address. This feature is offered by most cloud providers, and supported by most web servers.
|
||||||
|
|
||||||
|
#### Apache
|
||||||
|
|
||||||
|
In Apache, this is configured in your `.htaccess` file in Dashy's root folder, and should look something like:
|
||||||
|
|
||||||
|
```text
|
||||||
|
Order Deny,Allow
|
||||||
|
Deny from all
|
||||||
|
Allow from [your-ip]
|
||||||
|
```
|
||||||
|
|
||||||
|
#### NGINX
|
||||||
|
|
||||||
|
In NGINX you can specify [control access](https://docs.nginx.com/nginx/admin-guide/security-controls/controlling-access-proxied-http/) rules for a given site in your `nginx.conf` or hosts file. For example:
|
||||||
|
|
||||||
|
```text
|
||||||
|
server {
|
||||||
|
listen 8080;
|
||||||
|
server_name www.dashy.example.com;
|
||||||
|
location / {
|
||||||
|
root /path/to/dashy/;
|
||||||
|
passenger_enabled on;
|
||||||
|
allow [your-ip];
|
||||||
|
deny all;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Caddy
|
||||||
|
|
||||||
|
In Caddy, [Request Matchers](https://caddyserver.com/docs/caddyfile/matchers) can be used to filter requests
|
||||||
|
|
||||||
|
```text
|
||||||
|
dashy.site {
|
||||||
|
@public_networks not remote_ip [your-ip]
|
||||||
|
respond @public_networks "Access denied" 403
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Web Server Authentication
|
||||||
|
|
||||||
|
Most web servers make password protecting certain apps very easy. Note that you should also set up HTTPS and have a valid certificate in order for this to be secure.
|
||||||
|
|
||||||
|
#### Apache
|
||||||
|
|
||||||
|
First crate a `.htaccess` file in Dashy's route directory. Specify the auth type and path to where you want to store the password file (usually the same folder). For example:
|
||||||
|
|
||||||
|
```text
|
||||||
|
AuthType Basic
|
||||||
|
AuthName "Please Sign into Dashy"
|
||||||
|
AuthUserFile /path/dashy/.htpasswd
|
||||||
|
require valid-user
|
||||||
|
```
|
||||||
|
|
||||||
|
Then create a `.htpasswd` file in the same directory. List users and their hashed passwords here, with one user on each line, and a colon between username and password (e.g. `[username]:[hashed-password]`). You will need to generate an MD5 hash of your desired password, this can be done with an [online tool](https://www.web2generators.com/apache-tools/htpasswd-generator). Your file will look something like:
|
||||||
|
|
||||||
|
```text
|
||||||
|
alicia:$apr1$jv0spemw$RzOX5/GgY69JMkgV6u16l0
|
||||||
|
```
|
||||||
|
|
||||||
|
#### NGINX
|
||||||
|
|
||||||
|
NGINX has an [authentication module](https://nginx.org/en/docs/http/ngx_http_auth_basic_module.html) which can be used to add passwords to given sites, and is fairly simple to set up. Similar to above, you will need to create a `.htpasswd` file. Then just enable auth and specify the path to that file, for example:
|
||||||
|
|
||||||
|
```text
|
||||||
|
location / {
|
||||||
|
auth_basic "closed site";
|
||||||
|
auth_basic_user_file conf/htpasswd;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Caddy
|
||||||
|
|
||||||
|
Caddy has a [basic-auth](https://caddyserver.com/docs/caddyfile/directives/basicauth) directive, where you specify a username and hash. The password hash needs to be base-64 encoded, the [`caddy hash-password`](https://caddyserver.com/docs/command-line#caddy-hash-password) command can help with this. For example:
|
||||||
|
|
||||||
|
```text
|
||||||
|
basicauth /secret/* {
|
||||||
|
alicia JDJhJDEwJEVCNmdaNEg2Ti5iejRMYkF3MFZhZ3VtV3E1SzBWZEZ5Q3VWc0tzOEJwZE9TaFlZdEVkZDhX
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
For more info about implementing a single sign on for all your apps with Caddy, see [this tutorial](https://joshstrange.com/securing-your-self-hosted-apps-with-single-signon/)
|
||||||
|
|
||||||
|
#### Lighttpd
|
||||||
|
|
||||||
|
You can use the [mod_auth](https://doc.lighttpd.net/lighttpd2/mod_auth.html) module to secure your site with Lighttpd. Like with Apache, you need to first create a password file listing your usernames and hashed passwords, but in Lighttpd, it's usually called `.lighttpdpassword`.
|
||||||
|
|
||||||
|
Then in your `lighttpd.conf` file (usually in the `/etc/lighttpd/` directory), load in the mod_auth module, and configure it's directives. For example:
|
||||||
|
|
||||||
|
```text
|
||||||
|
server.modules += ( "mod_auth" )
|
||||||
|
auth.debug = 2
|
||||||
|
auth.backend = "plain"
|
||||||
|
auth.backend.plain.userfile = "/home/lighttpd/.lighttpdpassword"
|
||||||
|
|
||||||
|
$HTTP["host"] == "dashy.my-domain.net" {
|
||||||
|
server.document-root = "/home/lighttpd/dashy.my-domain.net/http"
|
||||||
|
server.errorlog = "/var/log/lighttpd/dashy.my-domain.net/error.log"
|
||||||
|
accesslog.filename = "/var/log/lighttpd/dashy.my-domain.net/access.log"
|
||||||
|
auth.require = (
|
||||||
|
"/docs/" => (
|
||||||
|
"method" => "basic",
|
||||||
|
"realm" => "Password protected area",
|
||||||
|
"require" => "user=alicia"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Restart your web server for changes to take effect.
|
||||||
|
|
||||||
|
### OAuth Services
|
||||||
|
|
||||||
|
There are also authentication services, such as [Ory.sh](https://www.ory.sh/), [Okta](https://developer.okta.com/), [Auth0](https://auth0.com/), [Firebase](https://firebase.google.com/docs/auth/). Implementing one of these solutions would involve some changes to the [`Auth.js`](https://github.com/Lissy93/dashy/blob/master/src/utils/Auth.js) file, but should be fairly straightforward.
|
||||||
|
|
||||||
|
### Static Site Hosting Providers
|
||||||
|
|
||||||
|
If you are hosting Dashy on a cloud platform, you will probably find that it has built-in support for password protected access to web apps. For more info, see the relevant docs for your provider, for example: [Netlify Password Protection](https://docs.netlify.com/visitor-access/password-protection/), [Cloudflare Access](https://www.cloudflare.com/teams/access/), [AWS Cognito](https://aws.amazon.com/cognito/), [Azure Authentication](https://docs.microsoft.com/en-us/azure/app-service/scenario-secure-app-authentication-app-service) and [Vercel Password Protection](https://vercel.com/docs/platform/projects#password-protection).
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#authentication)**
|
|
@ -0,0 +1,113 @@
|
||||||
|
# Cloud Backup and Restore
|
||||||
|
|
||||||
|
Beyond the cloud backup/restore service, there are several other self-hosted options you can use to backup Dashy, and any other Docker container data. These are outlined in the Management docs, at: [Docker Backup Options](/docs/management.md#backing-up).
|
||||||
|
|
||||||
|
Dashy has a built-in feature for securely backing up your config to a hosted cloud service, and then restoring it on another instance. This feature is totally optional, and if you do not enable it, then Dashy will not make any external network requests.
|
||||||
|
|
||||||
|
This is useful not only for backing up your configuration off-site, but it also enables Dashy to be used without having write a YAML config file, and makes it possible to use a public hosted instance, without the need to self-host.
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img src="https://i.ibb.co/p4pxSqX/dashy-backup-restore.png" width="600" />
|
||||||
|
</p>
|
||||||
|
|
||||||
|
## How it Works
|
||||||
|
|
||||||
|
All data is encrypted before being sent to the backend. In Dashy, this is done in [`CloudBackup.js`](https://github.com/Lissy93/dashy/blob/master/src/utils/CloudBackup.js), using [crypto.js](https://github.com/brix/crypto-js)'s AES method, using the users chosen password as the key. The data is then sent to a [Cloudflare worker](https://developers.cloudflare.com/workers/learning/how-workers-works) (a platform for running serverless functions), and stored in a [KV](https://developers.cloudflare.com/workers/learning/how-kv-works) data store.
|
||||||
|
|
||||||
|
## Creating a Backup
|
||||||
|
|
||||||
|
Once you've got Dashy configured to your preference, open the Backup & Restore menu (click the Cloud icon in the top-right corner). Here you will be prompted to choose a password, which will be used to encrypt your data. If you forget this password, there will be no way to recover your config. After clicking 'Backup' your data will be encrypted, compressed and sent to the hosted cloud service. A backup ID will be returned (in the format of xxxx-xxxx-xxxx-xxxx), this is what you use, along with your password to restore the backup on another system, so take note of it. To update a backup, return to this menu, enter your password, and click 'Update Backup'.
|
||||||
|
|
||||||
|
## Restoring a Backup
|
||||||
|
|
||||||
|
To restore a backup, navigate to the Backup & Restore menu, and under restore, enter your backup ID, and the password you chose. Your config file will be downloaded, decrypted and applied to local storage.
|
||||||
|
|
||||||
|
## Privacy & Security
|
||||||
|
|
||||||
|
Data is only ever sent to the cloud when the user actively triggers a backup. All transmitted data is first encrypted using [AES](https://en.wikipedia.org/wiki/Advanced_Encryption_Standard). Your selected password never leaves your device, and is hashed before being compared. It is only possible to restore a configuration if you have both the backup ID and decryption password.
|
||||||
|
|
||||||
|
Because the data is encrypted on the client-side (before being sent to the cloud), it is not possible for a man-in-the-middle, government entity, website owner, or even Cloudflare to be able read any of your data. The biggest risk to your data, would be a weak password, or a compromised system.
|
||||||
|
|
||||||
|
Having said that, although the code uses robust security libraries and is open source- it was never intended to be a security product, and has not been audited, and therefore cannot be considered totally secure - please keep that in mind.
|
||||||
|
|
||||||
|
## Fair Use Policy
|
||||||
|
|
||||||
|
Maximum of 24mb of storage per user. Please do not repeatedly hit the endpoint, as if the quota is exceeded the service may become less available to other users. Abuse may result in your IP being temporarily banned by Cloudflare.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Self-Hosting the Backup Server
|
||||||
|
|
||||||
|
### Quick Start
|
||||||
|
|
||||||
|
- Install Wrangler CLI Tool: `npm i -g @cloudflare/wrangler`
|
||||||
|
- Log into Cloudflare account: `wrangler login`
|
||||||
|
- Create a new project: `wrangler generate my-project`
|
||||||
|
- Install dependencies: `cd my-project` && `npm i`
|
||||||
|
|
||||||
|
### Populate `wrangler.toml`
|
||||||
|
|
||||||
|
- Add your `account_id` (found on the right sidebar of the Workers or Overview Dashboard)
|
||||||
|
- Add your `zone_id` (found in the Overview tab of your desired domain on Cloudflare)
|
||||||
|
- Add your `route`, which should be a domain or host, supporting a wildcard
|
||||||
|
|
||||||
|
```toml
|
||||||
|
name = "dashy-worker"
|
||||||
|
type = "javascript"
|
||||||
|
|
||||||
|
workers_dev = true
|
||||||
|
route = "example.com/*"
|
||||||
|
zone_id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
|
||||||
|
account_id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
|
||||||
|
|
||||||
|
kv_namespaces = [
|
||||||
|
{ binding = "DASHY_CLOUD_BACKUP", id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" }
|
||||||
|
]
|
||||||
|
```
|
||||||
|
|
||||||
|
### Complete `index.js`
|
||||||
|
|
||||||
|
- Write code to handle your requests, and interact with any other data sources in this file
|
||||||
|
- Generally, this is done within an event listener for 'fetch', and returns a promise
|
||||||
|
- For Example:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
addEventListener('fetch', event => {
|
||||||
|
event.respondWith(handleRequest(event.request))
|
||||||
|
})
|
||||||
|
|
||||||
|
async function handleRequest(request) {
|
||||||
|
return new Response('Hello World!', {
|
||||||
|
headers: { 'content-type': 'text/plain' },
|
||||||
|
})
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
- For the code used for Dashy's cloud service, see [here](https://gist.github.com/Lissy93/d19b43d50f30e02fa25f349cf5cb5ed8#file-index-js)
|
||||||
|
|
||||||
|
### Commands
|
||||||
|
|
||||||
|
- `wrangler dev` - To start the wrangler development server
|
||||||
|
- `wrangler publish` - To publish to your cloudflare account (first run `wrangler login`)
|
||||||
|
|
||||||
|
## API
|
||||||
|
|
||||||
|
There are four endpoints, and to keep things simple, they all use the same base URL/ route.
|
||||||
|
|
||||||
|
- **`GET`** - Get config for a given user
|
||||||
|
- `backupId` - The ID of the desired encrypted object
|
||||||
|
- `subHash` - The latter half of the password hash, to verify ownership
|
||||||
|
- **`POST`** - Save a new config object, and returns `backupId`
|
||||||
|
- `userData` - The encrypted, compressed and stringified user config
|
||||||
|
- `subHash` - The latter half of the password hash, to verify ownership
|
||||||
|
- **`PUT`** - Update an existing config object
|
||||||
|
- `backupId` - The ID of the object to update
|
||||||
|
- `subHash` - Part of the hash, to verify ownership of said object
|
||||||
|
- `userData` - The new data to store
|
||||||
|
- **`DELETE`** - Delete a specified config object
|
||||||
|
- `backupId` - The ID of the object to be deleted
|
||||||
|
- `subHash` - Part of the password hash, to verify ownership of the object
|
||||||
|
|
||||||
|
For more info, see the [API Docs](https://documenter.getpostman.com/view/2142819/TzXumzce).
|
||||||
|
|
||||||
|
If you are using Postman, you may find this pre-made [collection](https://www.getpostman.com/collections/58f79ddb150223f67b35) helpful in getting things setup.
|
|
@ -0,0 +1,412 @@
|
||||||
|
# Configuring
|
||||||
|
|
||||||
|
All app configuration is specified in [`/user-data/conf.yml`](https://github.com/Lissy93/dashy/blob/master/user-data/conf.yml) which is in [YAML Format](https://yaml.org/) format. If you're using Docker, this file can be passed in as a volume. Changes can either be made directly to this file, or done [through the UI](#editing-config-through-the-ui). From the UI you can also export, backup, reset, validate and download your configuration file.
|
||||||
|
|
||||||
|
## There are three ways to edit the config
|
||||||
|
|
||||||
|
- **Directly in the YAML file** _(5/5 reliability, 3/5 usability)_
|
||||||
|
- Write changes directly to the conf.yml file, optionally using one of the templates provided. This can be done in your favorite editor and uploading to your server, or directly editing the file via SSH, but the easiest method would be to use [Code Server](https://github.com/coder/code-server)
|
||||||
|
- **UI JSON Editor** _(4/5 reliability, 4/5 usability)_
|
||||||
|
- From the UI, under the config menu there is a JSON editor, with built-in validation, documentation and advanced options
|
||||||
|
- **UI Visual Editor** _(3/5 reliability, 5/5 usability)_
|
||||||
|
- From the UI, enter the Interactive Edit Mode, then click any part of the page to edit. Changes are previewed live, and then saved to disk
|
||||||
|
- **REST API** _(Coming soon)_
|
||||||
|
- Programmatically edit config either through the command line, using a script or a third-party application
|
||||||
|
|
||||||
|
## Tips
|
||||||
|
|
||||||
|
- You may find it helpful to look at some sample config files to get you started, a collection of which can be found [here](https://gist.github.com/Lissy93/000f712a5ce98f212817d20bc16bab10)
|
||||||
|
- You can check that your config file fits the schema, by running `yarn validate-config`
|
||||||
|
- After modifying your config, the app needs to be recompiled, by running `yarn build` - this happens automatically if you're using Docker
|
||||||
|
- It is recommended to keep a backup of your config file. You can download it under Config menu, or use the [Cloud Backup](./docs/backup-restore.md) feature.
|
||||||
|
- You can make use of YAML features, like anchors, comments, multi-line strings, etc to reuse attributes and keep your config file readable
|
||||||
|
- Once you have finished configuring your dashboard, you can choose to [disable UI config](#preventing-changes) if you wish
|
||||||
|
- All fields are optional, unless otherwise stated.
|
||||||
|
|
||||||
|
The following file provides a reference of all supported configuration options.
|
||||||
|
|
||||||
|
## Contents
|
||||||
|
|
||||||
|
- [**`pageInfo`**](#pageinfo) - Header text, footer, title, navigation, etc
|
||||||
|
- [`navLinks`](#pageinfonavlinks-optional) - Links to display in the navigation bar
|
||||||
|
- [**`pages`**](#pages-optional) - List of additional config files, for multi-page dashboards
|
||||||
|
- [**`appConfig`**](#appconfig-optional) - Main application settings
|
||||||
|
- [`webSearch`](#appconfigwebsearch-optional) - Configure web search engine options
|
||||||
|
- [`hideComponents`](#appconfighidecomponents-optional) - Show/ hide page components
|
||||||
|
- [`auth`](#appconfigauth-optional) - Built-in authentication setup
|
||||||
|
- [`users`](#appconfigauthusers-optional) - List or users (for simple auth)
|
||||||
|
- [`keycloak`](#appconfigauthkeycloak-optional) - Auth config for Keycloak
|
||||||
|
- [`headerAuth`](#appconfigauthheaderauth-optional) - Auth config for HeaderAuth
|
||||||
|
- [**`sections`**](#section) - List of sections
|
||||||
|
- [`displayData`](#sectiondisplaydata-optional) - Section display settings
|
||||||
|
- [`show/hideForKeycloakUsers`](#sectiondisplaydatahideforkeycloakusers-sectiondisplaydatashowforkeycloakusers-itemdisplaydatahideforkeycloakusers-and-itemdisplaydatashowforkeycloakusers) - Set user controls
|
||||||
|
- [`icon`](#sectionicon-and-sectionitemicon) - Icon for a section
|
||||||
|
- [`items`](#sectionitem) - List of items
|
||||||
|
- [`icon`](#sectionicon-and-sectionitemicon) - Icon for an item
|
||||||
|
- [`displayData`](#itemdisplaydata-optional) - Item display settings
|
||||||
|
- [`show/hideForKeycloakUsers`](#sectiondisplaydatahideforkeycloakusers-sectiondisplaydatashowforkeycloakusers-itemdisplaydatahideforkeycloakusers-and-itemdisplaydatashowforkeycloakusers) - Set user controls
|
||||||
|
- [`widgets`](#sectionwidget-optional) - List of widgets
|
||||||
|
- [**Notes**](#notes)
|
||||||
|
- [Editing Config through the UI](#editing-config-through-the-ui)
|
||||||
|
- [About YAML](#about-yaml)
|
||||||
|
- [Config Saving Methods](#config-saving-methods)
|
||||||
|
- [Preventing Changes](#preventing-changes)
|
||||||
|
- [Example](#example)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Top-Level Fields
|
||||||
|
|
||||||
|
**Field** | **Type** | **Required**| **Description**
|
||||||
|
--- | --- | --- | ---
|
||||||
|
**`pageInfo`** | `object` | Required | Basic meta data like title, description, nav bar links, footer text. See [`pageInfo`](#pageinfo)
|
||||||
|
**`appConfig`** | `object` | _Optional_ | Settings related to how the app functions, including API keys and global styles. See [`appConfig`](#appconfig-optional)
|
||||||
|
**`sections`** | `array` | Required | An array of sections, each containing an array of items, which will be displayed as links. See [`section`](#section)
|
||||||
|
**`pages`** | `array` | _Optional_ | An array additional config files, used for multi-page dashboards. See [`pages`](#pages-optional)
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#configuring)**
|
||||||
|
|
||||||
|
## `PageInfo`
|
||||||
|
|
||||||
|
**Field** | **Type** | **Required**| **Description**
|
||||||
|
--- | --- | --- | ---
|
||||||
|
**`title`** | `string` | Required | Your dashboard title, displayed in the header and browser tab
|
||||||
|
**`description`** | `string` | _Optional_ | Description of your dashboard, also displayed as a subtitle
|
||||||
|
**`navLinks`** | `array` | _Optional_ | Optional list of a maximum of 6 links, which will be displayed in the navigation bar. See [`navLinks`](#pageinfonavlinks-optional)
|
||||||
|
**`footerText`** | `string` | _Optional_ | Text to display in the footer (note that this will override the default footer content). This can also include HTML and inline CSS
|
||||||
|
**`logo`** | `string` | _Optional_ | The path to an image to display in the header (to the right of the title). This can be either local, where `/` is the root of `./public`, or any remote image, such as `https://i.ibb.co/yhbt6CY/dashy.png`. It's recommended to scale your image down, so that it doesn't impact load times
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#configuring)**
|
||||||
|
|
||||||
|
## `pageInfo.navLinks` _(optional)_
|
||||||
|
|
||||||
|
**Field** | **Type** | **Required**| **Description**
|
||||||
|
--- | --- | --- | ---
|
||||||
|
**`title`** | `string` | Required | The text to display on the link button
|
||||||
|
**`path`** | `string` | Required | The URL to navigate to when clicked. Can be relative (e.g. `/about`) or absolute (e.g. `https://example.com` or `http://192.168.1.1`)
|
||||||
|
**`target`** | `string` | _Optional_ | The opening method (external links only). Can be either `newtab`, `sametab`, `top` or `parent`. Defaults to `newtab`
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#configuring)**
|
||||||
|
|
||||||
|
## `pages[]` _(optional)_
|
||||||
|
|
||||||
|
**Field** | **Type** | **Required**| **Description**
|
||||||
|
--- | --- | --- | ---
|
||||||
|
**`name`** | `string` | Required | A unique name for that page
|
||||||
|
**`path`** | `string` | Required | The path (local or remote) to the config file to use.<br>For files located within `/public`, you only need to specify filename, for externally hosted files you must include the full URL
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#configuring)**
|
||||||
|
|
||||||
|
## `appConfig` _(optional)_
|
||||||
|
|
||||||
|
**Field** | **Type** | **Required**| **Description**
|
||||||
|
--- | --- | --- | ---
|
||||||
|
**`language`** | `string` | _Optional_ | The 2 (or 4-digit) [ISO 639-1 code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) for your language, e.g. `en` or `en-GB`. This must be a language that the app has already been [translated](https://github.com/Lissy93/dashy/tree/master/src/assets/locales) into. If your language is unavailable, Dashy will fallback to English. By default Dashy will attempt to auto-detect your language, although this may not work on some privacy browsers.
|
||||||
|
~~**`startingView`**~~ | `enum` | _Optional_ | Which page to load by default, and on the base page or domain root. You can still switch to different views from within the UI. Can be either `default`, `minimal` or `workspace`. Defaults to `default`. NOTE: This has been replaced by an environmental variable: `VUE_APP_STARTING_VIEW` in V3 onwards
|
||||||
|
**`defaultOpeningMethod`** | `enum` | _Optional_ | The default opening method for items, if no `target` is specified for a given item. Can be either `newtab`, `sametab`, `modal`, `workspace`, `clipboard`, `top` or `parent`. Defaults to `newtab`
|
||||||
|
**`statusCheck`** | `boolean` | _Optional_ | When set to `true`, Dashy will ping each of your services and display their status as a dot next to each item. This can be overridden by setting `statusCheck` under each item. Defaults to `false`
|
||||||
|
**`statusCheckInterval`** | `number` | _Optional_ | The number of seconds between checks. If set to `0` then service will only be checked on initial page load, which is usually the desired functionality. If value is less than `10` you may experience a hit in performance. Defaults to `0`
|
||||||
|
**`webSearch`** | `object` | _Optional_ | Configuration options for the web search feature, set your default search engine, opening method or disable web search. See [`webSearch`](#appconfigwebsearch-optional)
|
||||||
|
**`backgroundImg`** | `string` | _Optional_ | Path to an optional full-screen app background image. This can be either remote (http) or local (relative to /app/public/item-icons/ inside the container). Note that this will slow down initial load
|
||||||
|
**`enableFontAwesome`** | `boolean` | _Optional_ | If set to `true` font-awesome will be loaded, if set to `false` they will not be. if left blank font-awesome will be enabled only if required by 1 or more icons
|
||||||
|
**`enableMaterialDesignIcons`** | `boolean` | _Optional_ | If set to `true` mdi icons will be loaded, if set to `false` they will not be. Where `true` is enabled, if left blank material design icons will be enabled only if required by 1 or more icons
|
||||||
|
**`fontAwesomeKey`** | `string` | _Optional_ | If you have a font-awesome key, then you can use it here and make use of premium icons. It is a 10-digit alpha-numeric string from you're FA kit URL (e.g. `13014ae648`)
|
||||||
|
**`faviconApi`** | `enum` | _Optional_ | Only applicable if you are using favicons for item icons. Specifies which service to use to resolve favicons. Set to `local` to do this locally, without using an API. Services running locally will use this option always. Available options are: `local`, `faviconkit`, `iconhorse`, `google`, `clearbit`, `webmasterapi` and `allesedv`. Defaults to `faviconkit`. See [Icons](/docs/icons.md#favicons) for more info
|
||||||
|
**`auth`** | `object` | _Optional_ | All settings relating to user authentication. See [`auth`](#appconfigauth-optional)
|
||||||
|
**`defaultIcon`** | `string` | _Optional_ | An icon to be applied to any items, which don't already have an icon set. See [Icon Docs](/docs/icons.md#default-icon) for more info
|
||||||
|
**`layout`** | `enum` | _Optional_ | Layout for homepage, either `horizontal`, `vertical` or `auto`. Defaults to `auto`. This specifies the layout and direction of how sections are positioned on the home screen. This can also be modified and overridden from the UI.
|
||||||
|
**`iconSize`** | `enum` | _Optional_ | The size of link items / icons. Can be either `small`, `medium,` or `large`. Defaults to `medium`. This can also be set directly from the UI.
|
||||||
|
**`colCount`** | `number` | _Optional_ | The number of columns of sections displayed on the homepage, using the default view. Should be in integer between `1` and `8`. Note that by default this is applied responsively, based on current screen size, and specifying a value here will override this behavior, which may not be desirable.
|
||||||
|
**`theme`** | `string` | _Optional_ | The default theme for first load (you can change this later from the UI)
|
||||||
|
**`cssThemes`** | `string[]` | _Optional_ | An array of custom theme names which can be used in the theme switcher dropdown
|
||||||
|
**`customColors`** | `object`| _Optional_ | Enables you to apply a custom color palette to any given theme. Use the theme name (lowercase) as the key, for an object including key-value-pairs, with the color variable name as keys, and 6-digit hex code as value. See [Theming](/docs/theming.md#modifying-theme-colors) for more info
|
||||||
|
**`externalStyleSheet`** | `string` or `string[]` | _Optional_ | Either a URL to an external stylesheet or an array or URLs, which can be applied as themes within the UI
|
||||||
|
**`customCss`** | `string` | _Optional_ | Raw CSS that will be applied to the page. This can also be set from the UI. Please minify it first.
|
||||||
|
**`hideComponents`** | `object` | _Optional_ | A list of key page components (header, footer, search, settings, etc) that are present by default, but can be removed using this option. See [`appConfig.hideComponents`](#appconfighideComponents-optional)
|
||||||
|
**`routingMode`** | `string` | _Optional_ | Can be either `hash` or `history`. Determines the URL format for sub-pages, hash mode will look like `/#/home` whereas with history mode available you have nice clean URLs, like `/home`. For more info, see the [Vue docs](https://router.vuejs.org/guide/essentials/history-mode.html#example-server-configurations). If you're hosting Dashy with a custom BASE_URL, you will find that a bit of extra server config is necessary to get history mode working, so here you may want to instead use `hash` mode.Defaults to `history`.
|
||||||
|
**`enableMultiTasking`** | `boolean` | _Optional_ | If set to true, will keep apps open in the background when in the workspace view. Useful for quickly switching between multiple sites, and preserving their state, but comes at the cost of performance.
|
||||||
|
**`workspaceLandingUrl`** | `string` | _Optional_ | The URL or an app, service or website to launch when the workspace view is opened, before another service has been launched
|
||||||
|
**`preventWriteToDisk`** | `boolean` | _Optional_ | If set to `true`, users will be prevented from saving config changes to disk through the UI
|
||||||
|
**`preventLocalSave`** | `boolean` | _Optional_ | If set to `true`, users will be prevented from applying config changes to local storage
|
||||||
|
**`disableConfiguration`** | `boolean` | _Optional_ | If set to true, no users will be able to view or edit the config through the UI
|
||||||
|
**`disableConfigurationForNonAdmin`** | `boolean` | _Optional_ | If set to true, only admin users will be able to view or edit the config through the UI. disableConfiguration must not be set to true.
|
||||||
|
**`widgetsAlwaysUseProxy`** | `boolean` | _Optional_ | If set to `true`, requests made by widgets will always be proxied, same as setting `useProxy: true` on each widget. Note that this may break some widgets.
|
||||||
|
**`showSplashScreen`** | `boolean` | _Optional_ | If set to `true`, a loading screen will be shown. Defaults to `false`.
|
||||||
|
**`enableErrorReporting`** | `boolean` | _Optional_ | Enable reporting of unexpected errors and crashes. This is off by default, and **no data will ever be captured unless you explicitly enable it**. Turning on error reporting helps previously unknown bugs get discovered and fixed. Dashy uses [Sentry](https://github.com/getsentry/sentry) for error reporting. Defaults to `false`.
|
||||||
|
**`sentryDsn`** | `boolean` | _Optional_ | If you need to monitor errors in your instance, then you can use Sentry to collect and process bug reports. Sentry can be self-hosted, or used as SaaS, once your instance is setup, then all you need to do is pass in the DSN here, and enable error reporting. You can learn more on the [Sentry DSN Docs](https://docs.sentry.io/product/sentry-basics/dsn-explainer/). Note that this will only ever be used if `enableErrorReporting` is explicitly enabled.
|
||||||
|
**`disableSmartSort`** | `boolean` | _Optional_ | For the most-used and last-used app sort functions to work, a basic open-count is stored in local storage. If you do not want this to happen, then disable smart sort here, but you wil no longer be able to use these sort options. Defaults to `false`.
|
||||||
|
**`disableUpdateChecks`** | `boolean` | _Optional_ | If set to true, Dashy will not check for updates. Defaults to `false`.
|
||||||
|
**`enableServiceWorker`** | `boolean` | _Optional_ | Service workers cache web applications to improve load times and offer basic offline functionality, and are enabled by default in Dashy. The service worker can sometimes cause older content to be cached, requiring the app to be hard-refreshed. If you do not want SW functionality, or are having issues with caching, set this property to `false` to disable all service workers.
|
||||||
|
**`disableContextMenu`** | `boolean` | _Optional_ | If set to `true`, the custom right-click context menu will be disabled. Defaults to `false`.
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#configuring)**
|
||||||
|
|
||||||
|
## `appConfig.auth` _(optional)_
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> Since the auth is initiated in the main app entry point (for security), a rebuild is required to apply changes to the auth configuration.
|
||||||
|
> You can trigger a rebuild through the UI, under Config --> Rebuild, or by running `yarn build` in the root directory.
|
||||||
|
|
||||||
|
> [!WARNING]
|
||||||
|
> Built-in auth should **not be used** for security-critical applications, or if your Dashy instance is publicly accessible.
|
||||||
|
> For these, it is recommended to use an [alternate authentication method](/docs/authentication.md#alternative-authentication-methods).
|
||||||
|
|
||||||
|
**Field** | **Type** | **Required**| **Description**
|
||||||
|
--- | --- | --- | ---
|
||||||
|
**`users`** | `array` | _Optional_ | An array of objects containing usernames and hashed passwords. If this is not provided, then authentication will be off by default, and you will not need any credentials to access the app. See [`appConfig.auth.users`](#appconfigauthusers-optional). <br>**Note** this method of authentication is handled on the client side, so for security critical situations, it is recommended to use an [alternate authentication method](/docs/authentication.md#alternative-authentication-methods).
|
||||||
|
**`enableKeycloak`** | `boolean` | _Optional_ | If set to `true`, then authentication using Keycloak will be enabled. Note that you need to have an instance running, and have also configured `auth.keycloak`. Defaults to `false`
|
||||||
|
**`keycloak`** | `object` | _Optional_ | Config options to point Dashy to your Keycloak server. Requires `enableKeycloak: true`. See [`auth.keycloak`](#appconfigauthkeycloak-optional) for more info
|
||||||
|
**`enableHeaderAuth`** | `boolean` | _Optional_ | If set to `true`, then authentication using HeaderAuth will be enabled. Note that you need to have your web server/reverse proxy running, and have also configured `auth.headerAuth`. Defaults to `false`
|
||||||
|
**`headerAuth`** | `object` | _Optional_ | Config options to point Dashy to your headers for authentication. Requires `enableHeaderAuth: true`. See [`auth.headerAuth`](#appconfigauthheaderauth-optional) for more info
|
||||||
|
**`enableOidc`** | `boolean` | _Optional_ | If set to `true`, then authentication using OIDC will be enabled. Note that you need to have a configured OIDC server and configure it with `auth.oidc`. Defaults to `false`
|
||||||
|
**`oidc`** | `object` | _Optional_ | Config options to point Dash to your OIDC configuration. Request `enableOidc: true`. See [`auth.oidc`](#appconfigauthoidc-optional) for more info
|
||||||
|
**`enableGuestAccess`** | `boolean` | _Optional_ | When set to `true`, an unauthenticated user will be able to access the dashboard, with read-only access, without having to login. Requires `auth.users` to be configured. Defaults to `false`.
|
||||||
|
|
||||||
|
For more info, see the **[Authentication Docs](/docs/authentication.md)**
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#configuring)**
|
||||||
|
|
||||||
|
## `appConfig.auth.users` _(optional)_
|
||||||
|
|
||||||
|
**Field** | **Type** | **Required**| **Description**
|
||||||
|
--- | --- | --- | ---
|
||||||
|
**`user`** | `string` | Required | Username to log in with
|
||||||
|
**`hash`** | `string` | Required | A SHA-256 hashed password
|
||||||
|
**`type`** | `string` | _Optional_ | The user type, either admin or normal
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#configuring)**
|
||||||
|
|
||||||
|
## `appConfig.auth.keycloak` _(optional)_
|
||||||
|
|
||||||
|
**Field** | **Type** | **Required**| **Description**
|
||||||
|
--- | --- | --- | ---
|
||||||
|
**`serverUrl`** | `string` | Required | The URL (or URL/ IP + Port) where your keycloak server is running
|
||||||
|
**`realm`** | `string` | Required | The name of the realm (must already be created) that you want to use
|
||||||
|
**`clientId`** | `string` | Required | The Client ID of the client you created for use with Dashy
|
||||||
|
**`legacySupport`** | `boolean` | _Optional_ | If using Keycloak 17 or older, then set this to `true`
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#configuring)**
|
||||||
|
|
||||||
|
## `appConfig.auth.headerAuth` _(optional)_
|
||||||
|
|
||||||
|
**Field** | **Type** | **Required**| **Description**
|
||||||
|
--- | --- | --- | ---
|
||||||
|
**`userHeader`** | `string` | _Optional_ | The Header name which contains username (default: REMOTE_USER). Case insensitive
|
||||||
|
**`proxyWhitelist`** | `array` | Required | An array of Upstream proxy servers to expect authencticated requests from
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#configuring)**
|
||||||
|
|
||||||
|
## `appConfig.auth.oidc` _(optional)_
|
||||||
|
|
||||||
|
**Field** | **Type** | **Required**| **Description**
|
||||||
|
--- | --- | --- | ---
|
||||||
|
**`clientId`** | `string` | Required | The client id registered in the OIDC server
|
||||||
|
**`endpoint`** | `string` | Required | The URL of the OIDC server that should be used.
|
||||||
|
**`scope`** | `string` | Required | The scope(s) to request from the OIDC provider
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#configuring)**
|
||||||
|
|
||||||
|
## `appConfig.webSearch` _(optional)_
|
||||||
|
|
||||||
|
**Field** | **Type** | **Required**| **Description**
|
||||||
|
--- | --- | --- | ---
|
||||||
|
**`disableWebSearch`** | `string` | _Optional_ | Web search is enabled by default, but can be disabled by setting this property to `true`
|
||||||
|
**`searchEngine`** | `string` | _Optional_ | Set the key name for your search engine. Can also use a custom engine by setting this property to `custom`. Currently supported: `duckduckgo`, `google`, `whoogle`, `qwant`, `startpage`, `searx-bar` and `searx-info`. Defaults to `duckduckgo`
|
||||||
|
**`customSearchEngine`** | `string` | _Optional_ | You can also use a custom search engine, or your own self-hosted instance. This requires `searchEngine: custom` to be set. Then add the URL of your service, with GET query string included here
|
||||||
|
**`openingMethod`** | `string` | _Optional_ | Set your preferred opening method for search results: `newtab`, `sametab`, `workspace`. Defaults to `newtab`
|
||||||
|
**`searchBangs`** | `object` | _Optional_ | A key-value-pair set of custom search _bangs_ for redirecting query to a specific app or search engine. The key of each should be the bang you will type (typically starting with `/`, `!` or `:`), and value is the destination, either as a search engine key (e.g. `reddit`) or a URL with search parameters (e.g. `https://en.wikipedia.org/w/?search=`)
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#configuring)**
|
||||||
|
|
||||||
|
## `appConfig.hideComponents` _(optional)_
|
||||||
|
|
||||||
|
**Field** | **Type** | **Required**| **Description**
|
||||||
|
--- | --- | --- | ---
|
||||||
|
**`hideHeading`** | `boolean` | _Optional_ | If set to `true`, the page title & sub-title will not be visible. Defaults to `false`
|
||||||
|
**`hideNav`** | `boolean` | _Optional_ | If set to `true`, the navigation menu will not be visible. Defaults to `false`
|
||||||
|
**`hideSearch`** | `boolean` | _Optional_ | If set to `true`, the search bar will not be visible. Defaults to `false`
|
||||||
|
**`hideSettings`** | `boolean` | _Optional_ | If set to `true`, the settings menu will be initially collapsed. Defaults to `false`
|
||||||
|
**`hideFooter`** | `boolean` | _Optional_ | If set to `true`, the footer will not be visible. Defaults to `false`
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#configuring)**
|
||||||
|
|
||||||
|
## `section`
|
||||||
|
|
||||||
|
**Field** | **Type** | **Required**| **Description**
|
||||||
|
--- | --- | --- | ---
|
||||||
|
**`name`** | `string` | Required | The title for the section
|
||||||
|
**`icon`** | `string` | _Optional_ | An single icon to be displayed next to the title. See [`section.icon`](#sectionicon-and-sectionitemicon)
|
||||||
|
**`items`** | `array` | _Optional_ | An array of items to be displayed within the section. See [`item`](#sectionitem). Sections must include either 1 or more items, or 1 or more widgets.
|
||||||
|
**`widgets`** | `array` | _Optional_ | An array of widgets to be displayed within the section. See [`widget`](#sectionwidget-optional)
|
||||||
|
**`displayData`** | `object` | _Optional_ | Meta-data to optionally override display settings for a given section. See [`displayData`](#sectiondisplaydata-optional)
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#configuring)**
|
||||||
|
|
||||||
|
## `section.item`
|
||||||
|
|
||||||
|
**Field** | **Type** | **Required**| **Description**
|
||||||
|
--- | --- | --- | ---
|
||||||
|
**`title`** | `string` | Required | The text to display/ title of a given item. Max length `18`
|
||||||
|
**`description`** | `string` | _Optional_ | Additional info about an item, which is shown in the tooltip on hover, or visible on large tiles
|
||||||
|
**`url`** | `string` | Required | The URL / location of web address for when the item is clicked
|
||||||
|
**`icon`** | `string` | _Optional_ | The icon for a given item. Can be a font-awesome icon, favicon, remote URL or local URL. See [`item.icon`](#sectionicon-and-sectionitemicon)
|
||||||
|
**`target`** | `string` | _Optional_ | The opening method for when the item is clicked, either `newtab`, `sametab`, `modal`, `workspace`, `clipboard`, `top` or `parent`. Where `newtab` will open the link in a new tab, `sametab` will open it in the current tab, and `modal` will open a pop-up modal, `workspace` will open in the Workspace view and `clipboard` will copy the URL to system clipboard (but not launch app). Defaults to `newtab`
|
||||||
|
**`hotkey`** | `number` | _Optional_ | Give frequently opened applications a numeric hotkey, between `0 - 9`. You can then just press that key to launch that application.
|
||||||
|
**`tags`** | `string[]` | _Optional_ | A list of tags, which can be used for improved search
|
||||||
|
**`statusCheck`** | `boolean` | _Optional_ | When set to `true`, Dashy will ping the URL associated with the current service, and display its status as a dot next to the item. The value here will override `appConfig.statusCheck` so you can turn off or on checks for a given service. Defaults to `appConfig.statusCheck`, falls back to `false`
|
||||||
|
**`statusCheckUrl`** | `string` | _Optional_ | If you've enabled `statusCheck`, and want to use a different URL to what is defined under the item, then specify it here
|
||||||
|
**`statusCheckHeaders`** | `object` | _Optional_ | If you're endpoint requires any specific headers for the status checking, then define them here
|
||||||
|
**`statusCheckAllowInsecure`** | `boolean` | _Optional_ | By default, any request to insecure content will be blocked. Setting this option to `true` will disable the `rejectUnauthorized` option, enabling you to ping non-HTTPS services for the current item. Defaults to `false`
|
||||||
|
**`statusCheckAcceptCodes`** | `string` | _Optional_ | If your service's response code is anything other than 2xx, then you can opt to specify an alternative success code. E.g. if you expect your server to return 403, but still want the status indicator to be green, set this value to `403`
|
||||||
|
**`statusCheckMaxRedirects`** | `number` | _Optional_ | If your service redirects to another page, and you would like status checks to follow redirects, then specify the maximum number of redirects here. Defaults to `0` / will not follow redirects
|
||||||
|
**`color`** | `string` | _Optional_ | An optional color for the text and font-awesome icon to be displayed in. Note that this will override the current theme and so may not display well
|
||||||
|
**`rel`** | `string` | _Optional_ | The value of the `rel` attribute for the link. Useful for specifying the relationship between the target link/document and Dashy. Defaults to `noopener noreferrer`
|
||||||
|
**`backgroundColor`** | `string` | _Optional_ | An optional background fill color for the that given item. Again, this will override the current theme and so might not display well against the background
|
||||||
|
**`provider`** | `string` | _Optional_ | The name of the provider for a given service, useful for when including hosted apps. In some themes, this is visible under the item name
|
||||||
|
**`displayData`** | `object` | _Optional_ | Meta-data to optionally override display settings for a given item. See [`displayData`](#itemdisplaydata-optional)
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#configuring)**
|
||||||
|
|
||||||
|
## `item.displayData` _(optional)_
|
||||||
|
|
||||||
|
**Field** | **Type** | **Required**| **Description**
|
||||||
|
--- | --- | --- | ---
|
||||||
|
**`hideForUsers`** | `string[]` | _Optional_ | Current item will be visible to all users, except for those specified in this list
|
||||||
|
**`showForUsers`** | `string[]` | _Optional_ | Current item will be hidden from all users, except for those specified in this list
|
||||||
|
**`hideForGuests`** | `boolean` | _Optional_ | Current item will be visible for logged in users, but not for guests (see `appConfig.enableGuestAccess`). Defaults to `false`
|
||||||
|
**`hideForKeycloakUsers`** | `object` | _Optional_ | Current item will be visible to all keycloak users, except for those configured via these groups and roles. See `hideForKeycloakUsers`
|
||||||
|
**`showForKeycloakUsers`** | `object` | _Optional_ | Current item will be hidden from all keycloak users, except for those configured via these groups and roles. See `showForKeycloakUsers`
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#configuring)**
|
||||||
|
|
||||||
|
## `section.widgets` _(optional)_
|
||||||
|
|
||||||
|
**Field** | **Type** | **Required**| **Description**
|
||||||
|
--- | --- | --- | ---
|
||||||
|
**`type`** | `string` | Required | The widget type. See [Widget Docs](/docs/widgets.md) for full list of supported widgets
|
||||||
|
**`options`** | `object` | _Optional_ | Some widgets accept either optional or required additional options. Again, see the [Widget Docs](/docs/widgets.md) for full list of options
|
||||||
|
**`updateInterval`** | `number` | _Optional_ | You can keep a widget constantly updated by specifying an update interval, in seconds. See [Continuous Updates Docs](/docs/widgets.md#continuous-updates) for more info
|
||||||
|
**`useProxy`** | `boolean` | _Optional_ | Some widgets make API requests to services that are not CORS-enabled. For these instances, you will need to route requests through a proxy, Dashy has a built in CORS-proxy, which you can use by setting this option to `true`. Defaults to `false`. See the [Proxying Requests Docs](/docs/widgets.md#proxying-requests) for more info
|
||||||
|
**`timeout`** | `number` | _Optional_ | Request timeout in milliseconds, defaults to ½ a second (`500`)
|
||||||
|
**`ignoreErrors`** | `boolean` | _Optional_ | Prevent an error message being displayed, if a network request or something else fails. Useful for false-positives
|
||||||
|
**`label`** | `string` | _Optional_ | Add custom label to a given widget. Useful for identification, if there are multiple of the same type of widget in a single section
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#configuring)**
|
||||||
|
|
||||||
|
## `section.displayData` _(optional)_
|
||||||
|
|
||||||
|
**Field** | **Type** | **Required**| **Description**
|
||||||
|
--- | --- | --- | ---
|
||||||
|
**`sortBy`** | `string` | _Optional_ | The sort order for items within the current section. By default items are displayed in the order in which they are listed in within the config. The following sort options are supported: `most-used` (most opened apps first), `last-used` (the most recently used apps), `alphabetical`, `reverse-alphabetical`, `random` and `default`
|
||||||
|
**`collapsed`** | `boolean` | _Optional_ | If true, the section will be collapsed initially, and will need to be clicked to open. Useful for less regularly used, or very long sections. Defaults to `false`
|
||||||
|
**`cutToHeight`** | `boolean` | _Optional_ | By default, sections will fill available space. Set this option to true to match section height with content height
|
||||||
|
**`rows`** | `number` | _Optional_ | Height of the section, specified as the number of rows it should span vertically, e.g. `2`. Defaults to `1`. Max is `5`.
|
||||||
|
**`cols`** | `number` | _Optional_ | Width of the section, specified as the number of columns the section should span horizontally, e.g. `2`. Defaults to `1`. Max is `5`.
|
||||||
|
**`itemSize`** | `string` | _Optional_ | Specify the size for items within this group, either `small`, `medium` or `large`. Note that this will override any settings specified through the UI
|
||||||
|
**`color`** | `string` | _Optional_ | A custom accent color for the section, as a hex code or HTML color (e.g. `#fff`)
|
||||||
|
**`customStyles`** | `string` | _Optional_ | Custom CSS properties that should be applied to that section, e.g. `border: 2px dashed #ff0000;`
|
||||||
|
**`sectionLayout`** | `string` | _Optional_ | Specify which CSS layout will be used to responsively place items. Can be either `auto` (which uses flex layout), or `grid`. If `grid` is selected, then `itemCountX` and `itemCountY` may also be set. Defaults to `auto`
|
||||||
|
**`itemCountX`** | `number` | _Optional_ | The number of items to display per row / horizontally. If not set, it will be calculated automatically based on available space. Can only be set if `sectionLayout` is set to `grid`. Must be a whole number between `1` and `12`
|
||||||
|
**`itemCountY`** | `number` | _Optional_ | The number of items to display per column / vertically. If not set, it will be calculated automatically based on available space. If `itemCountX` is set, then `itemCountY` can be calculated automatically. Can only be set if `sectionLayout` is set to `grid`. Must be a whole number between `1` and `12`
|
||||||
|
**`hideForUsers`** | `string[]` | _Optional_ | Current section will be visible to all users, except for those specified in this list
|
||||||
|
**`showForUsers`** | `string[]` | _Optional_ | Current section will be hidden from all users, except for those specified in this list
|
||||||
|
**`hideForGuests`** | `boolean` | _Optional_ | Current section will be visible for logged in users, but not for guests (see `appConfig.enableGuestAccess`). Defaults to `false`
|
||||||
|
**`hideForKeycloakUsers`** | `object` | _Optional_ | Current section will be visible to all keycloak users, except for those configured via these groups and roles. See `hideForKeycloakUsers`
|
||||||
|
**`showForKeycloakUsers`** | `object` | _Optional_ | Current section will be hidden from all keycloak users, except for those configured via these groups and roles. See `showForKeycloakUsers`
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#configuring)**
|
||||||
|
|
||||||
|
## `section.icon` and `section.item.icon`
|
||||||
|
|
||||||
|
**Field** | **Type** | **Required**| **Description**
|
||||||
|
--- | --- | --- | ---
|
||||||
|
**`icon`** | `string` | _Optional_ | The icon for a given item or section. <br>See [Icon Docs](/docs/icons.md) for all available supported icon types, including: auto-fetched favicons, generative icons, emoji icons, home-lab service logos, font-awesome, simple-icons, material icons, and icons specified by URL
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#configuring)**
|
||||||
|
|
||||||
|
## `section.displayData.hideForKeycloakUsers`, `section.displayData.showForKeycloakUsers`, `item.displayData.hideForKeycloakUsers` and `item.displayData.showForKeycloakUsers`
|
||||||
|
|
||||||
|
**Field** | **Type** | **Required**| **Description**
|
||||||
|
--- |------------| --- | ---
|
||||||
|
**`groups`** | `string[]` | _Optional_ | Current Section or Item will be hidden or shown based on the user having any of the groups in this list
|
||||||
|
**`roles`** | `string[]` | _Optional_ | Current Section or Item will be hidden or shown based on the user having any of the roles in this list
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#configuring)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
|
||||||
|
### Editing Config through the UI
|
||||||
|
|
||||||
|
Config can be modified directly through the UI, and then written to disk, or applied locally. This can be done wither with the raw config editor (introduced in V 0.6.5 / [#3](https://github.com/Lissy93/dashy/pull/3)), or the interactive editor (introduced in V 1.8.9 / [#298](https://github.com/Lissy93/dashy/pull/298)).
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<a href="https://ibb.co/CzkyMNb">
|
||||||
|
<b>Interactive Editor</b><br>
|
||||||
|
<img alt="Interactive Editor demo" src="https://user-images.githubusercontent.com/1862727/139543020-b0576d28-0830-476f-afc8-a815d4de6def.gif" width="600" />
|
||||||
|
</a>
|
||||||
|
<br>
|
||||||
|
<a href="https://ibb.co/zRv542H">
|
||||||
|
<b>JSON Editor</b><br>
|
||||||
|
<img alt="Config Editor demo" src="https://raw.githubusercontent.com/Lissy93/dashy/master/docs/assets/config-editor-demo.gif" width="600" />
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
### About YAML
|
||||||
|
|
||||||
|
If you're new to YAML, it's pretty straight-forward. The format is exactly the same as that of JSON, but instead of using curly braces, structure is denoted using whitespace. This [quick guide](https://linuxhandbook.com/yaml-basics/) should get you up to speed in a few minutes, for more advanced topics take a look at this [Wikipedia article](https://en.wikipedia.org/wiki/YAML).
|
||||||
|
|
||||||
|
### Config Saving Methods
|
||||||
|
|
||||||
|
When updating the config through the JSON editor in the UI, you have two save options: **Local** or **Write to Disk**.
|
||||||
|
|
||||||
|
- Changes saved locally will only be applied to the current user through the browser, and will not apply to other instances - you either need to use the cloud sync feature, or manually update the conf.yml file.
|
||||||
|
- On the other-hand, if you choose to write changes to disk, then your main `conf.yml` file will be updated, and changes will be applied to all users, and visible across all devices. For this functionality to work, you must be running Dashy with using the Docker container, or the Node server. A backup of your current configuration will also be saved in the same directory.
|
||||||
|
|
||||||
|
### Preventing Changes
|
||||||
|
|
||||||
|
If you have authentication set up, then any user who is not an admin (with `type: admin`) will not be able to write changes to disk.
|
||||||
|
|
||||||
|
You can also prevent changes from any user being written to disk, using `preventWriteToDisk`. Or prevent any changes from being saved locally in browser storage, using `preventLocalSave`.
|
||||||
|
|
||||||
|
To disable all UI config features, set `disableConfiguration`. Alternatively you can disable UI config features for all non Admin users by setting `disableConfigurationForNonAdmin` to true.
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
---
|
||||||
|
pageInfo:
|
||||||
|
title: Home Lab
|
||||||
|
sections: # An array of sections
|
||||||
|
- name: Section 1 - Getting Started
|
||||||
|
items: # An array of items
|
||||||
|
- title: GitHub
|
||||||
|
description: Source code and documentation on GitHub
|
||||||
|
icon: fab fa-github
|
||||||
|
url: https://github.com/Lissy93/dashy
|
||||||
|
- title: Issues
|
||||||
|
description: View currently open issues, or raise a new one
|
||||||
|
icon: fas fa-bug
|
||||||
|
url: https://github.com/Lissy93/dashy/issues
|
||||||
|
- title: Demo
|
||||||
|
description: A live demo
|
||||||
|
icon: far fa-rocket
|
||||||
|
url: https://dashy-demo-1.netlify.app
|
||||||
|
- name: Section 2 - Local Services
|
||||||
|
items:
|
||||||
|
- title: Firewall
|
||||||
|
icon: favicon
|
||||||
|
url: http://192.168.1.1/
|
||||||
|
- title: Game Server
|
||||||
|
icon: https://i.ibb.co/710B3Yc/space-invader-x256.png
|
||||||
|
url: http://192.168.130.1/
|
||||||
|
```
|
||||||
|
|
||||||
|
For more example config files, see: [this gist](https://gist.github.com/Lissy93/000f712a5ce98f212817d20bc16bab10)
|
||||||
|
|
||||||
|
If you need any help, feel free to [Raise an Issue](https://github.com/Lissy93/dashy/issues/new?assignees=Lissy93&labels=%F0%9F%A4%B7%E2%80%8D%E2%99%82%EF%B8%8F+Question&template=question.md&title=%5BQUESTION%5D) or [Start a Discussion](https://github.com/Lissy93/dashy/discussions)
|
||||||
|
|
||||||
|
Happy Configuring 🤓🔧
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#configuring)**
|
|
@ -0,0 +1,137 @@
|
||||||
|
# Contributing
|
||||||
|
|
||||||
|
First off, thank you for considering contributing towards Dashy! 🙌
|
||||||
|
There are several ways that you can help out, and any contributions, however small will always be very much appreciated.
|
||||||
|
You will be appropriately credited in the readme - huge thank you to [everyone who has helped](/docs/credits.md) so far 💞
|
||||||
|
|
||||||
|
## Take a 2-minute survey
|
||||||
|
|
||||||
|
Help improve Dashy by taking a very short, 6-question survey. This will give me a better understanding of what is important to you, so that I can make Dashy better in the future :)
|
||||||
|
|
||||||
|
[](https://survey.typeform.com/to/gl0L68ou)
|
||||||
|
|
||||||
|
## Share your dashboard
|
||||||
|
|
||||||
|
Dashy now has a [Showcase](https://github.com/Lissy93/dashy/blob/master/docs/showcase.md#dashy-showcase-) where you can show off a screenshot of your dashboard, and get inspiration from other users (and I really love seeing how people are using Dashy). To [submit your dashboard](https://github.com/Lissy93/dashy/blob/master/docs/showcase.md#submitting-your-dashboard), either open a PR or raise an issue.
|
||||||
|
|
||||||
|
[](https://github.com/Lissy93/dashy/issues/new?assignees=&labels=%F0%9F%92%AF+Showcase&template=showcase-addition.yml&title=%5BSHOWCASE%5D+%3Ctitle%3E)
|
||||||
|
|
||||||
|
## Make a small donation
|
||||||
|
|
||||||
|
Donations help to cover server costs, development time and caffeine ;)
|
||||||
|
Don't feel any pressure to donate anything, as Dashy and my other projects will always be 100% free, for everyone, for ever.
|
||||||
|
|
||||||
|
[](https://github.com/sponsors/Lissy93)
|
||||||
|
|
||||||
|
Sponsoring will give you several perks - for $1 / £0.75 per month, you'll get a sponsor badge on your profile, be credited on the Dashy's readme, with a link to your website/ profile/ socials, get priority support, have your feature ideas implemented, plus lots more. For more info, see [@Lissy93's Sponsor Page](https://github.com/sponsors/Lissy93).
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>You can also send a one-off small contribution using crypto</summary>
|
||||||
|
<p>
|
||||||
|
|
||||||
|
[](https://en.cryptobadges.io/donate/3853bSxupMjvxEYfwGDGAaLZhTKxB2vEVC)[](https://en.cryptobadges.io/donate/0x0fc98cBf8bea932B4470C46C0FbE1ed1f6765017)
|
||||||
|
|
||||||
|
- **BTC**: `3853bSxupMjvxEYfwGDGAaLZhTKxB2vEVC`
|
||||||
|
- **ETH**: `0x0fc98cBf8bea932B4470C46C0FbE1ed1f6765017` / `aliciasykes.eth`
|
||||||
|
- **XMR**: `471KZdxb6N63aABR4WYwMRjTVkc1p1x7wGsUTEF7AMYzL8L94A5pCuYWkosgJQ5Ze8Y2PscVCGZFJa3hDPg6MaDq47GUm8r`
|
||||||
|
- **LTC**: `MAuck6Ea1qaNihwKfXutkR1R6BorMth86H`
|
||||||
|
- **ZEC**: `t1bw1SefijsXRDQVxC9w64XsRK8hBhtQohQ`
|
||||||
|
|
||||||
|
</p>
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
## Enable Anonymous Bug Reports
|
||||||
|
|
||||||
|
Bug reports helps me to discover bugs I was unaware of, and then fix them, in order to make Dashy more reliable long term. This is a simple, yet really helpful step you can take to help improve Dashy. [Sentry](https://github.com/getsentry/sentry) is an open source error tracking and performance monitoring tool, which enables the identification any errors which occur in the production app (only if you enable it).
|
||||||
|
|
||||||
|
To enable error reporting:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
appConfig:
|
||||||
|
enableErrorReporting: true
|
||||||
|
```
|
||||||
|
|
||||||
|
All reporting is **disabled** by default, and no data will ever be sent to any external endpoint without your explicit consent. All statistics are anonymized and stored securely. For more about privacy and security, see the [Sentry Security Docs](https://sentry.io/security/).
|
||||||
|
|
||||||
|
## Add Translations
|
||||||
|
|
||||||
|
If you speak another language, then adding translations will help make Dashy available to non-native English speakers. This is a very quick and easy task, as all application text is located in [`locales/en.json`](https://github.com/Lissy93/dashy/blob/master/src/assets/locales/en.json), so adding a new language is as simple as copying this file and translating the values. You don't have to translate it all, as any missing attributes will just fallback to English. For a full tutorial, see the [Multi-Language Support Docs](https://github.com/Lissy93/dashy/blob/master/docs/multi-language-support.md).
|
||||||
|
|
||||||
|
## Submit a PR
|
||||||
|
|
||||||
|
Contributing to the code or docs is super helpful. You can fix a bug, add a new feature or improve an existing one. If you've built your own custom widget, theme or view, consider sharing it in a PR. I've written [several guides](/docs/development-guides.md) to help you get started, and the steps for setting up the development environment are outlined in the [Development Docs](/docs/developing.md). Feel free to ask if you have any questions.
|
||||||
|
|
||||||
|
## Improve the Docs
|
||||||
|
|
||||||
|
Found a typo, or something that isn't as clear as it could be? Maybe I've missed something off altogether, or you hit a roadblock that took you a while to figure out. Submitting a pull request to add to or improve the documentation will help future users get Dashy up and running more easily.
|
||||||
|
All content is located either in the [`./README.md`](/README.md) or [`/docs/`](/docs) directory, and synced to the Wiki and website using a GH [action](/actions/workflows/wiki-sync.yml).
|
||||||
|
|
||||||
|
## Raise a bug
|
||||||
|
|
||||||
|
If you've found a bug, then please do raise it as an issue. This will help me know if there's something that needs fixing. Try and include as much detail as possible, such as your environment, steps to reproduce, any console output and maybe an example screenshot or recording if necessary.
|
||||||
|
|
||||||
|
[](https://github.com/Lissy93/dashy/issues/new?assignees=lissy93&labels=%F0%9F%90%9B+Bug&template=bug.yml&title=%5BBUG%5D+%3Ctitle%3E)
|
||||||
|
|
||||||
|
## Join the discussion
|
||||||
|
|
||||||
|
I've enabled the discussion feature on GitHub, here you can share tips and tricks, useful information, or your dashboard. You can also ask questions, and offer basic support to other users.
|
||||||
|
|
||||||
|
[](https://github.com/Lissy93/dashy/discussions)
|
||||||
|
|
||||||
|
## Request a feature via BountySource
|
||||||
|
|
||||||
|
BountySource is a platform for sponsoring the development of certain features on open source projects. If there is a feature you'd like implemented into Dashy, but either isn't high enough priority or is deemed to be more work than it's worth, then you can instead contribute a bounty towards it's development. You won't pay a penny until your proposal is fully built, and you are satisfied with the result. This helps support the developers, and makes Dashy better for everyone.
|
||||||
|
|
||||||
|
[](https://www.bountysource.com/teams/dashy)
|
||||||
|
|
||||||
|
## Spread the word
|
||||||
|
|
||||||
|
Dashy is still a relatively young project, and as such not many people know of it. It would be great to see more users, and so it would be awesome if you could consider sharing with your friends or on social platforms.
|
||||||
|
|
||||||
|
[](https://mastodon.social/?text=Check%20out%20Dashy%2C%20the%20privacy-friendly%2C%20self-hosted%20startpage%20for%20organizing%20your%20life%3A%20https%3A%2F%2Fgithub.com%2FLissy93%2Fdashy%20-%20By%20%40lissy93%40mastodon.social)
|
||||||
|
[](http://www.reddit.com/submit?url=https://github.com/Lissy93/dashy&title=Dashy%20-%20The%20self-hosted%20dashboard%20for%20your%20homelab%20%F0%9F%9A%80)
|
||||||
|
[](https://twitter.com/intent/tweet?url=https://github.com/lissy93/dashy&text=Check%20out%20Dashy%20by%20@Lissy_Sykes,%20the%20self-hosted%20dashboard%20for%20your%20homelab%20%F0%9F%9A%80)
|
||||||
|
[](https://www.facebook.com/sharer/sharer.php?u=https://github.com/lissy93/dashy)
|
||||||
|
[](https://www.linkedin.com/shareArticle?mini=true&url=https://github.com/lissy93/dashy)
|
||||||
|
[](https://pinterest.com/pin/create/button/?url=https://github.com/lissy93/dashy&media=https://raw.githubusercontent.com/Lissy93/dashy/master/docs/showcase/1-home-lab-material.png&description=Check%20out%20Dashy,%20the%20self-hosted%20dashboard%20for%20your%20homelab%20%F0%9F%9A%80)
|
||||||
|
[](https://vk.com/share.php?url=https%3A%2F%2Fgithub.com%2Flissy93%2Fdashy%2F&title=Check%20out%20Dashy%20-%20The%20Self-Hosted%20Dashboard%20for%20your%20Homelab%20%F0%9F%9A%80)
|
||||||
|
[](viber://forward?text=https%3A%2F%2Fgithub.com%2Flissy93%2Fdashy%0ACheck%20out%20Dashy%2C%20the%20self-hosted%20dashboard%20for%20your%20homelab%20%F0%9F%9A%80)
|
||||||
|
[](https://t.me/share/url?url=https%3A%2F%2Fgithub.com%2Flissy93%2Fdashy&text=Check%20out%20Dashy%2C%20the%20self-hosted%20dashboard%20for%20your%20homelab%20%F0%9F%9A%80)
|
||||||
|
[](mailto:info@example.com?&subject=Check%20out%20Dashy%20-%20The%20self-hosted%20dashboard%20for%20your%20homelab%20%F0%9F%9A%80&cc=&bcc=&body=https://github.com/lissy93/dashy)
|
||||||
|
|
||||||
|
## Star, Upvote or Leave a Review
|
||||||
|
|
||||||
|
Dashy is on the following platforms, and if you could spare a few seconds to give it an upvote or review, this will also help new users discover Dashy
|
||||||
|
|
||||||
|
[](https://www.producthunt.com/posts/dashy)
|
||||||
|
[](https://alternativeto.net/software/dashy/about/)
|
||||||
|
[](https://www.slant.co/improve/topics/27783/viewpoints/1/~self-hosted-homelab-startpage~dashy)
|
||||||
|
[](https://github.com/Lissy93/dashy/stargazers)
|
||||||
|
[](https://hub.docker.com/r/lissy93/dashy)
|
||||||
|
|
||||||
|
## Follow for More
|
||||||
|
|
||||||
|
If you've enjoyed Dashy, you can follow the me to get updates about other projects that I am working on.
|
||||||
|
|
||||||
|
[](https://twitter.com/Lissy_Sykes)
|
||||||
|
[](https://github.com/Lissy93)
|
||||||
|
[](https://mastodon.social/web/accounts/1032965)
|
||||||
|
[](https://keybase.io/aliciasykes)
|
||||||
|
[](https://aliciasykes.com)
|
||||||
|
[](https://notes.aliciasykes.com/)
|
||||||
|
[](https://keybase.io/aliciasykes/pgp_keys.asc)
|
||||||
|
|
||||||
|
If you like, you could also consider [subscribing to my mailing list](https://notes.aliciasykes.com/subscribe) for occasional blog post updates.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Contributors
|
||||||
|
|
||||||
|
For a full list of Dashy's contributors, see the [Credits Page](/docs/credits.md)
|
||||||
|
|
||||||
|
[](https://github.com/Lissy93/dashy/blob/master/docs/credits.md)
|
||||||
|
|
||||||
|
### Star-Gazers Over Time
|
||||||
|
|
||||||
|
[](https://seladb.github.io/StarTrack-js/#/preload?r=Lissy93,dashy)
|
|
@ -0,0 +1,380 @@
|
||||||
|
# Deployment
|
||||||
|
|
||||||
|
Welcome to Dashy, so glad you're here :) Deployment is super easy, and there are several methods available depending on what type of system you're using. If you're self-hosting, then deploying with Docker (or similar container engine) is the recommended approach.
|
||||||
|
|
||||||
|
## Quick Start
|
||||||
|
|
||||||
|
If you want to skip the fuss, and [get straight down to it](/docs/quick-start.md), then you can spin up a new instance of Dashy by running:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker run -p 8080:8080 lissy93/dashy
|
||||||
|
```
|
||||||
|
|
||||||
|
See [Management Docs](/docs/management.md) for info about securing, monitoring, updating, health checks, auto starting, web server configuration, etc
|
||||||
|
|
||||||
|
Once you've got Dashy up and running, you'll want to configure it with your own content, for this you can reference the [configuring docs](/docs/configuring.md).
|
||||||
|
|
||||||
|
## Deployment Methods
|
||||||
|
|
||||||
|
- [Deployment](#deployment)
|
||||||
|
- [Quick Start](#quick-start)
|
||||||
|
- [Deployment Methods](#deployment-methods)
|
||||||
|
- [Deploy with Docker](#deploy-with-docker)
|
||||||
|
- [Using Docker Compose](#using-docker-compose)
|
||||||
|
- [Kubernetes](#kubernetes)
|
||||||
|
- [Unraid](#unraid)
|
||||||
|
- [Synology NAS](#synology-nas)
|
||||||
|
- [Build from Source](#build-from-source)
|
||||||
|
- [Deploy to cloud service](#deploy-to-cloud-service)
|
||||||
|
- [Netlify](#netlify)
|
||||||
|
- [Heroku](#heroku)
|
||||||
|
- [Vercel](#vercel)
|
||||||
|
- [DigitalOcean](#digitalocean)
|
||||||
|
- [Google Cloud Platform](#google-cloud-platform)
|
||||||
|
- [Platform.sh](#platformsh)
|
||||||
|
- [Render](#render)
|
||||||
|
- [Railway](#railway)
|
||||||
|
- [Scalingo](#scalingo)
|
||||||
|
- [Play-with-Docker](#play-with-docker)
|
||||||
|
- [Surge.sh](#surgesh)
|
||||||
|
- [Easypanel](#easypanel)
|
||||||
|
- [Hosting with CDN](#hosting-with-cdn)
|
||||||
|
- [Requirements](#requirements)
|
||||||
|
- [System Requirements](#system-requirements)
|
||||||
|
- [Docker](#docker)
|
||||||
|
- [Bare Metal](#bare-metal)
|
||||||
|
- [CDN / Cloud Deploy](#cdn--cloud-deploy)
|
||||||
|
- [Browser Support](#browser-support)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Deploy with Docker
|
||||||
|
|
||||||
|
**Container Info**: [
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
](https://hub.docker.com/r/lissy93/dashy)<br>
|
||||||
|
**Status**: [
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
](https://hub.docker.com/r/lissy93/dashy)
|
||||||
|
|
||||||
|
Dashy has a built container image hosted on [Docker Hub](https://hub.docker.com/r/lissy93/dashy). You will need [Docker](https://docs.docker.com/get-docker/) installed on your system.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker run -d \
|
||||||
|
-p 8080:8080 \
|
||||||
|
-v /root/my-local-conf.yml:/app/user-data/conf.yml \
|
||||||
|
--name my-dashboard \
|
||||||
|
--restart=always \
|
||||||
|
lissy93/dashy:latest
|
||||||
|
```
|
||||||
|
|
||||||
|
Explanation of the above options:
|
||||||
|
|
||||||
|
- `-d` Detached mode (not running in the foreground of your terminal)
|
||||||
|
- `-p` The port that should be exposed, and the port it should be mapped to in your host system `[host-port][container-port]`, leave the container port as is
|
||||||
|
- `-v` Specify volumes, to pass data from your host system to the container, in the format of `[host-path]:[container-path]`, you can use this to pass your config file, directory of assets (like icons), custom CSS or web assets (like favicon.ico, manifest.json etc)
|
||||||
|
- `--name` Give your container a human-readable name
|
||||||
|
- `--restart=always` Spin up the container when the daemon starts, or after it has been stopped
|
||||||
|
- `lissy93/dashy:latest` This last option is the image the container should be built from, you can also use a specific version or architecture type, by replacing `:latest` with one of the [tags](https://hub.docker.com/r/lissy93/dashy/tags)
|
||||||
|
|
||||||
|
For all available options, and to learn more, see the [Docker Run Docs](https://docs.docker.com/engine/reference/commandline/run/)
|
||||||
|
|
||||||
|
Dashy is also available through GHCR: `docker pull ghcr.io/lissy93/dashy:latest`
|
||||||
|
|
||||||
|
If you're deploying Dashy on a modern ARM-based board, such as a Raspberry Pi (2+), then you'll need to use one of Dashy's ARM images. Set the base image + tag to either `lissy93/dashy:arm64v8` or `lissy93/dashy:arm32v7`, depending on your system architecture. You can also use the `multi-arch` image, which should work on all system architectures.
|
||||||
|
|
||||||
|
The image defaults to `:latest`, but you can instead specify a specific version, e.g. `docker pull lissy93/dashy:release-1.5.0`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Using Docker Compose
|
||||||
|
|
||||||
|
Using Docker Compose can be useful for saving your specific config in files, without having to type out a long run command each time. Save compose config as a YAML file, and then run `docker compose up -d` (optionally use the `-f` flag to specify file location, if it isn't located at `./docker-compose.yml`), `-d` is detached mode (not running in the foreground of your terminal). Compose is also useful if you are using clusters, as the format is very similar to stack files, used with Docker Swarm.
|
||||||
|
|
||||||
|
The following is a complete example of a [`docker-compose.yml`](https://github.com/Lissy93/dashy/blob/master/docker-compose.yml) for Dashy. Run it as is, or uncomment the additional options you need.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
---
|
||||||
|
version: "3.8"
|
||||||
|
services:
|
||||||
|
dashy:
|
||||||
|
# To build from source, replace 'image: lissy93/dashy' with 'build: .'
|
||||||
|
# build: .
|
||||||
|
image: lissy93/dashy
|
||||||
|
container_name: Dashy
|
||||||
|
# Pass in your config file below, by specifying the path on your host machine
|
||||||
|
# volumes:
|
||||||
|
# - /root/my-config.yml:/app/user-data/conf.yml
|
||||||
|
ports:
|
||||||
|
- 8080:8080
|
||||||
|
# Set any environmental variables
|
||||||
|
environment:
|
||||||
|
- NODE_ENV=production
|
||||||
|
# Specify your user ID and group ID. You can find this by running `id -u` and `id -g`
|
||||||
|
# - UID=1000
|
||||||
|
# - GID=1000
|
||||||
|
# Specify restart policy
|
||||||
|
restart: unless-stopped
|
||||||
|
# Configure healthchecks
|
||||||
|
healthcheck:
|
||||||
|
test: ['CMD', 'node', '/app/services/healthcheck']
|
||||||
|
interval: 1m30s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 3
|
||||||
|
start_period: 40s
|
||||||
|
```
|
||||||
|
|
||||||
|
You can use a different tag, by for example setting `image: lissy93/dashy:arm64v8`, or pull from GHCR instead by setting `image: ghcr.io/lissy93/dashy`.
|
||||||
|
|
||||||
|
If you are building from source, and would like to use one of the [other Dockerfiles](https://github.com/Lissy93/dashy/tree/master/docker), then under `services.dashy` first set `context: .`, then specify the the path to the dockerfile, e.g. `dockerfile: ./docker/Dockerfile-arm32v7`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Kubernetes
|
||||||
|
|
||||||
|
@vyrtualsynthese has written a Helm Chart for deploying with Kubernetes, available [here](https://github.com/vyrtualsynthese/selfhosted-helmcharts/tree/main/charts/dashy)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Unraid
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Synology NAS
|
||||||
|
|
||||||
|
Installing dashy is really simply and fast:
|
||||||
|
|
||||||
|
1. Install Docker via Synology ```Package Center```.
|
||||||
|
2. Go to ```File Station``` and open the ```docker``` folder. Inside the docker folder, create one new folder and name it ```dashy```.
|
||||||
|
|
||||||
|
> Note: Be careful to enter only lowercase, not uppercase letters.
|
||||||
|
|
||||||
|
3. Go to Control Panel / Task Scheduler / Create / Scheduled Task / User-defined script.
|
||||||
|
4. Once you click on ```User-defined``` script a new window will open.
|
||||||
|
5. Follow the instructions below:
|
||||||
|
6. General: In the Task field type in Install dashy. Uncheck "Enabled" option. Select root User.
|
||||||
|
7. Schedule: Select Run on the following date then select "Do not repeat".
|
||||||
|
8. Task Settings: Check "Send run details by email", add your email then copy paste the code below in the Run command area. After that click OK.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker run -d \
|
||||||
|
-p 4000:8080 \
|
||||||
|
-v /volume1/docker/dashy/my-local-conf.yml:/app/user-data/conf.yml \
|
||||||
|
--name dashy \
|
||||||
|
--restart=always \
|
||||||
|
lissy93/dashy:latest
|
||||||
|
```
|
||||||
|
|
||||||
|
dashy should be up within 1-2min after you've started the install task procedure
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Build from Source
|
||||||
|
|
||||||
|
If you do not want to use Docker, you can run Dashy directly on your host system. For this, you will need both [git](https://git-scm.com/downloads) and the latest or LTS version of [Node.js](https://nodejs.org/) installed, and optionally [yarn](https://yarnpkg.com/)
|
||||||
|
|
||||||
|
1. Get Code: `git clone https://github.com/Lissy93/dashy.git` and `cd dashy`
|
||||||
|
2. Configuration: Fill in your settings in `./user-data/conf.yml`
|
||||||
|
3. Install dependencies: `yarn`
|
||||||
|
4. Build: `yarn build`
|
||||||
|
5. Run: `yarn start`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Deploy to cloud service
|
||||||
|
|
||||||
|
If you don't have a home server, then fear not - Dashy can be deployed to pretty much any cloud provider. The above Docker and NPM guides will work exactly the same on a VPS, but I've also setup some 1-Click deploy links for 10+ of the most common cloud providers, to make things easier. Note that if your instance is exposed to the internet, it will be your responsibility to adequately secure it.
|
||||||
|
|
||||||
|
Some hosting providers required a bit of extra configuration, which was why I've made separate branches for deploying to those services (named: [`deploy_cloudflare`](https://github.com/Lissy93/dashy/tree/deploy_cloudflare), [`deploy_digital-ocean`](https://github.com/Lissy93/dashy/tree/deploy_digital-ocean), [`deploy_platform-sh`](https://github.com/Lissy93/dashy/tree/deploy_platform-sh) and [`deploy_render`](https://github.com/Lissy93/dashy/tree/deploy_render)). If there's another cloud service which you'd like 1-click deployment to be supported for, feel free to raise an issue.
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> If you use a static hosting provider, then status checks, writing new config changes to disk from the UI, and triggering a rebuild through the UI will not be available. This is because these features need endpoints provided by Dashy's local Node server. Everything else should work just the same though.
|
||||||
|
|
||||||
|
### Netlify
|
||||||
|
|
||||||
|
[](https://app.netlify.com/start/deploy?repository=https://github.com/lissy93/dashy)
|
||||||
|
|
||||||
|
[Netlify](https://www.netlify.com/) offers Git-based serverless cloud hosting for web applications. Their services are free to use for personal use, and they support deployment from both public and private repos, as well as direct file upload. The free plan also allows you to use your own custom domain or sub-domain, and is easy to setup.
|
||||||
|
|
||||||
|
To deploy Dashy to Netlify, use the following link
|
||||||
|
|
||||||
|
```text
|
||||||
|
https://app.netlify.com/start/deploy?repository=https://github.com/lissy93/dashy
|
||||||
|
```
|
||||||
|
|
||||||
|
### Heroku
|
||||||
|
|
||||||
|
[](https://heroku.com/deploy?template=https://github.com/Lissy93/dashy)
|
||||||
|
|
||||||
|
[Heroku](https://www.heroku.com/) is a fully managed cloud platform as a service. You define app settings in a Procfile and app.json, which specifying how the app should be build and how the server should be started. Heroku costs a minimum of $5 for 1,000 dyno hours per month (there are around 720 hours in a month), and supports custom domains. Heroku's single-dyno service is not as quite performant as some other providers, and the app will have a short wake-up time when not visited for a while
|
||||||
|
|
||||||
|
To deploy Dashy to Heroku, use the following link
|
||||||
|
|
||||||
|
```text
|
||||||
|
https://heroku.com/deploy?template=https://github.com/Lissy93/dashy
|
||||||
|
```
|
||||||
|
|
||||||
|
### Vercel
|
||||||
|
|
||||||
|
[](https://vercel.com/new/project?template=https://github.com/lissy93/dashy)
|
||||||
|
|
||||||
|
[Vercel](https://vercel.com/) is a performance-focused platform for hosting static frontend apps. It comes bundled with some useful tools for monitoring and analyzing application performance and other metrics. Vercel is free for personal use, allows for custom domains and has very reasonable limits.
|
||||||
|
|
||||||
|
To deploy Dashy to Vercel, use the following link
|
||||||
|
|
||||||
|
```text
|
||||||
|
https://vercel.com/new/project?template=https://github.com/lissy93/dashy
|
||||||
|
```
|
||||||
|
|
||||||
|
### DigitalOcean
|
||||||
|
|
||||||
|
[](https://cloud.digitalocean.com/apps/new?repo=https://github.com/lissy93/dashy/tree/deploy_digital-ocean&refcode=3838338e7f79)
|
||||||
|
|
||||||
|
[DigitalOcean](https://www.digitalocean.com/) is a cloud service providing affordable developer-friendly virtual machines from $5/month. But they also have an app platform, where you can run web apps, static sites, APIs and background workers. CDN-backed static sites are free for personal use.
|
||||||
|
|
||||||
|
```text
|
||||||
|
https://cloud.digitalocean.com/apps/new?repo=https://github.com/lissy93/dashy/tree/deploy_digital-ocean
|
||||||
|
```
|
||||||
|
|
||||||
|
### Google Cloud Platform
|
||||||
|
|
||||||
|
[](https://deploy.cloud.run/?git_repo=https://github.com/lissy93/dashy.git)
|
||||||
|
|
||||||
|
[Cloud Run](https://cloud.google.com/run/) is a service offered by [Google Cloud](https://cloud.google.com/). It's a fully managed serverless platform, for developing and deploying highly scalable containerized applications. Similar to AWS and Azure, GCP offers a wide range of cloud services, which are billed on a pay‐per‐use basis, but Cloud Run has a [free tier](https://cloud.google.com/run/pricing) offering 180,000 vCPU-seconds, 360,000 GiB-seconds, and 2 million requests per month.
|
||||||
|
|
||||||
|
To deploy Dashy to GCP, use the following link
|
||||||
|
|
||||||
|
```text
|
||||||
|
https://deploy.cloud.run/?git_repo=https://github.com/lissy93/dashy.git
|
||||||
|
```
|
||||||
|
|
||||||
|
### Platform.sh
|
||||||
|
|
||||||
|
[](https://console.platform.sh/projects/create-project/?template=https://github.com/lissy93/dashy&utm_campaign=deploy_on_platform?utm_medium=button&utm_source=affiliate_links&utm_content=https://github.com/lissy93/dashy)
|
||||||
|
|
||||||
|
[Platform.sh](https://platform.sh) is an end-to-end solution for developing and deploying applications. It is geared towards enterprise users with large teams, and focuses on allowing applications to scale up and down. Unlike the above providers, Platform.sh is not free, although you can deploy a test app to it without needing a payment method
|
||||||
|
|
||||||
|
To deploy Dashy to Platform.sh, use the following link
|
||||||
|
|
||||||
|
```text
|
||||||
|
https://console.platform.sh/projects/create-project/?template=https://github.com/lissy93/dashy
|
||||||
|
```
|
||||||
|
|
||||||
|
### Render
|
||||||
|
|
||||||
|
[](https://render.com/deploy?repo=https://github.com/lissy93/dashy/tree/deploy_render)
|
||||||
|
|
||||||
|
[Render](https://render.com) is cloud provider that provides easy deployments for static sites, Docker apps, web services, databases and background workers. Render is great for developing applications, and very easy to use. Static sites are free, and services start at $7/month. Currently there are only 2 server locations - Oregon, USA and Frankfurt, Germany. For more info, see the [Render Docs](https://render.com/docs)
|
||||||
|
|
||||||
|
To deploy Dashy to Render, use the following link
|
||||||
|
|
||||||
|
```text
|
||||||
|
https://render.com/deploy?repo=https://github.com/lissy93/dashy/tree/deploy_render
|
||||||
|
```
|
||||||
|
|
||||||
|
### Railway
|
||||||
|
|
||||||
|
[](https://railway.app/template/MtdjAQ?referralCode=app)
|
||||||
|
|
||||||
|
[Railway](https://railway.app/) is a Platform as a Service (PaaS) that offers a complete platform for building and delivering programs to the backend of the cloud. You bring your code and Railway does the rest. Railway offers an extremely good developer experience and makes it effortless to deploy apps. Railway offers a free Trial Plan, and paid plans start at $5/month. Railway has 4 server locations: US-west, US-east, EU-west and ASIA-South-East.
|
||||||
|
|
||||||
|
```text
|
||||||
|
https://railway.app/template/MtdjAQ
|
||||||
|
```
|
||||||
|
|
||||||
|
### Scalingo
|
||||||
|
|
||||||
|
[](https://my.scalingo.com/deploy?source=https://github.com/lissy93/dashy#master)
|
||||||
|
|
||||||
|
[Scalingo](https://scalingo.com/) is a scalable container-based cloud platform as a service. It's focus is on compliance and uptime, and is geared towards enterprise users. Scalingo is also not free, although they do have a 3-day free trial that does not require a payment method.
|
||||||
|
|
||||||
|
To deploy Dashy to Scalingo, use the following link
|
||||||
|
|
||||||
|
```text
|
||||||
|
https://my.scalingo.com/deploy?source=https://github.com/lissy93/dashy#master
|
||||||
|
```
|
||||||
|
|
||||||
|
### Play-with-Docker
|
||||||
|
|
||||||
|
[](https://labs.play-with-docker.com/?stack=https://raw.githubusercontent.com/Lissy93/dashy/master/docker-compose.yml)
|
||||||
|
|
||||||
|
[Play with Docker](https://labs.play-with-docker.com/) is a community project by Marcos Liljedhal and Jonathan Leibiusky and sponsored by Docker, intended to provide a hands-on learning environment. Their labs let you quickly spin up a Docker container or stack, and test out the image in a temporary, sandboxed environment. There's no need to sign up, and it's completely free.
|
||||||
|
|
||||||
|
To run Dashy in PWD, use the following URL:
|
||||||
|
|
||||||
|
```text
|
||||||
|
https://labs.play-with-docker.com/?stack=https://raw.githubusercontent.com/Lissy93/dashy/master/docker-compose.yml
|
||||||
|
```
|
||||||
|
|
||||||
|
### Surge.sh
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
[Surge.sh](http://surge.sh/) is quick and easy static web publishing platform for frontend-apps.
|
||||||
|
Surge supports [password-protected projects](https://surge.sh/help/adding-password-protection-to-a-project). You can also [add a custom domain](https://surge.sh/help/adding-a-custom-domain) and then [force HTTPS by default](https://surge.sh/help/using-https-by-default) and optionally [set a custom SSL certificate](https://surge.sh/help/securing-your-custom-domain-with-ssl)
|
||||||
|
|
||||||
|
To deploy Dashy to Surge.sh, first clone and cd into Dashy, install dependencies, and then use the following commands
|
||||||
|
|
||||||
|
```bash
|
||||||
|
yarn add -g surge
|
||||||
|
yarn build
|
||||||
|
surge ./dist
|
||||||
|
```
|
||||||
|
|
||||||
|
### Easypanel
|
||||||
|
|
||||||
|
[](https://easypanel.io/docs/templates/dashy)
|
||||||
|
|
||||||
|
[Easypanel](https://easypanel.io) it's a modern server control panel. You can use it to deploy Dashy on your own server.
|
||||||
|
|
||||||
|
To deploy Dashy to Easypanel, use the following link
|
||||||
|
|
||||||
|
```text
|
||||||
|
https://easypanel.io/docs/templates/dashy
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Hosting with CDN
|
||||||
|
|
||||||
|
Once Dashy has been built, it is effectively just a static web app. This means that it can be served up with pretty much any static host, CDN or web server. To host Dashy through a CDN, the steps are very similar to building from source: clone the project, cd into it, install dependencies, write your config file and build the app. Once build is complete you will have a `./dist` directory within Dashy's root, and this is the build application which is ready to be served up.
|
||||||
|
|
||||||
|
However without Dashy's node server, there are a couple of features that will be unavailable to you, including: Writing config changes to disk through the UI, triggering a rebuild through the UI and application status checks. Everything else will work fine.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
|
||||||
|
### System Requirements
|
||||||
|
|
||||||
|
Dashy works well on a Raspberry Pi (tested on Pi 3 and later), but should also run well on any system.
|
||||||
|
|
||||||
|
### Docker
|
||||||
|
|
||||||
|
Initial app build causes a spike in resource usage, but once the built app is running it is fairly steady. For this reason, Dashy works best with a minimum of 1GB of memory, and 1GB of disk space.
|
||||||
|
|
||||||
|
### Bare Metal
|
||||||
|
|
||||||
|
Minimum 526mb mem, 2GB disk space.
|
||||||
|
|
||||||
|
### CDN / Cloud Deploy
|
||||||
|
|
||||||
|
No specific requirements. The built application alone (without the Node server) is very light-weight, and can be handled smoothly by pretty much any CDN or cloud deployment service (see [this list](/docs/deployment.md#deploy-to-cloud-service) or natively supported cloud providers).
|
||||||
|
|
||||||
|
If you're using your own icons, or other assets, additional disk space will be required for those resources.
|
||||||
|
|
||||||
|
### Browser Support
|
||||||
|
|
||||||
|
JavaScript is required to run Dashy.
|
||||||
|
|
||||||
|
In terms of browser support, pretty much any browser released since 2018 should render content just fine. However, for Internet Explorer, only IE11+ is supported, yet performance here is still not optimal. The recommended browser is either a Chromium-based / Webkit browser (Chrome, Brave, Vivaldi, Edge, Yandex, etc), or Firefox or one of it's forks (FF-ESR, Tor, LibreWolf, etc). Recent versions of Safari and Opera are also supported, but with limited continuous testing.
|
||||||
|
|
||||||
|
<p align="center"><img width="500" src="https://i.ibb.co/pjnmbw9/browser-compatibility.png" /></p>
|
|
@ -0,0 +1,380 @@
|
||||||
|
|
||||||
|
# Developing
|
||||||
|
|
||||||
|
This article outlines how to get Dashy running in a development environment, and outlines the basics of the architecture.
|
||||||
|
If you're adding new features, you may want to check out the [Development Guides](./docs/development-guides.md) docs, for tutorials covering basic tasks.
|
||||||
|
|
||||||
|
- [Setting up the Development Environment](#setting-up-the-dev-environment)
|
||||||
|
- [Prerequisites](#prerequisites)
|
||||||
|
- [Running the App](#running-the-project)
|
||||||
|
- [Project Commands](#project-commands)
|
||||||
|
- [Environmental Variables](#environmental-variables)
|
||||||
|
- [Git Strategy](#git-strategy)
|
||||||
|
- [Flow](#git-flow)
|
||||||
|
- [Branches](#git-branch-naming)
|
||||||
|
- [Commit emojis](#commit-emojis)
|
||||||
|
- [PR Guidelines](#pr-guidelines)
|
||||||
|
- [Resources for Beginners](#resources-for-beginners)
|
||||||
|
- [App Info](#app-info)
|
||||||
|
- [Code Style Guide](#style-guide)
|
||||||
|
- [Application Structure](#application-structure)
|
||||||
|
- [Development Tools](#development-tools)
|
||||||
|
- [Misc / Notes](#notes)
|
||||||
|
|
||||||
|
## Setting up the Dev Environment
|
||||||
|
|
||||||
|
### Prerequisites
|
||||||
|
|
||||||
|
You will need either the latest or LTS version of **[Node.js](https://nodejs.org/)** to build and serve the application and **[Git](https://git-scm.com/downloads)** to easily fetch the code, and push any changes. If you plan on running or deploying the container, you'll also need **[Docker](https://docs.docker.com/get-docker/)**. To avoid any unexpected issues, ensure you've got at least **[NPM](https://www.npmjs.com/get-npm)** V 7.5 or **[Yarn](https://classic.yarnpkg.com/en/docs/install/#windows-stable)** 1.22 (you may find [NVM](https://github.com/nvm-sh/nvm) helpful for switching/ managing versions).
|
||||||
|
|
||||||
|
### Running the Project
|
||||||
|
|
||||||
|
1. Get Code: `git clone https://github.com/Lissy93/dashy.git`
|
||||||
|
2. Navigate into the directory: `cd dashy`
|
||||||
|
3. Install dependencies: `yarn`
|
||||||
|
4. Start dev server: `yarn dev`
|
||||||
|
|
||||||
|
Dashy should now be being served on <http://localhost:8080/>. Hot reload is enabled, so making changes to any of the files will trigger them to be rebuilt and the page refreshed.
|
||||||
|
|
||||||
|
### Project Commands
|
||||||
|
|
||||||
|
#### Basics
|
||||||
|
|
||||||
|
- **`yarn build`** - In the interest of speed, the application is pre-compiled, this means that the config file is read during build-time, and therefore the app needs to rebuilt for any new changes to take effect. Luckily this is very straight forward. Just run `yarn build` or `docker exec -it [container-id] yarn build`
|
||||||
|
- **`yarn start`** - Starts a web server, and serves up the production site from `./dist` (must run build command first)
|
||||||
|
|
||||||
|
#### Development
|
||||||
|
|
||||||
|
- **`yarn dev`** - Starts the development server with hot reloading
|
||||||
|
- **`yarn lint`** - Lints code to ensure it follows a consistent, neat style
|
||||||
|
- **`yarn test`** - Runs tests, and outputs results
|
||||||
|
|
||||||
|
#### Utils and Checks
|
||||||
|
|
||||||
|
- **`yarn validate-config`** - If you have quite a long configuration file, you may wish to check that it's all good to go, before deploying the app. This can be done with `yarn validate-config` or `docker exec -it [container-id] yarn validate-config`. Your config file needs to be in `/user-data/conf.yml` (or within your Docker container at `/app/user-data/conf.yml`). This will first check that your YAML is valid, and then validates it against Dashy's [schema](https://github.com/Lissy93/dashy/blob/master/src/utils/ConfigSchema.js).
|
||||||
|
- **`yarn health-check`** - Checks that the application is up and running on it's specified port, and outputs current status and response times. Useful for integrating into your monitoring service, if you need to maintain high system availability
|
||||||
|
|
||||||
|
#### Alternate Start Commands
|
||||||
|
|
||||||
|
- **`yarn build-and-start`** - Builds the app, runs checks and starts the production server. Commands are run in parallel, and so is faster than running them in independently. Uses the `yarn build` and `yarn start` commands
|
||||||
|
- **`yarn build-watch`** - If you find yourself making frequent changes to your configuration, and do not want to have to keep manually rebuilding, then this option is for you. It will watch for changes to any files within the projects root, and then trigger a rebuild. Note that if you are developing new features, then `yarn dev` would be more appropriate, as it's significantly faster at recompiling (under 1 second), and has hot reloading, linting and testing integrated
|
||||||
|
- **`yarn pm2-start`** - Starts the Node server using [PM2](https://pm2.keymetrics.io/), a process manager for Node.js applications, that helps them stay alive. PM2 has some built-in basic monitoring features, and an optional [management solution](https://pm2.io/). If you are running the app on bare metal, it is recommended to use this start command
|
||||||
|
|
||||||
|
#### Notes
|
||||||
|
|
||||||
|
- If you are using NPM, replace `yarn` with `npm run`
|
||||||
|
- If you are using Docker, precede each command with `docker exec -it [container-id]`. Container ID can be found by running `docker ps`
|
||||||
|
- You can manage the app using the [Vue-CLI Service](https://cli.vuejs.org/guide/cli-service.html), with `npx vue-cli-service [command]`. Or to start the Vue Management UI, run `npx vue ui`, and open `http://localhost:8000`
|
||||||
|
|
||||||
|
### Environmental Variables
|
||||||
|
|
||||||
|
All environmental variables are optional. Currently there are not many environmental variables used, as most of the user preferences are stored under `appConfig` in the `conf.yml` file.
|
||||||
|
|
||||||
|
You can set variables either in your environment, or using the [`.env`](https://github.com/Lissy93/dashy/blob/master/.env) file.
|
||||||
|
|
||||||
|
- `NODE_ENV` - Current environment, can be either development, production or test
|
||||||
|
- `PORT` - The port to expose the running application on
|
||||||
|
- `HOST` - The host that Dashy is running on, domain or IP
|
||||||
|
- `BASE_URL` - The default base path for serving up static assets
|
||||||
|
- `VUE_APP_DOMAIN` - Usually the same as BASE_URL, but accessible in frontend
|
||||||
|
- `INTEGRITY` - Should enable SRI for build script and link resources
|
||||||
|
- `IS_DOCKER` - Computed automatically on build. Indicates if running in container
|
||||||
|
- `VUE_APP_VERSION` - Again, set automatically using package.json during build time
|
||||||
|
- `BACKUP_DIR` - Directory for conf.yml backups
|
||||||
|
|
||||||
|
### Environment Modes
|
||||||
|
|
||||||
|
You can set the environment using the `NODE_ENV` variable. By default, the correct environment should be selected based on the script you run to start the app. The following environments are supported: `production`, `development` and `test`. For more info, see [Vue CLI Environment Modes](https://cli.vuejs.org/guide/mode-and-env.html#modes).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Git Strategy
|
||||||
|
|
||||||
|
### Git Flow
|
||||||
|
|
||||||
|
Like most Git repos, we are following the [Github Flow](https://guides.github.com/introduction/flow) standard.
|
||||||
|
|
||||||
|
1. Create a branch (or fork if you don'd have write access)
|
||||||
|
2. Code some awesome stuff 🧑💻
|
||||||
|
3. Add, commit and push your changes to your branch/ fork
|
||||||
|
4. Head over to GitHub and create a Pull Request
|
||||||
|
5. Fill in the required sections in the template, and hit submit
|
||||||
|
6. Follow up with any reviews on your code
|
||||||
|
7. Merge 🎉
|
||||||
|
|
||||||
|
### Git Branch Naming
|
||||||
|
|
||||||
|
The format of your branch name should be something similar to: `[TYPE]/[TICKET]_[TITLE]`
|
||||||
|
For example, `FEATURE/420_Awesome-feature` or `FIX/690_login-server-error`
|
||||||
|
|
||||||
|
### Commit Emojis
|
||||||
|
|
||||||
|
Using a single emoji at the start of each commit message, to indicate the type task, makes the commit ledger easier to understand, plus it looks cool.
|
||||||
|
|
||||||
|
- 🎨 `:art:` - Improve structure / format of the code.
|
||||||
|
- ⚡️ `:zap:` - Improve performance.
|
||||||
|
- 🔥 `:fire:` - Remove code or files.
|
||||||
|
- 🐛 `:bug:` - Fix a bug.
|
||||||
|
- 🚑️ `:ambulance:` - Critical hotfix
|
||||||
|
- ✨ `:sparkles:` - Introduce new features.
|
||||||
|
- 📝 `:memo:` - Add or update documentation.
|
||||||
|
- 🚀 `:rocket:` - Deploy stuff.
|
||||||
|
- 💄 `:lipstick:` - Add or update the UI and style files.
|
||||||
|
- 🎉 `:tada:` - Begin a project.
|
||||||
|
- ✅ `:white_check_mark:` - Add, update, or pass tests.
|
||||||
|
- 🔒️ `:lock:` - Fix security issues.
|
||||||
|
- 🔖 `:bookmark:` - Make a Release or Version tag.
|
||||||
|
- 🚨 `:rotating_light:` - Fix compiler / linter warnings.
|
||||||
|
- 🚧 `:construction:` - Work in progress.
|
||||||
|
- ⬆️ `:arrow_up:` - Upgrade dependencies.
|
||||||
|
- 👷 `:construction_worker:` - Add or update CI build system.
|
||||||
|
- ♻️ `:recycle:` - Refactor code.
|
||||||
|
- 🩹 `:adhesive_bandage:` - Simple fix for a non-critical issue.
|
||||||
|
- 🔧 `:wrench:` - Add or update configuration files.
|
||||||
|
- 🍱 `:bento:` - Add or update assets.
|
||||||
|
- 🗃️ `:card_file_box:` - Perform database schema related changes.
|
||||||
|
- ✏️ `:pencil2:` - Fix typos.
|
||||||
|
- 🌐 `:globe_with_meridians:` - Internationalization and translations.
|
||||||
|
|
||||||
|
For a full list of options, see [gitmoji.dev](https://gitmoji.dev/)
|
||||||
|
|
||||||
|
### PR Guidelines
|
||||||
|
|
||||||
|
Once you've made your changes, and pushed them to your fork or branch, you're ready to open a pull request!
|
||||||
|
|
||||||
|
For a pull request to be merged, it must:
|
||||||
|
|
||||||
|
- Must be backwards compatible
|
||||||
|
- The build, lint and tests (run by GH actions) must pass
|
||||||
|
- There must not be any merge conflicts
|
||||||
|
|
||||||
|
When you submit your PR, include the required info, by filling out the PR template. Including:
|
||||||
|
|
||||||
|
- A brief description of your changes
|
||||||
|
- The issue, ticket or discussion number (if applicable)
|
||||||
|
- For UI relate updates include a screenshot
|
||||||
|
- If any dependencies were added, explain why it was needed, state the cost associated, and confirm it does not introduce any security issues
|
||||||
|
- Finally, check the checkboxes, to confirm that the standards are met, and hit submit!
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Resources for Beginners
|
||||||
|
|
||||||
|
New to Web Development? Glad you're here! Dashy is a pretty simple app, so it should make a good candidate for your first PR. Presuming that you already have a basic knowledge of JavaScript, the following articles should point you in the right direction for getting up to speed with the technologies used in this project:
|
||||||
|
|
||||||
|
- [Open Source for Beginners](https://opensource.guide/how-to-contribute/)
|
||||||
|
- [Introduction to Vue.js](https://v3.vuejs.org/guide/introduction.html)
|
||||||
|
- [Vue.js Walkthrough](https://www.taniarascia.com/getting-started-with-vue/)
|
||||||
|
- [ES6 Features](https://github.com/lukehoban/es6features)
|
||||||
|
- [Definitive guide to SCSS](https://blog.logrocket.com/the-definitive-guide-to-scss/)
|
||||||
|
- [Complete beginners guide to Docker](https://docker-curriculum.com/)
|
||||||
|
- [Docker Classroom - Interactive Tutorials](https://training.play-with-docker.com/)
|
||||||
|
- [Quick start TypeScript guide](https://www.freecodecamp.org/news/learn-typescript-in-5-minutes-13eda868daeb/)
|
||||||
|
- [Complete TypeScript tutorial series](https://www.typescripttutorial.net/)
|
||||||
|
- [Using TypeScript with Vue.js](https://blog.logrocket.com/vue-typescript-tutorial-examples/)
|
||||||
|
- [Git cheat sheet](http://git-cheatsheet.com/)
|
||||||
|
- [Basics of using NPM](https://www.freecodecamp.org/news/what-is-npm-a-node-package-manager-tutorial-for-beginners/)
|
||||||
|
|
||||||
|
As well as Node, Git and Docker- you'll also need an IDE (e.g. [VS Code](https://code.visualstudio.com/) or [Vim](https://www.vim.org/)) and a terminal (Windows users may find [WSL](https://docs.microsoft.com/en-us/windows/wsl/) more convenient).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## App Info
|
||||||
|
|
||||||
|
### Style Guide
|
||||||
|
|
||||||
|
Linting is done using [ESLint](https://eslint.org/), and using the [Vue.js Styleguide](https://github.com/vuejs/eslint-config-standard), which is very similar to the [AirBnB Styleguide](https://github.com/airbnb/javascript). You can run `yarn lint` to report and fix issues. While the dev server is running, issues will be reported to the console automatically, and any lint errors will trigger the build to fail. Note that all lint checks must pass before any PR can be merged. Linting is also run as a git pre-commit hook
|
||||||
|
|
||||||
|
The most significant things to note are:
|
||||||
|
|
||||||
|
- Indentation should be done with two spaces
|
||||||
|
- Strings should use single quotes
|
||||||
|
- All statements must end in a semi-colon
|
||||||
|
- The final element in all objects must be preceded with a comma
|
||||||
|
- Maximum line length is 100
|
||||||
|
- There must be exactly one blank line between sections, before function names, and at the end of the file
|
||||||
|
- With conditionals, put else on the same line as your if block's closing brace
|
||||||
|
- All multiline blocks must use braces
|
||||||
|
- Avoid console statements in the frontend
|
||||||
|
|
||||||
|
Styleguides:
|
||||||
|
|
||||||
|
- Vue: [Vue styleguide](https://vuejs.org/v2/style-guide/)
|
||||||
|
- JavaScript: [github.com/airbnb/javascript](https://github.com/airbnb/javascript)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Application Structure
|
||||||
|
|
||||||
|
#### Files in the Root: `./`
|
||||||
|
|
||||||
|
```text
|
||||||
|
╮
|
||||||
|
├── package.json # Project meta-data, dependencies and paths to scripts
|
||||||
|
├── src/ # Project front-end source code
|
||||||
|
├── server.js # A Node.js server to serve up the /dist directory
|
||||||
|
├── services/ # All server-side endpoints and utilities
|
||||||
|
├── vue.config.js # Vue.js configuration
|
||||||
|
├── Dockerfile # The blueprint for building the Docker container
|
||||||
|
├── docker-compose.yml # A Docker run command
|
||||||
|
├── .env # Location for any environmental variables
|
||||||
|
├── yarn.lock # Auto-generated list of current packages and version numbers
|
||||||
|
├── docs/ # Markdown documentation
|
||||||
|
├── README.md # Readme, basic info for getting started
|
||||||
|
├── LICENSE.md # License for use
|
||||||
|
╯
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Frontend Source: `./src/`
|
||||||
|
|
||||||
|
```text
|
||||||
|
./src
|
||||||
|
├── App.vue # Vue.js starting file
|
||||||
|
├── assets # Static non-compiled assets
|
||||||
|
│ ├── fonts # .ttf font files
|
||||||
|
│ ├── locales # All app text, each language in a separate JSON file
|
||||||
|
│ ╰── interface-icons # SVG icons used in the app
|
||||||
|
├── components # All front-end Vue web components
|
||||||
|
│ ├── Charts # Charting components for dynamically displaying widget data
|
||||||
|
│ │ ├── Gauge.vue # A speed-dial style chart for showing 0 - 100 values
|
||||||
|
│ │ ╰── PercentageChart.vue # A horizontal bar for showing percentage breakdowns
|
||||||
|
│ ├── Configuration # Components relating to the user config pop-up
|
||||||
|
│ │ ├── AppInfoModal.vue # A modal showing core app info, like version, language, etc
|
||||||
|
│ │ ├── AppVersion.vue # Shows current version from package.json, compares with GitHub
|
||||||
|
│ │ ├── CloudBackupRestore.vue # Form where the user manages cloud sync options
|
||||||
|
│ │ ├── ConfigContainer.vue # Main container, wrapping all other config components
|
||||||
|
│ │ ├── CustomCss.vue # Form where the user can input custom CSS
|
||||||
|
│ │ ├── EditSiteMeta.vue # Form where the user can edit site meta data
|
||||||
|
│ │ ├── JsonEditor.vue # JSON editor, where the user can modify the main config file
|
||||||
|
│ │ ╰── RebuildApp.vue # A component allowing user to trigger a rebuild through the UI
|
||||||
|
│ ├── FormElements # Basic form elements used throughout the app
|
||||||
|
│ │ ├── Button.vue # Standard button component
|
||||||
|
│ │ ├── Radio.vue # Standard radio button input
|
||||||
|
│ │ ├── Select.vue # Standard dropdown input selector
|
||||||
|
│ │ ├── Input.vue # Standard text field input component
|
||||||
|
│ │ ╰── Toggle.vue # Standard on / off toggle switch
|
||||||
|
│ ├── InteractiveEditor # Components for the interactive UI config editor
|
||||||
|
│ │ ├── AddNewSectionLauncher # Button that launches the EditSection form, used for adding new section
|
||||||
|
│ │ ├── EditAppConfig.vue # Form for editing appConfig
|
||||||
|
│ │ ├── EditPageInfo.vue # Form for editing pageInfo
|
||||||
|
│ │ ├── EditSection.vue # Form for adding / editing sections
|
||||||
|
│ │ ├── EditItem.vue # Form for adding or editing items
|
||||||
|
│ │ ├── EditModeSaveMenu.vue # The bar at the bottom of screen in edit mode, containing save buttons
|
||||||
|
│ │ ├── EditModeTopBanner.vue # The bar at the top of screen in edit mode
|
||||||
|
│ │ ├── ExportConfigMenu.vue # Modal for viewing / exporting edited config
|
||||||
|
│ │ ├── MoveItemTo.vue # Form for moving / copying items to other sections
|
||||||
|
│ │ ╰── SaveCancelButtons.vue # Buttons visible in all the edit menus, to save or cancel changes
|
||||||
|
│ ├── LinkItems # Components for Sections and Link Items
|
||||||
|
│ │ ├── Collapsable.vue # The collapsible functionality of sections
|
||||||
|
│ │ ├── IframeModal.vue # Pop-up iframe modal, for viewing websites within the app
|
||||||
|
│ │ ├── Item.vue # Main link item, which is displayed within an item group
|
||||||
|
│ │ ├── ItemGroup.vue # Item group is a section containing icons
|
||||||
|
│ │ ├── ItemIcon.vue # The icon used by both items and sections
|
||||||
|
│ │ ├── ItemOpenMethodIcon.vue # A small icon, visible on hover, indicating opening method
|
||||||
|
│ │ ├── ItemContextMenu.vue # The right-click menu, for showing Item opening methods and info
|
||||||
|
│ │ ├── SectionContextMenu.vue # The right-click menu, for showing Section edit/ open options
|
||||||
|
│ │ ╰── StatusIndicator.vue # Traffic light dot, showing if app is online or down
|
||||||
|
│ ├── Minimal View # Components used for the startpage / minimal alternative view
|
||||||
|
│ │ ├── MinimalHeading.vue # Title part of minimal view
|
||||||
|
│ │ ├── MinimalSearch.vue # Search bar for minimal view
|
||||||
|
│ │ ╰── MinimalSection.vue # Tabbed-Item section for minimal view
|
||||||
|
│ ├── PageStrcture # Components relating the main structure of the page
|
||||||
|
│ │ ├── Footer.vue # Footer, visible at the bottom of all pages
|
||||||
|
│ │ ├── Header.vue # Header, visible at the top of pages, and includes title and nav
|
||||||
|
│ │ ├── LoadingScreen.vue # Splash screen shown on first load
|
||||||
|
│ │ ├── Nav.vue # Navigation bar, includes a list of links
|
||||||
|
│ │ ╰── PageTitle.vue # Page title and sub-title, visible within the Header
|
||||||
|
│ ├── Workspace # Components used for the multi-tasking/ Workspace view
|
||||||
|
│ │ ├── MultiTaskingWeb.vue # When multi-tasking enabled, generates new iframe
|
||||||
|
│ │ ├── SideBar.vue # The left sidebar for the workspace view
|
||||||
|
│ │ ├── SideBarItem.vue # App item for the sidebar view
|
||||||
|
│ │ ├── SideBarSection.vue # Collapsible collection of items within workspace sidebar
|
||||||
|
│ │ ├── WebContent.vue # Workspace iframe view, displays content of current app
|
||||||
|
│ │ ╰── WidgetView.vue # Workspace container for displaying widgets in main content
|
||||||
|
│ ├── Widgets # Directory contains all custom widget components
|
||||||
|
│ │ ╰── .... # Too many to list, see widget docs instead
|
||||||
|
│ ╰── Settings # Components relating to the quick-settings, in the top-right
|
||||||
|
│ ├── AuthButtons.vue # Logout button and other app info
|
||||||
|
│ ├── ConfigLauncher.vue # Icon that when clicked will launch the Configuration component
|
||||||
|
│ ├── CustomThemeMaker.vue # Color pickers for letting user build their own theme
|
||||||
|
│ ├── ItemSizeSelector.vue # Set of buttons used to set and save item size
|
||||||
|
│ ├── KeyboardShortcutInfo.vue# Small pop-up displaying the available keyboard shortcuts
|
||||||
|
│ ├── LanguageSwitcher.vue # Dropdown in a modal for changing app language
|
||||||
|
│ ├── LayoutSelector.vue # Set of buttons, letting the user select their desired layout
|
||||||
|
│ ├── SearchBar.vue # The input field in the header, used for searching the app
|
||||||
|
│ ├── SettingsContainer.vue # Container that wraps all the quick-settings components
|
||||||
|
│ ╰── ThemeSelector.vue # Drop-down menu enabling the user to select and change themes
|
||||||
|
├── main.js # Main front-end entry point
|
||||||
|
├── registerServiceWorker.js # Registers and manages service workers, for PWA apps
|
||||||
|
├── router.js # Defines all available application routes
|
||||||
|
├── styles # Directory of all globally used common SCSS styles
|
||||||
|
│ ├── color-palette.scss # All color variable names and default values
|
||||||
|
│ ├── color-themes.scss # All variable values for built-in themes
|
||||||
|
│ ├── dimensions.scss # Dimensions and sizes as variables
|
||||||
|
│ ├── global-styles.scss # Basics and style resets used globally
|
||||||
|
│ ├── media-queries.scss # Screen sizes and media queries
|
||||||
|
│ ├── style-helpers.scss # SCSS functions used for modifying values
|
||||||
|
│ ├── typography.scss # Font and text styles used globally
|
||||||
|
│ ╰── user-defined-themes.scss # Empty, put any custom styles or themes here
|
||||||
|
├── mixins # Reusable component bases, extended by other views / components
|
||||||
|
│ ├── ChartingMixin.js # Functions for rendering charts in widget components
|
||||||
|
│ ├── GlancesMixin.js # Functions for fetching system info from Glances for widgets
|
||||||
|
│ ├── HomeMixin.js # Functions for homepage, used by default, minimal and workspace views
|
||||||
|
│ ╰── WidgetMixin.js # Functions for all widgets, like data fetching, updating and error handling
|
||||||
|
├── utils # Directory of re-used helper functions
|
||||||
|
│ ├── ArrowKeyNavigation.js # Functionality for arrow-key navigation
|
||||||
|
│ ├── Auth.js # Handles all authentication related actions
|
||||||
|
│ ├── CheckSectionVisibility.js # Checks which parts of the page should be visible/ hidden based on config
|
||||||
|
│ ├── ClickOutside.js # A directive for detecting click, used to hide dropdown, modal or context menu
|
||||||
|
│ ├── ConfigHelpers.js # Helper functions for managing configuration
|
||||||
|
│ ├── CloudBackup.js # Functionality for encrypting, processing and network calls
|
||||||
|
│ ├── ConfigSchema.json # The schema, used to validate the users conf.yml file
|
||||||
|
│ ├── ConfigAccumulator.js # Central place for managing and combining config
|
||||||
|
│ ├── ConfigHelpers.json # Collection of helper functions to process config using accumulator
|
||||||
|
│ ├── ConfigValidator.js # A helper script that validates the config file against schema
|
||||||
|
│ ├── CoolConsole.js # Prints info, warning and error messages to browser console, with a cool style
|
||||||
|
│ ├── defaults.js # Global constants and their default values
|
||||||
|
│ ├── emojis.json # List of emojis with unicode and shortcode, used for emoji icon feature
|
||||||
|
│ ├── EmojiUnicodeRegex.js # Regular expression to validate emoji unicode format, for emoji icons
|
||||||
|
│ ├── ErrorHandler.js # Helper function called when an error is returned
|
||||||
|
│ ├── InitServiceWorker.js # Initializes and manages service worker, if enabled
|
||||||
|
│ ├── Search.js # Helper functions for searching/ filtering items in all views
|
||||||
|
│ ├── JsonToYaml.js # Function that parses and converts raw JSON into valid YAML
|
||||||
|
│ ├── KeycloakAuth.js # Singleton class to manage Keycloak authentication
|
||||||
|
│ ├── languages.js # Handles fetching, switching and validating languages
|
||||||
|
│ ╰── ThemeHelper.js # Function that handles the fetching and setting of user themes
|
||||||
|
╰── views # Directory of available pages, corresponding to available routes
|
||||||
|
├── Home.vue # The home page container
|
||||||
|
├── About.vue # About page
|
||||||
|
├── Login.vue # TAuthentication page
|
||||||
|
├── Minimal.vue # The minimal view
|
||||||
|
╰── Workspace.vue # The workspace view with apps in sidebar
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Visualisation of Source Directory
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Development Tools
|
||||||
|
|
||||||
|
### Performance - Lighthouse
|
||||||
|
|
||||||
|
The easiest method of checking performance is to use Chromium's build in auditing tool, Lighthouse. To run the test, open Developer Tools (usually F12) --> Lighthouse and click on the 'Generate Report' button at the bottom.
|
||||||
|
|
||||||
|
### Dependencies - BundlePhobia
|
||||||
|
|
||||||
|
[BundlePhobia](https://bundlephobia.com/) is a really useful app that lets you analyze the cost of adding any particular dependency to an application
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
|
||||||
|
### Known Warnings
|
||||||
|
|
||||||
|
When running the build command, several warnings appear. These are not errors, and do not affect the security or performance of the application. They will be addressed in a future update
|
||||||
|
|
||||||
|
`WARN A new version of sass-loader is available. Please upgrade for best experience.` - Currently we're using an older version of SASS loader, since the more recent releases do not seem to be compatible with the Vue CLI's webpack configuration.
|
||||||
|
|
||||||
|
`WARN asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).` - For the PWA to support Windows 10, a splash screen asset is required, and is quite large. This throws a warning, however PWA assets are not loaded until needed, so shouldn't have any impact on application performance. A similar warning is thrown for the Raleway font, and that is looking to be addressed.
|
|
@ -0,0 +1,473 @@
|
||||||
|
# Development Guides
|
||||||
|
|
||||||
|
A series of short tutorials, to guide you through the most common development tasks.
|
||||||
|
|
||||||
|
Sections:
|
||||||
|
|
||||||
|
- [Creating a new theme](#creating-a-new-theme)
|
||||||
|
- [Writing Translations](#writing-translations)
|
||||||
|
- [Adding a new option in the config file](#adding-a-new-option-in-the-config-file)
|
||||||
|
- [Updating Dependencies](#updating-dependencies)
|
||||||
|
- [Writing Netlify Cloud Functions](#developing-netlify-cloud-functions)
|
||||||
|
- [Hiding Page Furniture](#hiding-page-furniture-on-certain-routes)
|
||||||
|
- [Adding / Using Environmental Variables](#adding--using-environmental-variables)
|
||||||
|
- [Building a Widget](#building-a-widget)
|
||||||
|
- [Respecting Config Permissions](#respecting-config-permissions)
|
||||||
|
|
||||||
|
## Creating a new theme
|
||||||
|
|
||||||
|
Adding a new theme is really easy. There're two things you need to do: Pass the theme name to Dashy, so that it can be added to the theme selector dropdown menu, and then write some styles!
|
||||||
|
|
||||||
|
### 1. Add Theme Name
|
||||||
|
|
||||||
|
Choose a snappy name for your theme, and add it to the `builtInThemes` array inside [`defaults.js`](https://github.com/Lissy93/dashy/blob/master/src/utils/defaults.js#L27).
|
||||||
|
|
||||||
|
### 2. Write some Styles
|
||||||
|
|
||||||
|
Put your theme styles inside [`color-themes.scss`](https://github.com/Lissy93/dashy/blob/master/src/styles/color-themes.scss).
|
||||||
|
Create a new block, and make sure that `data-theme` matches the theme name you chose above. For example:
|
||||||
|
|
||||||
|
```css
|
||||||
|
html[data-theme='tiger'] {
|
||||||
|
--primary: #f58233;
|
||||||
|
--background: #0b1021;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Then you can go ahead and write your own custom CSS. Although all CSS is supported here, the best way to define your theme is by setting the CSS variables. You can find a [list of all CSS variables, here](https://github.com/Lissy93/dashy/blob/master/docs/theming.md#css-variables).
|
||||||
|
|
||||||
|
For a full guide on styling, see [Theming Docs](./theming.md).
|
||||||
|
|
||||||
|
Note that if your theme is just for yourself, and you're not submitting a PR, then you can instead just pass it under `appConfig.cssThemes` inside your config file. And then put your theme in your own stylesheet, and pass it into the Docker container - [see how](https://github.com/Lissy93/dashy/blob/master/docs/theming.md#adding-your-own-theme).
|
||||||
|
|
||||||
|
## Writing Translations
|
||||||
|
|
||||||
|
For full docs about Dashy's multi-language support, see [Multi-Language Support](./multi-language-support.md)
|
||||||
|
|
||||||
|
Dashy is using [vue-i18n](https://vue-i18n.intlify.dev/guide/) to manage multi-language support.
|
||||||
|
|
||||||
|
Adding a new language is pretty straightforward, with just three steps:
|
||||||
|
|
||||||
|
### 1. Create a new Language File
|
||||||
|
|
||||||
|
Create a new JSON file in `./src/assets/locales` name is a 2-digit [ISO-639 code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) for your language, E.g. for German `de.json`, French `fr.json` or Spanish `es.json` - You can find a list of all ISO codes at [iso.org](https://www.iso.org/obp/ui).
|
||||||
|
|
||||||
|
### 2. Translate
|
||||||
|
|
||||||
|
Using [`en.json`](https://github.com/Lissy93/dashy/tree/master/src/assets/locales/en.json) as an example, translate the JSON values to your language, while leaving the keys as they are. It's fine to leave out certain items, as if they're missing they will fall-back to English. If you see any attribute which include curly braces (`{xxx}`), then leave the inner value of these braces as is, as this is for variables.
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"theme-maker": {
|
||||||
|
"export-button": "Benutzerdefinierte Variablen exportieren",
|
||||||
|
"reset-button": "Stile zurücksetzen für",
|
||||||
|
"show-all-button": "Alle Variablen anzeigen",
|
||||||
|
"save-button": "Speichern",
|
||||||
|
"cancel-button": "Abbrechen",
|
||||||
|
"saved-toast": "{theme} Erfolgreich aktualisiert",
|
||||||
|
"reset-toast": "Benutzerdefinierte Farben für {theme} entfernt"
|
||||||
|
},
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### 3. Add your file to the app
|
||||||
|
|
||||||
|
In [`./src/utils/languages.js`](https://github.com/Lissy93/dashy/tree/master/src/utils/languages.js), you need to do 2 small things:
|
||||||
|
|
||||||
|
First import your new translation file, do this at the top of the page.
|
||||||
|
E.g. `import de from '@/assets/locales/de.json';`
|
||||||
|
|
||||||
|
Second, add it to the array of languages, e.g:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
export const languages = [
|
||||||
|
{
|
||||||
|
name: 'English',
|
||||||
|
code: 'en',
|
||||||
|
locale: en,
|
||||||
|
flag: '🇬🇧',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'German', // The name of your language
|
||||||
|
code: 'de', // The ISO code of your language
|
||||||
|
locale: de, // The name of the file you imported (no quotes)
|
||||||
|
flag: '🇩🇪', // An optional flag emoji
|
||||||
|
},
|
||||||
|
];
|
||||||
|
```
|
||||||
|
|
||||||
|
You can also add your new language to the readme file, under the [Language Switching](https://github.com/Lissy93/dashy#language-switching-) section, and optionally include your name/ username if you'd like to be credited for your work. Done!
|
||||||
|
|
||||||
|
If you are not comfortable with making pull requests, or do not want to modify the code, then feel free to instead send the translated file to me, and I can add it into the application. I will be sure to credit you appropriately.
|
||||||
|
|
||||||
|
## Adding a new option in the config file
|
||||||
|
|
||||||
|
This section is for, adding a new setting to the config file.
|
||||||
|
|
||||||
|
All of the users config is specified in `./user-data/conf.yml` - see [Configuring Docs](./configuring.md) for info.
|
||||||
|
It's important to first ensure that there isn't a similar option already available, the new option is definitely necessary, and most importantly that it is fully backwards compatible.
|
||||||
|
|
||||||
|
Next choose the appropriate section to place it under
|
||||||
|
|
||||||
|
- Application settings should be located under `appConfig`
|
||||||
|
- Page info (such as text and metadata) should be under `pageInfo`
|
||||||
|
- Data relating to specific sections should be under `section[n].displayData`
|
||||||
|
- Settings applied to specific items or widgets, should be under `item[n]` or `widget[n]`
|
||||||
|
|
||||||
|
For example, if your option is added under `appConfig`, you can access it within your component using the `$store`, this is typically placed in a computed property, e.g:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
computed: {
|
||||||
|
appConfig() {
|
||||||
|
return this.$store.getters.appConfig;
|
||||||
|
},
|
||||||
|
...
|
||||||
|
},
|
||||||
|
```
|
||||||
|
|
||||||
|
Then, where you want to get the users value within your component, use something like: `this.appConfig.myProperty`. If the user hasn't specified the value, Don't forget to have a fallback or default for it.
|
||||||
|
|
||||||
|
If you have a default fallback value, then this would typically be specified in the [`defaults.js`](https://github.com/Lissy93/dashy/blob/master/src/utils/defaults.js) file.
|
||||||
|
|
||||||
|
You will now need to add the definition of your new attribute into the [ConfigSchema](https://github.com/Lissy93/dashy/blob/master/src/utils/ConfigSchema.js). This will make it available in the UI config editor, and also ensure that the config validation check doesn't fail.
|
||||||
|
For example:
|
||||||
|
|
||||||
|
```json
|
||||||
|
"fontAwesomeKey": {
|
||||||
|
"type": "string",
|
||||||
|
"pattern": "^[a-z0-9]{10}$",
|
||||||
|
"description": "API key for font-awesome",
|
||||||
|
"example": "0821c65656"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
```json
|
||||||
|
"iconSize": {
|
||||||
|
"enum": [ "small", "medium", "large" ],
|
||||||
|
"default": "medium",
|
||||||
|
"description": "The size of each link item / icon"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Finally, add your new property to the [`configuring.md`](./configuring.md) API docs. Put it under the relevant section, and be sure to include field name, data type, a description and mention that it is optional. If your new feature needs more explanation, then you can also document it under the relevant section elsewhere in the documentation.
|
||||||
|
|
||||||
|
Checklist:
|
||||||
|
|
||||||
|
- [ ] Ensure the new attribute is actually necessary, and nothing similar already exists
|
||||||
|
- [ ] Update the [Schema](https://github.com/Lissy93/dashy/blob/master/src/utils/ConfigSchema.js) with the parameters for your new option
|
||||||
|
- [ ] If required, set a default or fallback value (usually in [`defaults.js`](https://github.com/Lissy93/dashy/blob/master/src/utils/defaults.js))
|
||||||
|
- [ ] Document the new value in [`configuring.md`](./configuring.md), and if required under the relevant section in the docs
|
||||||
|
- [ ] Ensure your changes are backwards compatible, and that nothing breaks if the attribute isn't specified
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Updating Dependencies
|
||||||
|
|
||||||
|
Running `yarn upgrade` will updated all dependencies based on the ranges specified in the `package.json`. The `yarn.lock` file will be updated, as will the contents of `./node_modules`, for more info, see the [yarn upgrade documentation](https://classic.yarnpkg.com/en/docs/cli/upgrade/). [`npm-check-updates`](https://github.com/raineorshine/npm-check-updates) is a useful tool to help with this.
|
||||||
|
It is important to thoroughly test after any big dependency updates.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Developing Netlify Cloud Functions
|
||||||
|
|
||||||
|
When Dashy is deployed to Netlify, it is effectively running as a static app, and therefore the server-side code for the Node.js endpoints is not available. However Netlify now supports serverless cloud lambda functions, which can be used to replace most functionality.
|
||||||
|
|
||||||
|
### 1. Run Netlify Dev Server
|
||||||
|
|
||||||
|
First off all, install the Netlify CLI: `npm install netlify-cli -g`
|
||||||
|
Then, from within the root of Dashy's directory, start the server, by running: `netlify dev`
|
||||||
|
|
||||||
|
### 2. Create a lambda function
|
||||||
|
|
||||||
|
This should be saved in the [`./services/serverless-functions`](https://github.com/Lissy93/dashy/tree/master/services/serverless-functions) directory
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
exports.handler = async () => ({
|
||||||
|
statusCode: 200,
|
||||||
|
body: 'Return some data here...',
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
|
### 3. Redirect the Node endpoint to the function
|
||||||
|
|
||||||
|
In the [`netlify.toml`](https://github.com/Lissy93/dashy/blob/FEATURE/serverless-functions/netlify.toml) file, add a 301 redirect, with the path to the original Node.js endpoint, and the name of your cloud function
|
||||||
|
|
||||||
|
```toml
|
||||||
|
[[redirects]]
|
||||||
|
from = "/status-check"
|
||||||
|
to = "/.netlify/functions/cloud-status-check"
|
||||||
|
status = 301
|
||||||
|
force = true
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Hiding Page Furniture on Certain Routes
|
||||||
|
|
||||||
|
For some pages (such as the login page, the minimal start page, etc) the basic page furniture, (like header, footer, nav, etc) is not needed. This section explains how you can hide furniture on a new view (step 1), or add a component that should be hidden on certain views (step 2).
|
||||||
|
|
||||||
|
### 1. Add the route name to the should hide array
|
||||||
|
|
||||||
|
In [`./src/utils/defaults.js`](https://github.com/Lissy93/dashy/blob/master/src/utils/defaults.js), there's an array called `hideFurnitureOn`. Append the name of the route (the same as it appears in [`router.js`](https://github.com/Lissy93/dashy/blob/master/src/router.js)) here.
|
||||||
|
|
||||||
|
### 2. Add the conditional to the structural component to hide
|
||||||
|
|
||||||
|
First, import the helper function:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
import { shouldBeVisible } from '@/utils/SectionHelpers';
|
||||||
|
```
|
||||||
|
|
||||||
|
Then you can create a computed value, that calls this function, passing in the route name:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
export default {
|
||||||
|
...
|
||||||
|
computed: {
|
||||||
|
...
|
||||||
|
isVisible() {
|
||||||
|
return shouldBeVisible(this.$route.name);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
Finally, in the markup of your component, just add a `v-if` statement, referencing your computed value
|
||||||
|
|
||||||
|
```vue
|
||||||
|
<header v-if="isVisible">
|
||||||
|
...
|
||||||
|
</header>
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Adding / Using Environmental Variables
|
||||||
|
|
||||||
|
All environmental variables are optional. Currently there are not many environmental variables used, as most of the user preferences are stored under `appConfig` in the `conf.yml` file.
|
||||||
|
|
||||||
|
You can set variables either in your environment, or using the [`.env`](https://github.com/Lissy93/dashy/blob/master/.env) file.
|
||||||
|
|
||||||
|
Any environmental variables used by the frontend are preceded with `VUE_APP_`. Vue will merge the contents of your `.env` file into the app in a similar way to the ['dotenv'](https://github.com/motdotla/dotenv) package, where any variables that you set on your system will always take preference over the contents of any `.env` file.
|
||||||
|
|
||||||
|
If add any new variables, ensure that there is always a fallback (define it in [`defaults.js`](https://github.com/Lissy93/dashy/blob/master/src/utils/defaults.js)), so as to not cause breaking changes. Don't commit the contents of your `.env` file to git, but instead take a few moments to document what you've added under the appropriate section. Try and follow the concepts outlined in the [12 factor app](https://12factor.net/config).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Building a Widget
|
||||||
|
|
||||||
|
### Step 0 - Prerequisites
|
||||||
|
|
||||||
|
If this is your first time working on Dashy, then the [Developing Docs](https://github.com/Lissy93/dashy/blob/master/docs/developing.md) instructions for project setup and running. In short, you just need to clone the project, cd into it, install dependencies (`yarn`) and then start the development server (`yarn dev`).
|
||||||
|
|
||||||
|
To build a widget, you'll also need some basic knowledge of Vue.js. The [official Vue docs](https://vuejs.org/v2/guide/) provides a good starting point, as does [this guide](https://www.taniarascia.com/getting-started-with-vue/) by Tania Rascia
|
||||||
|
|
||||||
|
If you just want to jump straight in, then [here](https://github.com/Lissy93/dashy/commit/3da76ce2999f57f76a97454c0276301e39957b8e) is a complete implementation of a new example widget, or take a look at the [`XkcdComic.vue`](https://github.com/Lissy93/dashy/blob/master/src/components/Widgets/XkcdComic.vue) widget, which is pretty simple.
|
||||||
|
|
||||||
|
### Step 1 - Create Widget
|
||||||
|
|
||||||
|
Firstly, create a new `.vue` file under [`./src/components/Widgets`](https://github.com/Lissy93/dashy/tree/master/src/components/Widgets).
|
||||||
|
|
||||||
|
```vue
|
||||||
|
<template>
|
||||||
|
<div class="example-wrapper">
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
import axios from 'axios';
|
||||||
|
import WidgetMixin from '@/mixins/WidgetMixin';
|
||||||
|
import { widgetApiEndpoints } from '@/utils/defaults';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
mixins: [WidgetMixin],
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
results: null,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
endpoint() {
|
||||||
|
return `${widgetApiEndpoints.myApi}/something`;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
fetchData() {
|
||||||
|
this.makeRequest(this.endpoint).then(this.processData);
|
||||||
|
},
|
||||||
|
processData(data) {
|
||||||
|
// Do processing any here, and set component data
|
||||||
|
this.results = data;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
</style>
|
||||||
|
```
|
||||||
|
|
||||||
|
All widgets extend from the [Widget](https://github.com/Lissy93/dashy/blob/master/src/mixins/WidgetMixin.js) mixin. This provides some basic functionality that is shared by all widgets. The mixin includes the following `options`, `startLoading()`, `finishLoading()`, `error()` and `update()`.
|
||||||
|
|
||||||
|
- **Getting user options: `options`**
|
||||||
|
- Any user-specific config can be accessed with `this.options.something` (where something is the data key you're accessing)
|
||||||
|
- **Loading state: `startLoading()` and `finishLoading()`**
|
||||||
|
- You can show the loader with `this.startLoading()`, then when your data request completes, hide it again with `this.finishLoading()`
|
||||||
|
- **Error handling: `error()`**
|
||||||
|
- If something goes wrong (such as API error, or missing user parameters), then call `this.error()` to show message to user
|
||||||
|
- **Updating data: `update()`**
|
||||||
|
- When the user clicks the update button, or if continuous updates are enabled, then the `update()` method within your widget will be called
|
||||||
|
|
||||||
|
### Step 2 - Adding Functionality
|
||||||
|
|
||||||
|
#### **Accessing User Options**
|
||||||
|
|
||||||
|
If your widget is going to accept any parameters from the user, then we can access these with `this.options.[parmName]`. It's best to put these as computed properties, which will enable us to check it exists, is valid, and if needed format it. For example, if we have an optional property called `count` (to determine number of results), we can do the following, and then reference it within our component with `this.count`
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
computed: {
|
||||||
|
count() {
|
||||||
|
if (!this.options.count) {
|
||||||
|
return 5;
|
||||||
|
}
|
||||||
|
return this.options.count;
|
||||||
|
},
|
||||||
|
...
|
||||||
|
},
|
||||||
|
```
|
||||||
|
|
||||||
|
#### **Adding an API Endpoint**
|
||||||
|
|
||||||
|
If your widget makes a data request, then add the URL for the API endpoint to the `widgetApiEndpoints` array in [`defaults.js`](https://github.com/Lissy93/dashy/blob/master/src/utils/defaults.js#L207)
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
widgetApiEndpoints: {
|
||||||
|
...
|
||||||
|
exampleEndpoint: 'https://hub.dummyapis.com/ImagesList',
|
||||||
|
},
|
||||||
|
```
|
||||||
|
|
||||||
|
Then in your widget file:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
import { widgetApiEndpoints } from '@/utils/defaults';
|
||||||
|
```
|
||||||
|
|
||||||
|
For GET requests, you may need to add some parameters onto the end of the URL. We can use another computed property for this, for example:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
endpoint() {
|
||||||
|
return `${widgetApiEndpoints.exampleEndpoint}?count=${this.count}`;
|
||||||
|
},
|
||||||
|
```
|
||||||
|
|
||||||
|
#### **Making an API Request**
|
||||||
|
|
||||||
|
Axios is used for making data requests, so import it into your component: `import axios from 'axios';`
|
||||||
|
|
||||||
|
Under the `methods` block, we'll create a function called `fetchData`, here we can use Axios to make a call to our endpoint.
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
fetchData() {
|
||||||
|
this.makeRequest(this.endpoint, this.headers).then(this.processData);
|
||||||
|
},
|
||||||
|
```
|
||||||
|
|
||||||
|
There are three things happening here:
|
||||||
|
|
||||||
|
- If the response completes successfully, we'll pass the results to another function that will handle them
|
||||||
|
- If there's an error, then we call `this.error()`, which will show a message to the user
|
||||||
|
- Whatever the result, once the request has completed, we call `this.finishLoading()`, which will hide the loader
|
||||||
|
|
||||||
|
#### **Processing Response**
|
||||||
|
|
||||||
|
In the above example, we call the `processData()` method with the result from the API, so we need to create that under the `methods` section. How you handle this data will vary depending on what's returned by the API, and what you want to render to the user. But however you do it, you will likely need to create a data variable to store the response, so that it can be easily displayed in the HTML.
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
myResults: null,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
```
|
||||||
|
|
||||||
|
And then, inside your `processData()` method, you can set the value of this, with:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
`this.myResults = 'whatever'`
|
||||||
|
```
|
||||||
|
|
||||||
|
#### **Rendering Response**
|
||||||
|
|
||||||
|
Now that the results are in the correct format, and stored as data variables, we can use them within the `<template>` to render results to the user. Again, how you do this will depend on the structure of your data, and what you want to display, but at it's simplest, it might look something like this:
|
||||||
|
|
||||||
|
```vue
|
||||||
|
<p class="results">{{ myResults }}</p>
|
||||||
|
```
|
||||||
|
|
||||||
|
#### **Styling**
|
||||||
|
|
||||||
|
Styles can be written for your widget within the `<style>` block.
|
||||||
|
|
||||||
|
There are several color variables used by widgets, which extend from the base palette. Using these enables users to override colors to theme their dashboard, if they wish. The variables are: `--widget-text-color`, `--widget-background-color` and `--widget-accent-color`
|
||||||
|
|
||||||
|
```vue
|
||||||
|
<style scoped lang="scss">
|
||||||
|
p.results {
|
||||||
|
color: var(--widget-text-color);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
```
|
||||||
|
|
||||||
|
For examples of finished widget components, see the [Widgets](https://github.com/Lissy93/dashy/tree/master/src/components/Widgets) directory. Specifically, the [`XkcdComic.vue`](https://github.com/Lissy93/dashy/blob/master/src/components/Widgets/XkcdComic.vue) widget is quite minimal, so would make a good example, as will [this example implementation](https://github.com/Lissy93/dashy/commit/3da76ce2999f57f76a97454c0276301e39957b8e).
|
||||||
|
|
||||||
|
### Step 3 - Register
|
||||||
|
|
||||||
|
Next, register your new widget in [`WidgetBase.vue`](https://github.com/Lissy93/dashy/blob/master/src/components/Widgets/WidgetBase.vue). In this file, you'll need to add the following:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
const COMPAT = {
|
||||||
|
...
|
||||||
|
'example-widget': 'ExampleWidget',
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
Here, the `example-widget` property name will be used to identify the widget when parsing the `type` property in a configuration file. The `ExampleWidget` string is used to dynamically import the widget, and therefore must match the widget's filename as it exists in the `components/widgets` folder.
|
||||||
|
|
||||||
|
### Step 4 - Docs
|
||||||
|
|
||||||
|
Finally, add some documentation for your widget in the [Widget Docs](https://github.com/Lissy93/dashy/blob/master/docs/widgets.md), so that others know how to use it. Include the following information: Title, short description, screenshot, config options and some example YAML.
|
||||||
|
|
||||||
|
**Summary**: For a complete example of everything discussed here, see: [`3da76ce`](https://github.com/Lissy93/dashy/commit/3da76ce2999f57f76a97454c0276301e39957b8e)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Respecting Config Permissions
|
||||||
|
|
||||||
|
Any screen that displays part or all of the users config, must not be shown when the user has disabled viewing config.
|
||||||
|
|
||||||
|
This can be done by checking the `allowViewConfig` attribute of the `permissions` getter, in the store.
|
||||||
|
First create a new `computed` property, like:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
allowViewConfig() {
|
||||||
|
return this.$store.getters.permissions.allowViewConfig;
|
||||||
|
},
|
||||||
|
```
|
||||||
|
|
||||||
|
Then wrap the part of your UI which displays config with: `v-if="allowViewConfig"`
|
||||||
|
|
||||||
|
If required, add a message showing that the component isn't available, using the `AccessError` component. E.g.
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
import AccessError from '@/components/Configuration/AccessError';
|
||||||
|
```
|
||||||
|
|
||||||
|
```vue
|
||||||
|
<AccessError v-else />
|
||||||
|
```
|
||||||
|
|
||||||
|
The `$store.getters.permissions` object also returns options for when and where config can be saved, using: `allowWriteToDisk`, and `allowSaveLocally` - both are booleans.
|
|
@ -0,0 +1,210 @@
|
||||||
|
# Icons
|
||||||
|
|
||||||
|
Both sections and items can have an icon, which is specified using the `icon` attribute. Using icons improves the aesthetics of your UI and makes the app more intuitive to use. Dashy supports multiple different icon providers, usage instructions for which are explained here.
|
||||||
|
|
||||||
|
- [Auto-Fetched Favicons](#favicons)
|
||||||
|
- [Font Awesome Icons](#font-awesome)
|
||||||
|
- [Simple Icons](#simple-icons)
|
||||||
|
- [Generative Icons](#generative-icons)
|
||||||
|
- [Emoji Icons](#emoji-icons)
|
||||||
|
- [Home-Lab Icons](#home-lab-icons)
|
||||||
|
- [Material Icons](#material-design-icons)
|
||||||
|
- [Icons by URL](#icons-by-url)
|
||||||
|
- [Local Icons](#local-icons)
|
||||||
|
- [Using a Default Icon](#default-icon)
|
||||||
|
- [No Icon](#no-icon)
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img width="500" src="https://i.ibb.co/GTVmZnc/dashy-example-icons.png" />
|
||||||
|
</p>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Favicons
|
||||||
|
|
||||||
|
Dashy can auto-fetch an icon for a given service, using it's favicon. Just set `icon: favicon` to use this feature.
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img width="580" src="https://i.ibb.co/k6wyhnB/favicon-icons.png" />
|
||||||
|
</p>
|
||||||
|
|
||||||
|
Since different websites host their favicons at different paths, for the best results Dashy can use an API to resolve a websites icon.
|
||||||
|
|
||||||
|
The default favicon API is [allesedv.com](https://favicon.allesedv.com/), but you can change this under `appConfig.faviconApi`. If you'd prefer not to use an API, just set this value to `local`. You can also use different APIs for individual items, by setting `icon: favicon-[api]`, e.g. `favicon-clearbit`.
|
||||||
|
|
||||||
|
The following favicon APIs are supported:
|
||||||
|
|
||||||
|
- `allesedv` - [allesedv.com](https://favicon.allesedv.com/) is a highly efficient IPv6-enabled service
|
||||||
|
- `iconhorse` - [Icon.Horse](https://icon.horse/) returns quality icons for any site, with caching for speed and fallbacks for sites without an icon
|
||||||
|
- `clearbit` - [Clearbit](https://clearbit.com/logo) returns high-quality square logos from mainstream websites
|
||||||
|
- `faviconkit` - [faviconkit.com](https://faviconkit.com/) good quality icons and most sites supported (Note: down as of Nov '21)
|
||||||
|
- `besticon` - [BestIcon](https://github.com/mat/besticon) fetches websites icons from manifest
|
||||||
|
- `mcapi` - [MC-API](https://eu.mc-api.net/) fetches default website favicon, originally a Minecraft util
|
||||||
|
- `duckduckgo` - Returns decent quality website icons, from DuckDuckGo search
|
||||||
|
- `google` - Official Google favicon API service, good support for all sites, but poor quality
|
||||||
|
- `yandex` - Lower quality icons, but useful in some regions where other services are blocked
|
||||||
|
- `local` - Set to local to fetch the default icon at /favicon.ico instead of using an API
|
||||||
|
|
||||||
|
If for a given service none of the APIs work in your situation, and nor does local, then the best option is to find the path of the services logo or favicon, and set the icon to the URL of the raw image. For example, `icon: https://monitoring.local/faviconx128.png`- you can find this path using the browser dev tools.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Font Awesome
|
||||||
|
|
||||||
|
You can use any [Font Awesome Icon](https://fontawesome.com/icons) simply by specifying it's identifier. This is in the format of `[category] [name]` and can be found on the page for that icon on the Font Awesome site. For example: `fas fa-rocket`, `fab fa-monero` or `fas fa-unicorn`.
|
||||||
|
|
||||||
|
Font-Awesome has a wide variety of free icons, but you can also use their pro icons if you have a membership. To do so, you need to specify your license key under: `appConfig.fontAwesomeKey`. This is usually a 10-digit string, for example `13014ae648`.
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img width="500" src="https://i.ibb.co/tMtwNYZ/fontawesome-icons3.png" />
|
||||||
|
</p>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Simple Icons
|
||||||
|
|
||||||
|
[SimpleIcons.org](https://simpleicons.org/) is a collection of 2000+ high quality, free and open source brand and logo SVG icons. Usage of which is very similar to font-awesome icons. First find the glyph you want to use on the [website](https://simpleicons.org/), then just set your icon the the simple icon slug, prefixed with `si-`.
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img width="580" src="https://i.ibb.co/MVhkXfC/simple-icons-example.png" />
|
||||||
|
</p>
|
||||||
|
|
||||||
|
For example:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
sections:
|
||||||
|
- name: Simple Icons Example
|
||||||
|
items:
|
||||||
|
- title: Portainer
|
||||||
|
icon: si-portainer
|
||||||
|
- title: FreeNAS
|
||||||
|
icon: si-freenas
|
||||||
|
- title: NextCloud
|
||||||
|
icon: si-nextcloud
|
||||||
|
- title: Home Assistant
|
||||||
|
icon: si-homeassistant
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Generative Icons
|
||||||
|
|
||||||
|
To uses a unique and programmatically generated icon for a given service just set `icon: generative`. This is particularly useful when you have a lot of similar services with a different IP or port, and no specific icon. These icons are generated with [DiceBear](https://api.dicebear.com/) (or [Evatar](https://evatar.io/) for fallback), and use a hash of the services domain/ ip for entropy, so each domain will have a unique icon.
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img width="500" src="https://i.ibb.co/b2pC2CL/generative-icons-2.png" />
|
||||||
|
</p>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Emoji Icons
|
||||||
|
|
||||||
|
You can use almost any emoji as an icon for items or sections. You can specify the emoji either by pasting it directly, using it's unicode ( e.g. `'U+1F680'`) or shortcode (e.g. `':rocket:'`). You can find these codes for any emoji using [Emojipedia](https://emojipedia.org/) (near the bottom of emoji each page), or for a quick reference to emoji shortcodes, check out [emojis.ninja](https://emojis.ninja/) by @nomanoff.
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img width="580" src="https://i.ibb.co/YLwgTf9/emoji-icons-1.png" />
|
||||||
|
</p>
|
||||||
|
|
||||||
|
For example, these will all render the same rocket (🚀) emoji: `icon: ':rocket:'` or `icon: 'U+1F680'` or `icon: 🚀`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Home-Lab Icons
|
||||||
|
|
||||||
|
The [dashboard-icons](https://github.com/walkxcode/Dashboard-Icons) repo by [@WalkxCode](https://github.com/WalkxCode) provides a comprehensive collection of 360+ high-quality PNG icons for commonly self-hosted services. Dashy natively supports these icons, and you can use them just by specifying the icon name (without extension) preceded by `hl-`. See [here](https://github.com/walkxcode/Dashboard-Icons/tree/main/png) for a full list of all available icons. Note that these are fetched and cached straight from GitHub, so if you require offline access, the [Local Icons](#local-icons) method may be a better option for you.
|
||||||
|
|
||||||
|
For example:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
sections:
|
||||||
|
- name: Home Lab Icons Example
|
||||||
|
items:
|
||||||
|
- title: AdGuard Home
|
||||||
|
icon: hl-adguardhome
|
||||||
|
- title: Long Horn
|
||||||
|
icon: hl-longhorn
|
||||||
|
- title: Nagios
|
||||||
|
icon: hl-nagios
|
||||||
|
- title: Whoogle Search
|
||||||
|
icon: hl-whooglesearch
|
||||||
|
```
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img width="580" src="https://i.ibb.co/PQzYHmD/homelab-icons-2.png" />
|
||||||
|
</p>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Material Design Icons
|
||||||
|
|
||||||
|
Dashy also supports 5000+ [material-design-icons](https://github.com/Templarian/MaterialDesign). To use these, first find the name/ slug for your icon [here](https://dev.materialdesignicons.com/icons), and then prefix is with `mdi-`.
|
||||||
|
|
||||||
|
For example:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
sections:
|
||||||
|
- name: Material Design Icons Example
|
||||||
|
items:
|
||||||
|
- title: Alien Icon
|
||||||
|
icon: mdi-alien
|
||||||
|
- title: Fire Icon
|
||||||
|
icon: mdi-fire
|
||||||
|
- title: Dino Icon
|
||||||
|
icon: mdi-google-downasaur
|
||||||
|
```
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img width="500" src="https://i.ibb.co/fC9B4mq/icons-mdi-example.png" />
|
||||||
|
</p>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Icons by URL
|
||||||
|
|
||||||
|
You can also set an icon by passing in a valid URL pointing to the icons location. For example `icon: https://i.ibb.co/710B3Yc/space-invader-x256.png`, this can be in .png, .jpg or .svg format, and hosted anywhere (local or remote) - so long as it's accessible from where you are hosting Dashy. The icon will be automatically scaled to fit, however loading in a lot of large icons may have a negative impact on performance, especially if you visit Dashy from new devices often.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Local Icons
|
||||||
|
|
||||||
|
You may also want to store your icons locally, bundled within Dashy so that there is no reliance on outside services. This can be done by putting the icons within Dashy's `./user-data/item-icons/` directory. If you are using Docker, then the easiest option is to map a volume from your host system, for example: `-v /local/image/directory:/app/user-data/item-icons/`. To reference an icon stored locally, just specify it's name and extension. For example, if my icon was stored in `/app/user-data/item-icons/maltrail.png`, then I would just set `icon: maltrail.png`.
|
||||||
|
|
||||||
|
You can also use sub-folders within the `item-icons` directory to keep things organized. You would then specify an icon with it's folder name slash image name. For example: `networking/monit.png`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Default Icon
|
||||||
|
|
||||||
|
If you'd like to set a default icon, to be applied to any items which don't have an icon already set, then this can be done under `appConfig.defaultIcon`.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## No Icon
|
||||||
|
|
||||||
|
If you don't wish for a given item or section to have an icon, just leave out the `icon` attribute.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Icon Collections and Resources
|
||||||
|
|
||||||
|
The following websites provide good-quality, free icon sets. To use any of these icons, either copy the link to the raw icon (it should end in `.svg` or `.png`) and paste it as your `icon`, or download and save the icons in `/user-data/item-icons` / mapped Docker volume. Full credit to the authors, please see the licenses for each service for usage and copyright information.
|
||||||
|
|
||||||
|
- [Icons for Self-Hosted Apps](https://thehomelab.wiki/books/helpful-tools-resources/page/icons-for-self-hosted-dashboards) - 350+ high-quality icons for commonly self-hosted services
|
||||||
|
- [SVG Box](https://svgbox.net/iconsets/) - Cryptocurrency, social media apps and flag icons
|
||||||
|
- [Simple Icons](https://simpleicons.org/) - Free SVG brand icons, with easy API access
|
||||||
|
- [Material Design Icons](https://github.com/google/material-design-icons/) - Hundreds of Open source PNG + SVG icons by Google
|
||||||
|
- [Icons8](https://icons8.com/icons) - Thousands of icons, all with free versions at 64x64
|
||||||
|
- [Flat Icon](https://www.flaticon.com/) - Wide variety of icon sets, most of which are free to use
|
||||||
|
- [SVG Repo](https://www.svgrepo.com/) - 300,000+ Vector Icons
|
||||||
|
|
||||||
|
If you are a student, then you can get free access to premium icons on [Icon Scout](https://education.github.com/pack/redeem/iconscout-student) or [Icons8](https://icons8.com/github-students) using the [GitHub Student Pack](https://education.github.com/pack).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
|
||||||
|
If you are using icons from an external source, these will be fetched on initial page load automatically, if and when needed. But combining icons from multiple services may have a negative impact on performance.
|
||||||
|
|
||||||
|
You can improve load speeds, by downloading your required icons, and serving them locally. Scaling icons to the minimum required dimensions (e.g. 128x128 or 64x64) will also greatly improve application load times.
|
||||||
|
|
||||||
|
For icons from external sources, please see the Privacy Policies and Licenses for that provider.
|
|
@ -0,0 +1,912 @@
|
||||||
|
# App Management
|
||||||
|
|
||||||
|
_The following article is a primer on managing self-hosted apps. It covers everything from keeping the Dashy (or any other app) up-to-date, secure, backed up, to other topics like auto-starting, monitoring, log management, web server configuration and using custom domains._
|
||||||
|
|
||||||
|
## Contents
|
||||||
|
|
||||||
|
- [Providing Assets](#providing-assets)
|
||||||
|
- [Running Commands](#running-commands)
|
||||||
|
- [Healthchecks](#healthchecks)
|
||||||
|
- [Logs and Performance](#logs-and-performance)
|
||||||
|
- [Auto-Starting at Boot](#auto-starting-at-system-boot)
|
||||||
|
- [Updating](#updating)
|
||||||
|
- [Backing Up](#backing-up)
|
||||||
|
- [Scheduling](#scheduling)
|
||||||
|
- [SSL Certificates](#ssl-certificates)
|
||||||
|
- [Authentication](#authentication)
|
||||||
|
- [Managing with Compose](#managing-containers-with-docker-compose)
|
||||||
|
- [Environmental Variables](#passing-in-environmental-variables)
|
||||||
|
- [Setting Headers](#setting-headers)
|
||||||
|
- [Remote Access](#remote-access)
|
||||||
|
- [Custom Domain](#custom-domain)
|
||||||
|
- [Securing Containers](#container-security)
|
||||||
|
- [Web Server Configuration](#web-server-configuration)
|
||||||
|
- [Running a Modified App](#running-a-modified-version-of-the-app)
|
||||||
|
- [Building your Own Container](#building-your-own-container)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Providing Assets
|
||||||
|
|
||||||
|
Although not essential, you will most likely want to provide several assets to your running app.
|
||||||
|
|
||||||
|
This is easy to do using [Docker Volumes](https://docs.docker.com/storage/volumes/), which lets you share a file or directory between your host system, and the container. Volumes are specified in the Docker run command, or Docker compose file, using the `--volume` or `-v` flags. The value of which consists of the path to the file / directory on your host system, followed by the destination path within the container. Fields are separated by a colon (`:`), and must be in the correct order. For example: `-v ~/alicia/my-local-conf.yml:/app/user-data/conf.yml`
|
||||||
|
|
||||||
|
In Dashy, commonly configured resources include:
|
||||||
|
|
||||||
|
- `./user-data/conf.yml` - Your main application config file
|
||||||
|
- `./public/item-icons` - A directory containing your own icons. This allows for offline access, and better performance than fetching from a CDN
|
||||||
|
- Also within `./public` you'll find standard website assets, including `favicon.ico`, `manifest.json`, `robots.txt`, etc. There's no need to pass these in, but you can do so if you wish
|
||||||
|
- `/src/styles/user-defined-themes.scss` - A stylesheet for applying custom CSS to your app. You can also write your own themes here.
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#management)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Running Commands
|
||||||
|
|
||||||
|
If you're running an app in Docker, then commands will need to be passed to the container to be executed. This can be done by preceding each command with `docker exec -it [container-id]`, where container ID can be found by running `docker ps`. For example `docker exec -it 26c156c467b4 yarn build`. You can also enter the container, with `docker exec -it [container-id] /bin/ash`, and navigate around it with normal Linux commands.
|
||||||
|
|
||||||
|
Dashy has several commands that can be used for various tasks, you can find a list of these either in the [Developing Docs](/docs/developing.md#project-commands), or by looking at the [`package.json`](https://github.com/Lissy93/dashy/blob/master/package.json#L5). These can be used by running `yarn [command-name]`.
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#management)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Healthchecks
|
||||||
|
|
||||||
|
Healthchecks are configured to periodically check that Dashy is up and running correctly on the specified port. By default, the health script is called every 5 minutes, but this can be modified with the `--health-interval` option. You can check the current container health with: `docker inspect --format "{{json .State.Health }}" [container-id]`, and a summary of health status will show up under `docker ps`. You can also manually request the current application status by running `docker exec -it [container-id] yarn health-check`. You can disable healthchecks altogether by adding the `--no-healthcheck` flag to your Docker run command.
|
||||||
|
|
||||||
|
To restart unhealthy containers automatically, check out [Autoheal](https://hub.docker.com/r/willfarrell/autoheal/). This image watches for unhealthy containers, and automatically triggers a restart. (This is a stand in for Docker's `--exit-on-unhealthy` that was proposed, but [not merged](https://github.com/moby/moby/pull/22719)). There's also [Deunhealth](https://github.com/qdm12/deunhealth), which is super light-weight, and doesn't require network access.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker run -d \
|
||||||
|
--name autoheal \
|
||||||
|
--restart=always \
|
||||||
|
-e AUTOHEAL_CONTAINER_LABEL=all \
|
||||||
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
|
willfarrell/autoheal
|
||||||
|
```
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#management)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Logs and Performance
|
||||||
|
|
||||||
|
### Container Logs
|
||||||
|
|
||||||
|
You can view logs for a given Docker container with `docker logs [container-id]`, add the `--follow` flag to stream the logs. For more info, see the [Logging Documentation](https://docs.docker.com/config/containers/logging/). There's also [Dozzle](https://dozzle.dev/), a useful tool, that provides a web interface where you can stream and query logs from all your running containers from a single web app.
|
||||||
|
|
||||||
|
### Container Performance
|
||||||
|
|
||||||
|
You can check the resource usage for your running Docker containers with `docker stats` or `docker stats [container-id]`. For more info, see the [Stats Documentation](https://docs.docker.com/engine/reference/commandline/stats/). There's also [cAdvisor](https://github.com/google/cadvisor), a useful web app for viewing and analyzing resource usage and performance of all your running containers.
|
||||||
|
|
||||||
|
### Management Apps
|
||||||
|
|
||||||
|
You can also view logs, resource usage and other info as well as manage your entire Docker workflow in third-party Docker management apps. For example [Portainer](https://github.com/portainer/portainer) an all-in-one open source management web UI for Docker and Kubernetes, or [LazyDocker](https://github.com/jesseduffield/lazydocker) a terminal UI for Docker container management and monitoring.
|
||||||
|
|
||||||
|
### Advanced Logging and Monitoring
|
||||||
|
|
||||||
|
Docker supports using [Prometheus](https://prometheus.io/) to collect logs, which can then be visualized using a platform like [Grafana](https://grafana.com/). For more info, see [this guide](https://docs.docker.com/config/daemon/prometheus/). If you need to route your logs to a remote syslog, then consider using [logspout](https://github.com/gliderlabs/logspout). For enterprise-grade instances, there are managed services, that make monitoring container logs and metrics very easy, such as [Sematext](https://sematext.com/blog/docker-container-monitoring-with-sematext/) with [Logagent](https://github.com/sematext/logagent-js).
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#management)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Auto-Starting at System Boot
|
||||||
|
|
||||||
|
You can use Docker's [restart policies](https://docs.docker.com/engine/reference/run/#restart-policies---restart) to instruct the container to start after a system reboot, or restart after a crash. Just add the `--restart=always` flag to your Docker compose script or Docker run command. For more information, see the docs on [Starting Containers Automatically](https://docs.docker.com/config/containers/start-containers-automatically/).
|
||||||
|
|
||||||
|
For Podman, you can use `systemd` to create a service that launches your container, [the docs](https://podman.io/blogs/2018/09/13/systemd.html) explains things further. A similar approach can be used with Docker, if you need to start containers after a reboot, but before any user interaction.
|
||||||
|
|
||||||
|
To restart the container after something within it has crashed, consider using [`docker-autoheal`](https://github.com/willfarrell/docker-autoheal) by @willfarrell, a service that monitors and restarts unhealthy containers. For more info, see the [Healthchecks](#healthchecks) section above.
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#management)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Updating
|
||||||
|
|
||||||
|
Dashy is under active development, so to take advantage of the latest features, you may need to update your instance every now and again.
|
||||||
|
|
||||||
|
### Updating Docker Container
|
||||||
|
|
||||||
|
1. Pull latest image: `docker pull lissy93/dashy:latest`
|
||||||
|
2. Kill off existing container
|
||||||
|
- Find container ID: `docker ps`
|
||||||
|
- Stop container: `docker stop [container_id]`
|
||||||
|
- Remove container: `docker rm [container_id]`
|
||||||
|
3. Spin up new container: `docker run [params] lissy93/dashy`
|
||||||
|
|
||||||
|
### Automatic Docker Updates
|
||||||
|
|
||||||
|
You can automate the above process using [Watchtower](https://github.com/containrrr/watchtower).
|
||||||
|
Watchtower will watch for new versions of a given image on Docker Hub, pull down your new image, gracefully shut down your existing container and restart it with the same options that were used when it was deployed initially.
|
||||||
|
|
||||||
|
To get started, spin up the watchtower container:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker run -d \
|
||||||
|
--name watchtower \
|
||||||
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
|
containrrr/watchtower
|
||||||
|
```
|
||||||
|
|
||||||
|
For more information, see the [Watchtower Docs](https://containrrr.dev/watchtower/)
|
||||||
|
|
||||||
|
### Updating Dashy from Source
|
||||||
|
|
||||||
|
Stop your current instance of Dashy, then navigate into the source directory. Pull down the latest code, with `git pull origin master`, then update dependencies with `yarn`, rebuild with `yarn build`, and start the server again with `yarn start`.
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#management)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Backing Up
|
||||||
|
|
||||||
|
### Backing Up Containers
|
||||||
|
|
||||||
|
You can make a backup of any running container really easily, using [`docker commit`](https://docs.docker.com/engine/reference/commandline/commit/) and save it with [`docker export`](https://docs.docker.com/engine/reference/commandline/export/), to do so:
|
||||||
|
|
||||||
|
- First find the container ID, you can do this with `docker container ls`
|
||||||
|
- Now to create the snapshot, just run `docker commit -p [container-id] my-backup`
|
||||||
|
- Finally, to save the backup locally, run `docker save -o ~/dashy-backup.tar my-backup`
|
||||||
|
- If you want to push this to a container registry, run `docker push my-backup:latest`
|
||||||
|
|
||||||
|
Note that this will not include any data in docker volumes, and the process here is a bit different. Since these files exist on your host system, if you have an existing backup solution implemented, you can incorporate and volume files within that system.
|
||||||
|
|
||||||
|
### Backing Up Volumes
|
||||||
|
|
||||||
|
[offen/docker-volume-backup](https://github.com/offen/docker-volume-backup) is a useful tool for periodic Docker volume backups, to any S3-compatible storage provider. It's run as a light-weight Docker container, and is easy to setup, and also supports GPG-encryption, email notification, and routing away older backups.
|
||||||
|
|
||||||
|
To get started, create a docker-compose similar to the example below, and then start the container. For more info, check out their [documentation](https://github.com/offen/docker-volume-backup), which is very clear.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
backup:
|
||||||
|
image: offen/docker-volume-backup:latest
|
||||||
|
environment:
|
||||||
|
BACKUP_CRON_EXPRESSION: "0 * * * *"
|
||||||
|
BACKUP_PRUNING_PREFIX: backup-
|
||||||
|
BACKUP_RETENTION_DAYS: 7
|
||||||
|
AWS_BUCKET_NAME: backup-bucket
|
||||||
|
AWS_ACCESS_KEY_ID: AKIAIOSFODNN7EXAMPLE
|
||||||
|
AWS_SECRET_ACCESS_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
|
||||||
|
volumes:
|
||||||
|
- data:/backup/my-app-backup:ro
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
|
volumes:
|
||||||
|
data:
|
||||||
|
```
|
||||||
|
|
||||||
|
It's worth noting that this process can also be done manually, using the following commands:
|
||||||
|
|
||||||
|
Backup:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker run --rm -v some_volume:/volume -v /tmp:/backup alpine tar -cjf /backup/some_archive.tar.bz2 -C /volume ./
|
||||||
|
```
|
||||||
|
|
||||||
|
Restore:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker run --rm -v some_volume:/volume -v /tmp:/backup alpine sh -c "rm -rf /volume/* /volume/..?* /volume/.[!.]* ; tar -C /volume/ -xjf /backup/some_archive.tar.bz2"
|
||||||
|
```
|
||||||
|
|
||||||
|
### Dashy-Specific Backup
|
||||||
|
|
||||||
|
All configuration and dashboard settings are stored in your `user-data/conf.yml` file. If you provide additional assets (like icons, fonts, themes, etc), these will also live in the `user-data` directory. So to backup all Dashy data, this is the only directory you need to backup.
|
||||||
|
|
||||||
|
Since Dashy is open source, there shouldn't be any need to backup the main container.
|
||||||
|
|
||||||
|
Dashy also has a built-in cloud backup feature, which is free for personal users, and will let you make and restore fully encrypted backups of your config directly through the UI. To learn more, see the [Cloud Backup Docs](/docs/backup-restore.md)
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#management)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Scheduling
|
||||||
|
|
||||||
|
If you need to periodically schedule the running of a given command on Dashy (or any other container), then a useful tool for doing so it [ofelia](https://github.com/mcuadros/ofelia). This runs as a Docker container and is really useful for things like backups, logging, updating, notifications, etc. Crons are specified using Go's crontab format, and a useful tool for visualizing this is [crontab.guru](https://crontab.guru/). This can also be done natively with Alpine: `docker run -it alpine ls /etc/periodic`.
|
||||||
|
I recommend combining this with [healthchecks](https://github.com/healthchecks/healthchecks) for easy monitoring of jobs, and failure notifications.
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#management)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## SSL Certificates
|
||||||
|
|
||||||
|
Enabling HTTPS with an SSL certificate is recommended, especially if you are hosting Dashy anywhere other than your home. This will ensure that all traffic is encrypted in transit.
|
||||||
|
|
||||||
|
### Auto-SSL
|
||||||
|
|
||||||
|
If you are using [NGINX Proxy Manager](https://nginxproxymanager.com/), then SSL is supported out of the box. Once you've added your proxy host and web address, then set the scheme to HTTPS, then under the SSL Tab select "Request a new SSL certificate" and follow the on-screen instructions.
|
||||||
|
|
||||||
|
If you're hosting Dashy behind Cloudflare, then they offer [free and easy SSL](https://www.cloudflare.com/en-gb/learning/ssl/what-is-an-ssl-certificate/)- all you need to do is enable it under the SSL/TLS tab. Or if you are using shared hosting, you may find [this tutorial](https://www.sitepoint.com/a-guide-to-setting-up-lets-encrypt-ssl-on-shared-hosting/) helpful.
|
||||||
|
|
||||||
|
### Getting a Self-Signed SSL Certificate
|
||||||
|
|
||||||
|
[Let's Encrypt](https://letsencrypt.org/docs/) is a global Certificate Authority, providing free SSL/TLS Domain Validation certificates in order to enable secure HTTPS access to your website. They have good browser/ OS [compatibility](https://letsencrypt.org/docs/certificate-compatibility/) with their ISRG X1 and DST CA X3 root certificates, support [Wildcard issuance](https://community.letsencrypt.org/t/acme-v2-production-environment-wildcards/55578) done via ACMEv2 using the DNS-01 and have [Multi-Perspective Validation](https://letsencrypt.org/2020/02/19/multi-perspective-validation.html). Let's Encrypt provide [CertBot](https://certbot.eff.org/) an easy app for generating and setting up an SSL certificate.
|
||||||
|
|
||||||
|
This process can be automated, using something like the [Docker-NGINX-Auto-SSL Container](https://github.com/Valian/docker-nginx-auto-ssl) to generate and renew certificates when needed.
|
||||||
|
|
||||||
|
If you're not so comfortable on the command line, then you can use a tool like [SSL For Free](https://www.sslforfree.com/) or [ZeroSSL](https://zerossl.com/) to generate your cert. They also provide step-by-step setup instructions for most platforms.
|
||||||
|
|
||||||
|
### Passing a Self-Signed Certificate to Dashy
|
||||||
|
|
||||||
|
Once you've generated your SSL cert, you'll need to pass it to Dashy. This can be done by specifying the paths to your public and private keys using the `SSL_PRIV_KEY_PATH` and `SSL_PUB_KEY_PATH` environmental variables. Or if you're using Docker, then just pass public + private SSL keys in under `/etc/ssl/certs/dashy-pub.pem` and `/etc/ssl/certs/dashy-priv.key` respectively, e.g:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker run -d \
|
||||||
|
-p 8080:8080 \
|
||||||
|
-v ~/my-private-key.key:/etc/ssl/certs/dashy-priv.key:ro \
|
||||||
|
-v ~/my-public-key.pem:/etc/ssl/certs/dashy-pub.pem:ro \
|
||||||
|
lissy93/dashy:latest
|
||||||
|
```
|
||||||
|
|
||||||
|
By default the SSL port is `443` within a Docker container, or `4001` if running on bare metal, but you can override this with the `SSL_PORT` environmental variable.
|
||||||
|
|
||||||
|
Once everything is setup, you can verify your site is secured using a tool like [SSL Checker](https://www.sslchecker.com/sslchecker).
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#management)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Authentication
|
||||||
|
|
||||||
|
Dashy natively supports secure authentication using KeyCloak. There is also a Simple Auth feature that doesn't require any additional setup. Usage instructions for both, as well as alternative auth methods, has now moved to the **[Authentication Docs](/docs/authentication.md)** page.
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#management)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Managing Containers with Docker Compose
|
||||||
|
|
||||||
|
When you have a lot of containers, it quickly becomes hard to manage with `docker run` commands. The solution to this is [docker compose](https://docs.docker.com/compose/), a handy tool for defining all a containers run settings in a single YAML file, and then spinning up that container with a single short command - `docker compose up`. A good example of which can be seen in [@abhilesh's docker compose collection](https://github.com/abhilesh/self-hosted_docker_setups).
|
||||||
|
|
||||||
|
You can use Dashy's default [`docker-compose.yml`](https://github.com/Lissy93/dashy/blob/master/docker-compose.yml) file as a template, and modify it according to your needs.
|
||||||
|
|
||||||
|
An example Docker compose, using the default base image from DockerHub, might look something like this:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
---
|
||||||
|
version: "3.8"
|
||||||
|
services:
|
||||||
|
dashy:
|
||||||
|
container_name: Dashy
|
||||||
|
image: lissy93/dashy
|
||||||
|
volumes:
|
||||||
|
- /root/my-config.yml:/app/user-data/conf.yml
|
||||||
|
ports:
|
||||||
|
- 4000:8080
|
||||||
|
environment:
|
||||||
|
- BASE_URL=/my-dashboard
|
||||||
|
restart: unless-stopped
|
||||||
|
healthcheck:
|
||||||
|
test: ['CMD', 'node', '/app/services/healthcheck']
|
||||||
|
interval: 1m30s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 3
|
||||||
|
start_period: 40s
|
||||||
|
```
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#management)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Passing in Environmental Variables
|
||||||
|
|
||||||
|
With Docker, you can define environmental variables under the `environment` section of your Docker compose file. Environmental variables are used to configure high-level settings, usually before the config file has been read. For a list of all supported env vars in Dashy, see [the developing docs](/docs/developing.md#environmental-variables), or the default [`.env`](https://github.com/Lissy93/dashy/blob/master/.env) file.
|
||||||
|
|
||||||
|
A common use case, is to run Dashy under a sub-page, instead of at the root of a URL (e.g. `https://my-homelab.local/dashy` instead of `https://dashy.my-homelab.local`). In this use-case, you'd specify the `BASE_URL` variable in your compose file.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
environment:
|
||||||
|
- BASE_URL=/dashy
|
||||||
|
```
|
||||||
|
|
||||||
|
You can also do the same thing with the docker run command, using the [`--env`](https://docs.docker.com/engine/reference/commandline/run/#set-environment-variables--e---env---env-file) flag.
|
||||||
|
If you've got many environmental variables, you might find it useful to put them in a [`.env` file](https://docs.docker.com/compose/env-file/). Similarly, for Docker run you can use [`--env-file`](https://docs.docker.com/engine/reference/commandline/run/#set-environment-variables--e---env---env-file) if you'd like to pass in a file containing all your environmental variables.
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#management)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Setting Headers
|
||||||
|
|
||||||
|
Any external requests made to a different origin (app/ service under a different domain) will be blocked if the correct headers are not specified. This is known as [Cross-Origin Resource Sharing](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) (CORS) and is a security feature built into modern browsers.
|
||||||
|
|
||||||
|
If you see a CORS error in your console, this can be easily fixed by setting the correct headers. This is not a bug with Dashy, so please don't raise it as a bug!
|
||||||
|
|
||||||
|
### Example Headers
|
||||||
|
|
||||||
|
- [Caddy](#caddy)
|
||||||
|
- [NGINX](#nginx)
|
||||||
|
- [Træfɪk](#traefik)
|
||||||
|
- [HAProxy](#haproxy)
|
||||||
|
- [Apache](#apache)
|
||||||
|
|
||||||
|
_The following section briefly outlines how you can set headers for common web proxies/ servers. More info can be found in the documentation for the proxy that you are using, or in the [MDN Docs](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS)._
|
||||||
|
|
||||||
|
These examples are using:
|
||||||
|
|
||||||
|
- `Access-Control-Allow-Origin` header, but depending on what type of content you are enabling, this will vary. For example, to allow a site to be loaded in an iframe (for the modal or workspace views) you would use `X-Frame-Options`.
|
||||||
|
- The domain root (`/`), if your're hosting from a sub-page, replace that with your path.
|
||||||
|
- A wildcard (`*`), which would allow access from traffic on any domain, this is discouraged, and you should replace it with the URL where you are hosting Dashy. Note that for requests that transport sensitive info, like credentials (e.g. Keycloak login), the wildcard is [disallowed all together](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#requests_with_credentials) and will be blocked.
|
||||||
|
|
||||||
|
#### Caddy
|
||||||
|
|
||||||
|
> See [Caddy `header` docs](https://caddyserver.com/docs/caddyfile/directives/header) for more info.
|
||||||
|
|
||||||
|
```text
|
||||||
|
headers / {
|
||||||
|
Access-Control-Allow-Origin *
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
#### NGINX
|
||||||
|
|
||||||
|
> See [NGINX `ngx_http_headers_module` docs](https://nginx.org/en/docs/http/ngx_http_headers_module.html) for more info.
|
||||||
|
|
||||||
|
```text
|
||||||
|
location / {
|
||||||
|
add_header Access-Control-Allow-Origin *;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Note this can also be done through the UI, using NGINX Proxy Manager.
|
||||||
|
|
||||||
|
#### Traefik
|
||||||
|
|
||||||
|
> See [Træfɪk CORS headers docs](https://doc.traefik.io/traefik/middlewares/http/headers/#cors-headers) for more info.
|
||||||
|
|
||||||
|
```text
|
||||||
|
labels:
|
||||||
|
- "traefik.http.middlewares.testheader.headers.accesscontrolallowmethods=GET,OPTIONS,PUT"
|
||||||
|
- "traefik.http.middlewares.testheader.headers.accesscontrolalloworiginlist=https://foo.bar.org,https://example.org"
|
||||||
|
- "traefik.http.middlewares.testheader.headers.accesscontrolmaxage=100"
|
||||||
|
- "traefik.http.middlewares.testheader.headers.addvaryheader=true"
|
||||||
|
```
|
||||||
|
|
||||||
|
#### HAProxy
|
||||||
|
|
||||||
|
> See [HAProxy Rewrite Response Docs](https://www.haproxy.com/documentation/hapee/latest/traffic-routing/rewrites/rewrite-responses/) for more info.
|
||||||
|
|
||||||
|
```text
|
||||||
|
/
|
||||||
|
http-response add-header Access-Control-Allow-Origin *
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Apache
|
||||||
|
|
||||||
|
> See [Apache `mode_headers` docs](https://httpd.apache.org/docs/current/mod/mod_headers.html) for more info.
|
||||||
|
|
||||||
|
```text
|
||||||
|
Header always set Access-Control-Allow-Origin "*"
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Squid
|
||||||
|
|
||||||
|
> See [Squid `request_header_access` docs](http://www2.gr.squid-cache.org/Doc/config/request_header_access/) for more info.
|
||||||
|
|
||||||
|
```text
|
||||||
|
request_header_access Authorization allow all
|
||||||
|
```
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#management)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Remote Access
|
||||||
|
|
||||||
|
- [WireGuard](#wireguard)
|
||||||
|
- [Reverse SSH Tunnel](#reverse-ssh-tunnel)
|
||||||
|
- [TCP Tunnel](#tcp-tunnel)
|
||||||
|
|
||||||
|
### WireGuard
|
||||||
|
|
||||||
|
Using a VPN is one of the easiest ways to provide secure, full access to your local network from remote locations. [WireGuard](https://www.wireguard.com/) is a reasonably new open source VPN protocol, that was designed with ease of use, performance and security in mind. Unlike OpenVPN, it doesn't need to recreate the tunnel whenever connection is dropped, and it's also much easier to setup, using shared keys instead.
|
||||||
|
|
||||||
|
- **Install Wireguard** - See the [Install Docs](https://www.wireguard.com/install/) for download links + instructions
|
||||||
|
- On Debian-based systems, it's `sudo apt install wireguard`
|
||||||
|
- **Generate a Private Key** - Run `wg genkey` on the Wireguard server, and copy it to somewhere safe for later
|
||||||
|
- **Create Server Config** - Open or create a file at `/etc/wireguard/wg0.conf` and under `[Interface]` add the following (see example below):
|
||||||
|
- `Address` - as a subnet of all desired IPs
|
||||||
|
- `PrivateKey` - that you just generated
|
||||||
|
- `ListenPort` - Default is `51820`, but can be anything
|
||||||
|
- **Get Client App** - Download the [WG client app](https://www.wireguard.com/install/) for your platform (Linux, Windows, MacOS, Android or iOS are all supported)
|
||||||
|
- **Create new Client Tunnel** - On your client app, there should be an option to create a new tunnel, when doing so a client private key will be generated (but if not, use the `wg genkey` command again), and keep it somewhere safe. A public key will also be generated, and this will go in our saver config
|
||||||
|
- **Add Clients to Server Config** - Head back to your `wg0.conf` file on the server, create a `[Peer]` section, and populate the following info
|
||||||
|
- `AllowedIPs` - List of IP address inside the subnet, the client should have access to
|
||||||
|
- `PublicKey` - The public key for the client you just generated
|
||||||
|
- **Start the Server** - You can now start the WG server, using: `wg-quick up wg0` on your server
|
||||||
|
- **Finish Client Setup** - Head back to your client device, and edit the config file, leave the private key as is, and add the following fields:
|
||||||
|
- `PublicKey` - The public key of the server
|
||||||
|
- `Address` - This should match the `AllowedIPs` section on the servers config file
|
||||||
|
- `DNS` - The DNS server that'll be used when accessing the network through the VPN
|
||||||
|
- `Endpoint` - The hostname or IP + Port where your WG server is running (you may need to forward this in your firewall's settings)
|
||||||
|
- **Done** - Your clients should now be able to connect to your WG server :) Depending on your networks firewall rules, you may need to port forward the address of your WG server
|
||||||
|
|
||||||
|
#### **Example Server Config**
|
||||||
|
|
||||||
|
```ini
|
||||||
|
# Server file
|
||||||
|
[Interface]
|
||||||
|
# Which networks does my interface belong to? Notice: /24 and /64
|
||||||
|
Address = 10.5.0.1/24, 2001:470:xxxx:xxxx::1/64
|
||||||
|
PrivateKey = xxx
|
||||||
|
ListenPort = 51820
|
||||||
|
|
||||||
|
# Peer 1
|
||||||
|
[Peer]
|
||||||
|
PublicKey = xxx
|
||||||
|
# Which source IPs can I expect from that peer? Notice: /32 and /128
|
||||||
|
AllowedIps = 10.5.0.35/32, 2001:470:xxxx:xxxx::746f:786f/128
|
||||||
|
|
||||||
|
# Peer 2
|
||||||
|
[Peer]
|
||||||
|
PublicKey = xxx
|
||||||
|
# Which source IPs can I expect from that peer? This one has a LAN which can
|
||||||
|
# access hosts/jails without NAT.
|
||||||
|
# Peer 2 has a single IP address inside the VPN: it's 10.5.0.25/32
|
||||||
|
AllowedIps = 10.5.0.25/32,10.21.10.0/24,10.21.20.0/24,10.21.30.0/24,10.31.0.0/24,2001:470:xxxx:xxxx::ca:571e/128
|
||||||
|
```
|
||||||
|
|
||||||
|
#### **Example Client Config**
|
||||||
|
|
||||||
|
```ini
|
||||||
|
[Interface]
|
||||||
|
# Which networks does my interface belong to? Notice: /24 and /64
|
||||||
|
Address = 10.5.0.35/24, 2001:470:xxxx:xxxx::746f:786f/64
|
||||||
|
PrivateKey = xxx
|
||||||
|
|
||||||
|
# Server
|
||||||
|
[Peer]
|
||||||
|
PublicKey = xxx
|
||||||
|
# I want to route everything through the server, both IPv4 and IPv6. All IPs are
|
||||||
|
# thus available through the Server, and I can expect packets from any IP to
|
||||||
|
# come from that peer.
|
||||||
|
AllowedIPs = 0.0.0.0/0, ::0/0
|
||||||
|
# Where is the server on the internet? This is a public address. The port
|
||||||
|
# (:51820) is the same as ListenPort in the [Interface] of the Server file above
|
||||||
|
Endpoint = 1.2.3.4:51820
|
||||||
|
# Usually, clients are behind NAT. to keep the connection running, keep alive.
|
||||||
|
PersistentKeepalive = 15
|
||||||
|
```
|
||||||
|
|
||||||
|
A useful tool for getting WG setup is [Algo](https://github.com/trailofbits/algo). It includes scripts and docs which cover almost all devices, platforms and clients, and has best practices implemented, and security features enabled. All of this is better explained in [this blog post](https://blog.trailofbits.com/2016/12/12/meet-algo-the-vpn-that-works/).
|
||||||
|
|
||||||
|
### Reverse SSH Tunnel
|
||||||
|
|
||||||
|
SSH (or [Secure Shell](https://en.wikipedia.org/wiki/Secure_Shell)) is a secure tunnel that allows you to connect to a remote host. Unlike the VPN methods, an SSH connection does not require an intermediary, and will not be affected by your IP changing. However it only allows you to access a single service at a time. SSH was really designed for terminal access, but because of the latter mentioned benefits it's useful to setup, as a fallback option.
|
||||||
|
|
||||||
|
Directly SSH'ing into your home, would require you to open a port (usually 22), which would be terrible for security, and is not recommended. However a reverse SSH connection is initiated from inside your network. Once the connection is established, the port is redirected, allowing you to use the established connection to SSH into your home network.
|
||||||
|
|
||||||
|
The issue you've probably spotted, is that most public, corporate, and institutional networks will block SSH connections. To overcome this, you'd have to establish a server outside of your homelab that your homelab's device could SSH into to establish the reverse SSH connection. You can then connect to that remote server (the _mothership_), which in turn connects to your home network.
|
||||||
|
|
||||||
|
Now all of this is starting to sound like quite a lot of work, but this is where services like [remot3.it](https://remote.it/) come in. They maintain the intermediary mothership server, and create the tunnel service for you. It's free for personal use, secure and easy. There are several similar services, such as [RemoteIoT](https://remoteiot.com/), or you could create your own on a cloud VPS (see [this tutorial](https://gist.github.com/nileshtrivedi/4c615e8d3c1bf053b0d31176b9e69e42) for more info on that).
|
||||||
|
|
||||||
|
Before getting started, you'll need to head over to [Remote.it](https://app.remote.it/auth/#/sign-up) and create an account.
|
||||||
|
|
||||||
|
Then setup your local device:
|
||||||
|
|
||||||
|
1. If you haven't already done so, you'll need to enable and configure SSH.
|
||||||
|
- This is out-of-scope of this article, but I've explained it in detail in [this post](https://notes.aliciasykes.com/22798/my-server-setup#configure-ssh).
|
||||||
|
2. Download the Remote.it install script from their [GitHub](https://github.com/remoteit/installer)
|
||||||
|
- `curl -LkO https://raw.githubusercontent.com/remoteit/installer/master/scripts/auto-install.sh`
|
||||||
|
3. Make it executable, with `chmod +x ./auto-install.sh`, and then run it with `sudo ./auto-install.sh`
|
||||||
|
4. Finally, configure your device, by running `sudo connectd_installer` and following the on-screen instructions
|
||||||
|
|
||||||
|
And when you're ready to connect to it:
|
||||||
|
|
||||||
|
1. Login to [app.remote.it](https://app.remote.it/), and select the name of your device
|
||||||
|
2. You should see a list of running services, click SSH
|
||||||
|
3. You'll then be presented with some SSH credentials that you can now use to securely connect to your home, via the Remote.it servers
|
||||||
|
|
||||||
|
Done :)
|
||||||
|
|
||||||
|
### TCP Tunnel
|
||||||
|
|
||||||
|
If you're running Dashy on your local network, behind a firewall, but need to temporarily share it with someone external, this can be achieved quickly and securely using [Ngrok](https://ngrok.com/). It's basically a super slick, encrypted TCP tunnel that provides an internet-accessible address that anyone use to access your local service, from anywhere.
|
||||||
|
|
||||||
|
To get started, [Download](https://ngrok.com/download) and install Ngrok for your system, then just run `ngrok http [port]` (replace the port with the http port where Dashy is running, e.g. 8080). When [using https](https://ngrok.com/docs#http-local-https), specify the full local url/ ip including the protocol.
|
||||||
|
|
||||||
|
Some Ngrok features require you to be authenticated, you can [create a free account](https://dashboard.ngrok.com/signup) and generate a token in [your dashboard](https://dashboard.ngrok.com/auth/your-authtoken), then run `ngrok authtoken [token]`.
|
||||||
|
|
||||||
|
It's recommended to use authentication for any publicly accessible service. Dashy has an [Auth](/docs/authentication.md) feature built in, but an even easier method it to use the [`-auth`](https://ngrok.com/docs#http-auth) switch. E.g. `ngrok http -auth="username:password123" 8080`
|
||||||
|
|
||||||
|
By default, your web app is assigned a randomly generated ngrok domain, but you can also use your own custom domain. Under the [Domains Tab](https://dashboard.ngrok.com/endpoints/domains) of your Ngrok dashboard, add your domain, and follow the CNAME instructions. You can now use your domain, with the [`-hostname`](https://ngrok.com/docs#http-custom-domains) switch, e.g. `ngrok http -region=us -hostname=dashy.example.com 8080`. If you don't have your own domain name, you can instead use a custom sub-domain (e.g. `alicia-dashy.ngrok.io`), using the [`-subdomain`](https://ngrok.com/docs#custom-subdomain-names) switch.
|
||||||
|
|
||||||
|
To integrate this into your docker-compose, take a look at the [gtriggiano/ngrok-tunnel](https://github.com/gtriggiano/ngrok-tunnel) container.
|
||||||
|
|
||||||
|
There's so much more you can do with Ngrok, such as exposing a directory as a file browser, using websockets, relaying requests, rewriting headers, inspecting traffic, TLS and TCP tunnels and lots more. All or which is explained in [the Documentation](https://ngrok.com/docs).
|
||||||
|
|
||||||
|
It's worth noting that Ngrok isn't the only option here, other options include: [FRP](https://github.com/fatedier/frp), [Inlets](https://inlets.dev), [Local Tunnel](https://localtunnel.me/), [TailScale](https://tailscale.com/), etc. Check out [Awesome Tunneling](https://github.com/anderspitman/awesome-tunneling) for a list of alternatives.
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#management)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Custom Domain
|
||||||
|
|
||||||
|
- [Using DNS](#using-nginx)
|
||||||
|
- [Using NGINX](#using-dns)
|
||||||
|
|
||||||
|
### Using DNS
|
||||||
|
|
||||||
|
For locally running services, a domain can be set up directly in the DNS records. This method is really quick and easy, and doesn't require you to purchase an actual domain. Just update your networks DNS resolver, to point your desired URL to the local IP where Dashy (or any other app) is running. For example, a line in your hosts file might look something like: `192.168.0.2 dashy.homelab.local`.
|
||||||
|
|
||||||
|
If you're using Pi-Hole, a similar thing can be done in the `/etc/dnsmasq.d/03-custom-dns.conf` file, add a line like: `address=/dashy.example.com/192.168.2.0` for each of your services.
|
||||||
|
|
||||||
|
If you're running OPNSense/ PfSense, then this can be done through the UI with Unbound, it's explained nicely in [this article](https://homenetworkguy.com/how-to/use-custom-domain-name-in-internal-network/), by Dustin Casto.
|
||||||
|
|
||||||
|
### Using NGINX
|
||||||
|
|
||||||
|
If you're using NGINX, then you can use your own domain name, with a config similar to the below example.
|
||||||
|
|
||||||
|
```text
|
||||||
|
upstream dashy {
|
||||||
|
server 127.0.0.1:32400;
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 8080;
|
||||||
|
server_name dashy.mydomain.com;
|
||||||
|
|
||||||
|
# Setup SSL
|
||||||
|
ssl_certificate /var/www/mydomain/sslcert.pem;
|
||||||
|
ssl_certificate_key /var/www/mydomain/sslkey.pem;
|
||||||
|
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
||||||
|
ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
|
||||||
|
ssl_session_timeout 5m;
|
||||||
|
ssl_prefer_server_ciphers on;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://dashy;
|
||||||
|
proxy_redirect off;
|
||||||
|
proxy_buffering off;
|
||||||
|
proxy_set_header host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Similarly, a basic `Caddyfile` might look like:
|
||||||
|
|
||||||
|
```text
|
||||||
|
dashy.example.com {
|
||||||
|
reverse_proxy / nginx:8080
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
For more info, [this guide](https://thehomelab.wiki/books/dns-reverse-proxy/page/create-domain-records-to-point-to-your-home-server-on-cloudflare-using-nginx-progy-manager) on Setting up Domains with NGINX Proxy Manager and CloudFlare may be useful.
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#management)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Container Security
|
||||||
|
|
||||||
|
- [Keep Docker Up-To-Date](#keep-docker-up-to-date)
|
||||||
|
- [Set Resource Quotas](#set-resource-quotas)
|
||||||
|
- [Don't Run as Root](#dont-run-as-root)
|
||||||
|
- [Specify a User](#specify-a-user)
|
||||||
|
- [Limit Capabilities](#limit-capabilities)
|
||||||
|
- [Prevent new Privileges being Added](#prevent-new-privileges-being-added)
|
||||||
|
- [Disable Inter-Container Communication](#disable-inter-container-communication)
|
||||||
|
- [Don't Expose the Docker Daemon Socket](#dont-expose-the-docker-daemon-socket)
|
||||||
|
- [Use Read-Only Volumes](#use-read-only-volumes)
|
||||||
|
- [Set the Logging Level](#set-the-logging-level)
|
||||||
|
- [Verify Image before Pulling](#verify-image-before-pulling)
|
||||||
|
- [Specify the Tag](#specify-the-tag)
|
||||||
|
- [Container Security Scanning](#container-security-scanning)
|
||||||
|
- [Registry Security](#registry-security)
|
||||||
|
- [Security Modules](#security-modules)
|
||||||
|
|
||||||
|
### Keep Docker Up-To-Date
|
||||||
|
|
||||||
|
To prevent known container escape vulnerabilities, which typically end in escalating to root/administrator privileges, patching Docker Engine and Docker Machine is crucial. For more info, see the [Docker Installation Docs](https://docs.docker.com/engine/install/).
|
||||||
|
|
||||||
|
### Set Resource Quotas
|
||||||
|
|
||||||
|
Docker enables you to limit resource consumption (CPU, memory, disk) on a per-container basis. This not only enhances system performance, but also prevents a compromised container from consuming a large amount of resources, in order to disrupt service or perform malicious activities. To learn more, see the [Resource Constraints Docs](https://docs.docker.com/config/containers/resource_constraints/)
|
||||||
|
|
||||||
|
For example, to run Dashy with max of 1GB ram, and max of 50% of 1 CP core:
|
||||||
|
`docker run -d -p 8080:8080 --cpus=".5" --memory="1024m" lissy93/dashy:latest`
|
||||||
|
|
||||||
|
### Don't Run as Root
|
||||||
|
|
||||||
|
Running a container with admin privileges gives it more power than it needs, and can be abused. Dashy does not need any root privileges, and Docker by default doesn't run containers as root, so providing you don't specifically type sudo, you should be all good here.
|
||||||
|
|
||||||
|
Note that if you're facing permission issues on Debian-based systems, you may need to add your user to the Docker group. First create the group: `sudo groupadd docker`, then add your (non-root) user: `sudo usermod −aG docker [my-username]`, finally `newgrp docker` to refresh.
|
||||||
|
|
||||||
|
### Specify a User
|
||||||
|
|
||||||
|
One of the best ways to prevent privilege escalation attacks, is to configure the container to use an unprivileged user. This also means that any files created by the container and mounted, will be owned by the specified user (and not root), which makes things much easier.
|
||||||
|
|
||||||
|
You can specify a user, using the [`--user` param](https://docs.docker.com/engine/reference/run/#user), and should include the user ID (`UID`), which can be found by running `id -u`, and the and the group ID (`GID`), using `id -g`.
|
||||||
|
|
||||||
|
With Docker run, you specify it like:
|
||||||
|
`docker run --user 1000:1000 -p 8080:8080 lissy93/dashy`
|
||||||
|
|
||||||
|
Of if you're using Docker-compose, you could use an environmental variable
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
version: "3.8"
|
||||||
|
services:
|
||||||
|
dashy:
|
||||||
|
image: lissy93/dashy
|
||||||
|
user: ${CURRENT_UID}
|
||||||
|
ports: [ 4000:8080 ]
|
||||||
|
```
|
||||||
|
|
||||||
|
And then to set the variable, and start the container, run: `CURRENT_UID=$(id -u):$(id -g) docker-compose up`
|
||||||
|
|
||||||
|
### Limit capabilities
|
||||||
|
|
||||||
|
Docker containers run with a subset of [Linux Kernal's Capabilities](https://man7.org/linux/man-pages/man7/capabilities.7.html) by default. It's good practice to drop privilege permissions that are not needed for any given container.
|
||||||
|
|
||||||
|
With Docker run, you can use the `--cap-drop` flag to remove capabilities, you can also use `--cap-drop=all` and then define just the required permissions using the `--cap-add` option. For a list of available capabilities, see the [Privilege Capabilities Docs](https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities).
|
||||||
|
|
||||||
|
Note that dropping privileges and capabilities on runtime is not fool-proof, and often any leftover privileges can be used to re-escalate, see [POS36-C](https://wiki.sei.cmu.edu/confluence/display/c/POS36-C.+Observe+correct+revocation+order+while+relinquishing+privileges).
|
||||||
|
|
||||||
|
Here's an example using docker-compose, removing privileges that are not required for Dashy to run:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
version: "3.8"
|
||||||
|
services:
|
||||||
|
dashy:
|
||||||
|
image: lissy93/dashy
|
||||||
|
ports: [ 4000:8080 ]
|
||||||
|
cap_drop:
|
||||||
|
- ALL
|
||||||
|
cap_add:
|
||||||
|
- CHOWN
|
||||||
|
- SETGID
|
||||||
|
- SETUID
|
||||||
|
- DAC_OVERRIDE
|
||||||
|
- NET_BIND_SERVICE
|
||||||
|
```
|
||||||
|
|
||||||
|
### Prevent new Privileges being Added
|
||||||
|
|
||||||
|
To prevent processes inside the container from getting additional privileges, pass in the `--security-opt=no-new-privileges:true` option to the Docker run command (see [docs](https://docs.docker.com/engine/reference/run/#security-configuration)).
|
||||||
|
|
||||||
|
Run Command:
|
||||||
|
`docker run --security-opt=no-new-privileges:true -p 8080:8080 lissy93/dashy`
|
||||||
|
|
||||||
|
Docker Compose
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
security_opt:
|
||||||
|
- no-new-privileges:true
|
||||||
|
```
|
||||||
|
|
||||||
|
### Disable Inter-Container Communication
|
||||||
|
|
||||||
|
By default Docker containers can talk to each other (using [`docker0` bridged network](https://docs.docker.com/config/containers/container-networking/)). If you don't need this capability, then it should be disabled. This can be done with the `--icc=false` in your run command. You can learn more about how to facilitate secure communication between containers in the [Compose Networking docs](https://docs.docker.com/compose/networking/).
|
||||||
|
|
||||||
|
### Don't Expose the Docker Daemon Socket
|
||||||
|
|
||||||
|
Docker socket `/var/run/docker.sock` is the UNIX socket that Docker is listening to. This is the primary entry point for the Docker API. The owner of this socket is root. Giving someone access to it is equivalent to giving unrestricted root access to your host.
|
||||||
|
|
||||||
|
You should **not** enable TCP Docker daemon socket (`-H tcp://0.0.0.0:XXX`), as doing so exposes un-encrypted and unauthenticated direct access to the Docker daemon, and if the host is connected to the internet, the daemon on your computer can be used by anyone from the public internet- which is bad. If you need TCP, you should [see the docs](https://docs.docker.com/engine/reference/commandline/dockerd/#daemon-socket-option) to understand how to do this more securely.
|
||||||
|
Similarly, never expose `/var/run/docker.sock` to other containers as a volume, as it can be exploited.
|
||||||
|
|
||||||
|
### Use Read-Only Volumes
|
||||||
|
|
||||||
|
You can specify that a specific volume should be read-only by appending `:ro` to the `-v` switch. For example, while running Dashy, if we want our config to be writable, but keep all other assets protected, we would do:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker run -d \
|
||||||
|
-p 8080:8080 \
|
||||||
|
-v ~/dashy-conf.yml:/app/user-data/conf.yml \
|
||||||
|
-v ~/dashy-icons:/app/public/item-icons:ro \
|
||||||
|
-v ~/dashy-theme.scss:/app/src/styles/user-defined-themes.scss:ro \
|
||||||
|
lissy93/dashy:latest
|
||||||
|
```
|
||||||
|
|
||||||
|
You can also prevent a container from writing any changes to volumes on your host's disk, using the `--read-only` flag. Although, for Dashy, you will not be able to write config changes to disk, when edited through the UI with this method. You could make this work, by specifying the config directory as a temp write location, with `--tmpfs /app/user-data/conf.yml` - but that this will not write the volume back to your host.
|
||||||
|
|
||||||
|
### Set the Logging Level
|
||||||
|
|
||||||
|
Logging is important, as it enables you to review events in the future, and in the case of a compromise this will let get an idea of what may have happened. The default log level is `INFO`, and this is also the recommendation, use `--log-level info` to ensure this is set.
|
||||||
|
|
||||||
|
### Verify Image before Pulling
|
||||||
|
|
||||||
|
Only use trusted images, from verified/ official sources. If an app is open source, it is more likely to be safe, as anyone can verify the code. There are also tools available for scanning containers,
|
||||||
|
|
||||||
|
Unless otherwise configured, containers can communicate among each other, so running one bad image may lead to other areas of your setup being compromised. Docker images typically contain both original code, as well as up-stream packages, and even if that image has come from a trusted source, the up-stream packages it includes may not have.
|
||||||
|
|
||||||
|
### Specify the Tag
|
||||||
|
|
||||||
|
Using fixed tags (as opposed to `:latest` ) will ensure immutability, meaning the base image will not change between builds. Note that for Dashy, the app is being actively developed, new features, bug fixes and general improvements are merged each week, and if you use a fixed version you will not enjoy these benefits. So it's up to you weather you would prefer a stable and reproducible environment, or the latest features and enhancements.
|
||||||
|
|
||||||
|
### Container Security Scanning
|
||||||
|
|
||||||
|
It's helpful to be aware of any potential security issues in any of the Docker images you are using. You can run a quick scan using Snyk on any image to output known vulnerabilities using [Docker scan](https://docs.docker.com/engine/scan/), e.g: `docker scan lissy93/dashy:latest`.
|
||||||
|
|
||||||
|
A similar product is [Trivy](https://github.com/aquasecurity/trivy), which is free an open source. First install it (with your package manager), then to scan an image, just run: `trivy image lissy93/dashy:latest`
|
||||||
|
|
||||||
|
For larger systems, RedHat [Clair](https://www.redhat.com/en/topics/containers/what-is-clair) is an app for parsing image contents and reporting on any found vulnerabilities. You run it locally in a container, and configure it with YAML. It can be integrated with Red Hat Quay, to show results on a dashboard. Most of these use static analysis to find potential issues, and scan included packages for any known security vulnerabilities.
|
||||||
|
|
||||||
|
### Registry Security
|
||||||
|
|
||||||
|
Although over-kill for most users, you could run your own registry locally which would give you ultimate control over all images, see the [Deploying a Registry Docs](https://docs.docker.com/registry/deploying/) for more info. Another option is [Docker Trusted Registry](https://docker-docs.netlify.app/ee/dtr/), it's great for enterprise applications, it sits behind your firewall, running on a swarm managed by Docker Universal Control Plane, and lets you securely store and manage your Docker images, mitigating the risk of breaches from the internet.
|
||||||
|
|
||||||
|
### Security Modules
|
||||||
|
|
||||||
|
Docker supports several modules that let you write your own security profiles.
|
||||||
|
|
||||||
|
[AppArmor](https://www.apparmor.net/)is a kernel module that proactively protects the operating system and applications from external or internal threats, by enabling you to restrict programs' capabilities with per-program profiles. You can specify either a security policy by name, or by file path with the `apparmor` flag in docker run. Learn more about writing profiles, [here](https://gitlab.com/apparmor/apparmor/-/wikis/QuickProfileLanguage).
|
||||||
|
|
||||||
|
[Seccomp](https://en.wikipedia.org/wiki/Seccomp) (Secure Computing Mode) is a sandboxing facility in the Linux kernel that acts like a firewall for system calls (syscalls). It uses Berkeley Packet Filter (BPF) rules to filter syscalls and control how they are handled. These filters can significantly limit a containers access to the Docker Host's Linux kernel - especially for simple containers/applications. It requires a Linux-based Docker host, with secomp enabled, and you can check for this by running `docker info | grep seccomp`. A great resource for learning more about this is [DockerLabs](https://training.play-with-docker.com/security-seccomp/).
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#management)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Web Server Configuration
|
||||||
|
|
||||||
|
> _The following section only applies if you are not using Docker, and would like to use your own web server_
|
||||||
|
|
||||||
|
Dashy ships with a pre-configured Node.js server, in [`server.js`](https://github.com/Lissy93/dashy/blob/master/server.js) which serves up the contents of the `./dist` directory on a given port. You can start the server by running `node server`. Note that the app must have been build (run `yarn build`), and you need [Node.js](https://nodejs.org) installed.
|
||||||
|
|
||||||
|
If you wish to run Dashy from a sub page (e.g. `example.com/dashy`), then just set the `BASE_URL` environmental variable to that page name (in this example, `/dashy`), before building the app, and the path to all assets will then resolve to the new path, instead of `./`.
|
||||||
|
|
||||||
|
However, since Dashy is just a static web application, it can be served with whatever server you like. The following section outlines how you can configure a web server.
|
||||||
|
|
||||||
|
Note, that if you choose not to use `server.js` to serve up the app, you will loose access to the following features:
|
||||||
|
|
||||||
|
- Loading page, while the app is building
|
||||||
|
- Writing config file to disk from the UI
|
||||||
|
- Website status indicators, and ping checks
|
||||||
|
|
||||||
|
Example Configs
|
||||||
|
|
||||||
|
- [NGINX](#nginx)
|
||||||
|
- [Apache](#apache)
|
||||||
|
- [Caddy](#caddy)
|
||||||
|
- [Firebase](#firebase-hosting)
|
||||||
|
- [cPanel](#cpanel)
|
||||||
|
|
||||||
|
### NGINX
|
||||||
|
|
||||||
|
Create a new file in `/etc/nginx/sites-enabled/dashy`
|
||||||
|
|
||||||
|
```text
|
||||||
|
server {
|
||||||
|
listen 8080;
|
||||||
|
listen [::]:8080;
|
||||||
|
|
||||||
|
root /var/www/dashy/html;
|
||||||
|
index index.html;
|
||||||
|
|
||||||
|
server_name your-domain.com www.your-domain.com;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
try_files $uri $uri/ =404;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
To use HTML5 history mode (`appConfig.routingMode: history`), replace the inside of the location block with: `try_files $uri $uri/ /index.html;`.
|
||||||
|
|
||||||
|
Then upload the build contents of Dashy's dist directory to that location.
|
||||||
|
For example: `scp -r ./dist/* [username]@[server_ip]:/var/www/dashy/html`
|
||||||
|
|
||||||
|
### Apache
|
||||||
|
|
||||||
|
Copy Dashy's dist folder to your apache server, `sudo cp -r ./dashy/dist /var/www/html/dashy`.
|
||||||
|
|
||||||
|
In your Apache config, `/etc/apche2/apache2.conf` add:
|
||||||
|
|
||||||
|
```text
|
||||||
|
<Directory /var/www/html>
|
||||||
|
Options Indexes FollowSymLinks
|
||||||
|
AllowOverride All
|
||||||
|
Require all granted
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
<IfModule mod_rewrite.c>
|
||||||
|
RewriteEngine On
|
||||||
|
RewriteBase /
|
||||||
|
RewriteRule ^index\.html$ - [L]
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
|
RewriteRule . /index.html [L]
|
||||||
|
</IfModule>
|
||||||
|
```
|
||||||
|
|
||||||
|
Add a `.htaccess` file within `/var/www/html/dashy/.htaccess`, and add:
|
||||||
|
|
||||||
|
```text
|
||||||
|
Options -MultiViews
|
||||||
|
RewriteEngine On
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
|
RewriteRule ^ index.html [QSA,L]
|
||||||
|
```
|
||||||
|
|
||||||
|
Then restart Apache, with `sudo systemctl restart apache2`
|
||||||
|
|
||||||
|
### Caddy
|
||||||
|
|
||||||
|
Caddy v2
|
||||||
|
|
||||||
|
```text
|
||||||
|
try_files {path} /
|
||||||
|
```
|
||||||
|
|
||||||
|
Caddy v1
|
||||||
|
|
||||||
|
```text
|
||||||
|
rewrite {
|
||||||
|
regexp .*
|
||||||
|
to {path} /
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Firebase Hosting
|
||||||
|
|
||||||
|
Create a file names `firebase.json`, and populate it with something similar to:
|
||||||
|
|
||||||
|
```text
|
||||||
|
{
|
||||||
|
"hosting": {
|
||||||
|
"public": "dist",
|
||||||
|
"rewrites": [
|
||||||
|
{
|
||||||
|
"source": "**",
|
||||||
|
"destination": "/index.html"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### cPanel
|
||||||
|
|
||||||
|
1. Login to your WHM
|
||||||
|
2. Open 'Feature Manager' on the left sidebar
|
||||||
|
3. Under 'Manage feature list', click 'Edit'
|
||||||
|
4. Find 'Application manager' in the list, enable it and hit 'Save'
|
||||||
|
5. Log into your users cPanel account, and under 'Software' find 'Application Manager'
|
||||||
|
6. Click 'Register Application', fill in the form using the path that Dashy is located, and choose a domain, and hit 'Save'
|
||||||
|
7. The application should now show up in the list, click 'Ensure dependencies', and move the toggle switch to 'Enabled'
|
||||||
|
8. If you need to change the port, click 'Add environmental variable', give it the name 'PORT', choose a port number and press 'Save'.
|
||||||
|
9. Dashy should now be running at your selected path an on a given port
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#management)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Running a Modified Version of the App
|
||||||
|
|
||||||
|
If you'd like to make any code changes to the app, and deploy your modified version, this section briefly explains how.
|
||||||
|
|
||||||
|
The first step is to fork the project on GitHub, and clone it to your local system. Next, install the dependencies (`yarn`), and start the development server (`yarn dev`) and visit `localhost:8080` in your browser. You can then make changes to the codebase, and see the live app update in real-time. Once you've finished, running `yarn build` will build the app for production, and output the assets into `./dist` which can then be deployed using a web server, CDN or the built-in Node server with `yarn start`. For more info on all of this, take a look at the [Developing Docs](/docs/developing.md). To build your own Docker container from the modified app, see [Building your Own Container](#building-your-own-container)
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#management)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Building your Own Container
|
||||||
|
|
||||||
|
Similar to above, you'll first need to fork and clone Dashy to your local system, and then install dependencies.
|
||||||
|
|
||||||
|
Then, either use Dashy's default [`Dockerfile`](https://github.com/Lissy93/dashy/blob/master/Dockerfile) as is, or modify it according to your needs.
|
||||||
|
|
||||||
|
To build and deploy locally, first build the app with: `docker build -t dashy .`, and then start the app with `docker run -p 8080:8080 --name my-dashboard dashy`. Or modify the `docker-compose.yml` file, replacing `image: lissy93/dashy` with `build: .` and run `docker compose up`.
|
||||||
|
|
||||||
|
Your container should now be running, and will appear in the list when you run `docker container ls –a`. If you'd like to enter the container, run `docker exec -it [container-id] /bin/ash`.
|
||||||
|
|
||||||
|
You may wish to upload your image to a container registry for easier access. Note that if you choose to do this on a public registry, please name your container something other than just 'dashy', to avoid confusion with the official image.
|
||||||
|
You can push your build image, by running: `docker push ghcr.io/OWNER/IMAGE_NAME:latest`. You will first need to authenticate, this can be done by running `echo $CR_PAT | docker login ghcr.io -u USERNAME --password-stdin`, where `CR_PAT` is an environmental variable containing a token generated from your GitHub account. For more info, see the [Container Registry Docs](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry).
|
||||||
|
|
||||||
|
**[⬆️ Back to Top](#management)**
|
||||||
|
|
||||||
|
---
|
|
@ -0,0 +1,179 @@
|
||||||
|
# Internationalization
|
||||||
|
|
||||||
|
Internationalization is the process of making an application available in other languages. This is important, as not everyone is a native English speaker. This page explains how you can switch languages, how to add a new language, and how to make text translatable when writing a new component.
|
||||||
|
|
||||||
|
- [Setting your Language](#setting-language)
|
||||||
|
- [Adding a new Language](#adding-a-new-language)
|
||||||
|
- [Adding New Text to a Component](#adding-new-text-to-a-component)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Setting Language
|
||||||
|
|
||||||
|
By default, Dashy will attempt to use the language of your browser or system. If a translation for your language does not yet exist, it will fallback to English.
|
||||||
|
|
||||||
|
### In the UI
|
||||||
|
|
||||||
|
You can manually select your language in the UI. Under the Config Menu, click the Language button, and select your language from the dropdown menu. Your preference will be saved in local storage.
|
||||||
|
|
||||||
|
### Config File
|
||||||
|
|
||||||
|
You can also set your language in the config file. Specify the ISO code of one of the supported languages, under `appConfig.lang`. For example:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
appConfig:
|
||||||
|
language: de
|
||||||
|
```
|
||||||
|
|
||||||
|
### Available Languages
|
||||||
|
|
||||||
|
At the time of writing the following languages are supported: `en`, `zh-CN`, `nl`, `fr`, `de`, `es`, `sl`, `it`, `pt`, `ru`, `ar`, `hi`, `ja`, but an up-to-date list of all implemented translations can be found in [`./src/utils/languages.js`](https://github.com/Lissy93/dashy/blob/master/src/utils/languages.js). Languages are specified by their 2-digit [ISO-639 code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes), or sometimes a 4-digit code if it's a regional dialect.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Adding a new Language
|
||||||
|
|
||||||
|
Dashy is using [vue-i18n](https://vue-i18n.intlify.dev/guide/) to manage multi-language support.
|
||||||
|
|
||||||
|
Adding a new language is pretty straightforward, with just three steps:
|
||||||
|
|
||||||
|
### 1. Create a new Language File
|
||||||
|
|
||||||
|
Create a new JSON file in `./src/assets/locales` for your language.
|
||||||
|
|
||||||
|
You should name it with the 2-digit [ISO-639 code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) for your locale (e.g. for German `de.json`, French `fr.json` or Spanish `es.json`) - You can find a list of all ISO codes at [iso.org](https://www.iso.org/obp/ui).
|
||||||
|
If your language is a specific dialect or regional translation, then use the Posfix [CLDR](http://cldr.unicode.org/) format, where, e.g. `en-GB.json` (British English), `es-MX.json` (Spanish, in Mexico) or `zh-CN.json` (Chinese, simplified) - A list of which can be found [here](https://github.com/unicode-org/cldr-json/blob/master/cldr-json/cldr-core/availableLocales.json)
|
||||||
|
|
||||||
|
### 2. Translate
|
||||||
|
|
||||||
|
Using [`en.json`](https://github.com/Lissy93/dashy/tree/master/src/assets/locales/en.json) as an example, translate the JSON values to your language, while leaving the keys as they are. It's fine to leave out certain items, as if they're missing they will fall-back to English. If you see any attribute which include curly braces (`{xxx}`), then leave the inner value of these braces as is, as this is for variables.
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"theme-maker": {
|
||||||
|
"export-button": "Benutzerdefinierte Variablen exportieren",
|
||||||
|
"reset-button": "Stile zurücksetzen für",
|
||||||
|
"show-all-button": "Alle Variablen anzeigen",
|
||||||
|
"save-button": "Speichern",
|
||||||
|
"cancel-button": "Abbrechen",
|
||||||
|
"saved-toast": "{theme} Erfolgreich aktualisiert",
|
||||||
|
"reset-toast": "Benutzerdefinierte Farben für {theme} entfernt"
|
||||||
|
},
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### 3. Add your file to the app
|
||||||
|
|
||||||
|
In [`./src/utils/languages.js`](https://github.com/Lissy93/dashy/tree/master/src/utils/languages.js), you need to do 2 small things:
|
||||||
|
|
||||||
|
First import your new translation file, do this at the top of the page.
|
||||||
|
E.g. `import de from '@/assets/locales/de.json';`
|
||||||
|
|
||||||
|
Second, add it to the array of languages, e.g:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
export const languages = [
|
||||||
|
{
|
||||||
|
name: 'English',
|
||||||
|
code: 'en',
|
||||||
|
locale: en,
|
||||||
|
flag: '🇬🇧',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'German', // The name of your language
|
||||||
|
code: 'de', // The ISO code of your language
|
||||||
|
locale: de, // The name of the file you imported (no quotes)
|
||||||
|
flag: '🇩🇪', // An optional flag emoji
|
||||||
|
},
|
||||||
|
];
|
||||||
|
```
|
||||||
|
|
||||||
|
You can also add your new language to the readme, under the [Language Switching](https://github.com/Lissy93/dashy#language-switching-) section and optionally include your name/ username if you'd like to be credited for your work. Done!
|
||||||
|
|
||||||
|
If you are not comfortable with making pull requests, or do not want to modify the code, then feel free to instead send the translated file to me, and I can add it into the application. I will be sure to credit you appropriately.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Adding New Text to a Component
|
||||||
|
|
||||||
|
If you're working on a new component, then any text that is displayed to the user should be extracted out of the component, and stored in the file. This also applies to any existing components, that might have been forgotten to be translated. Thankfully, everything is already setup, so this is a pretty easy job.
|
||||||
|
|
||||||
|
### 1. Add Translated Text
|
||||||
|
|
||||||
|
Firstly, go to [`./src/assets/locales/en.json`](https://github.com/Lissy93/dashy/blob/master/src/assets/locales/en.json), and either find the appropriate section, or create a new section. Lets say you're new component is called `my-widget`, you could add `"my-widget": {}` to store all your text as key-value-pairs. E.g.
|
||||||
|
|
||||||
|
```json
|
||||||
|
"my-widget": {
|
||||||
|
"awesome-text": "I am some text, that will be seen by the user"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Note that you **must** add English translations for all text. Missing languages are not a problem, as they will always fallback to English, but if the English is missing, then nothing can be displayed.
|
||||||
|
|
||||||
|
### 2. Use Text within Component
|
||||||
|
|
||||||
|
Once your text is in the translation file, you can now use it within your component. There is a global `$t` function, with takes the key of your new translation, and returns the value. For example:
|
||||||
|
|
||||||
|
```vue
|
||||||
|
<p>{{ $t('my-widget.awesome-text') }}</p>
|
||||||
|
```
|
||||||
|
|
||||||
|
Note that the `{{ }}` just tells Vue that this is JavaScript/ dynamic.
|
||||||
|
This will render: `<p>I am some text, that will be seen by the user</p>`
|
||||||
|
|
||||||
|
If you need to display text programmatically, from within the components JavaScript (e.g. in a toast popup), then use `this.$t`.
|
||||||
|
For example: `alert(this.$t('my-widget.awesome-text'))`.
|
||||||
|
|
||||||
|
You may also need to pass a variable to be displayed within a translation. Vue I18n supports [Interpolations](https://vue-i18n.intlify.dev/guide/essentials/syntax.html#interpolations) using mustache-like syntax.
|
||||||
|
|
||||||
|
For example, you would set your translation to:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"welcome-message": "Hello {name}!"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
And then pass that variable (`name`) within a JSON object as the second parameter on `$t`, like:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
$t('welcome-message', { name: 'Alicia' })
|
||||||
|
```
|
||||||
|
|
||||||
|
Which will render:
|
||||||
|
|
||||||
|
```text
|
||||||
|
Hello Alicia!
|
||||||
|
```
|
||||||
|
|
||||||
|
There are many other advanced features, including Pluralization, Datetime & Number Formatting, Message Support and more, all of which are outlined in the [Vue-i18n Docs](https://vue-i18n.intlify.dev/guide/).
|
||||||
|
|
||||||
|
### Basic Example
|
||||||
|
|
||||||
|
Using the search bar as an example, this would look something like:
|
||||||
|
|
||||||
|
In [`./src/components/Settings/SearchBar.vue`](https://github.com/Lissy93/dashy/blob/master/src/components/Settings/SearchBar.vue):
|
||||||
|
|
||||||
|
```vue
|
||||||
|
<template>
|
||||||
|
<form>
|
||||||
|
<label for="search-input">{{ $t('search.search-label') }}</label>
|
||||||
|
<input
|
||||||
|
v-model="searchValue"
|
||||||
|
:placeholder="$t('search.search-placeholder')"
|
||||||
|
/>
|
||||||
|
</form>
|
||||||
|
</template>
|
||||||
|
```
|
||||||
|
|
||||||
|
Then in [`./src/assets/locales/en.json`](https://github.com/Lissy93/dashy/blob/master/src/assets/locales/en.json):
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"search": {
|
||||||
|
"search-label": "Search",
|
||||||
|
"search-placeholder": "Start typing to filter",
|
||||||
|
},
|
||||||
|
...
|
||||||
|
}
|
||||||
|
```
|
|
@ -0,0 +1,107 @@
|
||||||
|
# Pages and Sections
|
||||||
|
|
||||||
|
## Multi-Page Support
|
||||||
|
|
||||||
|
You can have additional pages within your dashboard, with each having it's own config file. The config files for sub-pages can either be stored locally, or hosted separately. A link to each additional page will be displayed in the navigation bar.
|
||||||
|
|
||||||
|
You can edit additional pages using the interactive editor, exactly the same was as your primary page (so long as it's local). But please save changes to one page, before you start editing the next.
|
||||||
|
|
||||||
|
### Using Local Sub-Pages
|
||||||
|
|
||||||
|
To get started, create a new `.yml` config file for your sub-page, placing it within `/app/user-data`. Then within your primary `conf.yml`, choose a name, and specify the path to the new file.
|
||||||
|
|
||||||
|
This is an example. Make sure to add this to the topmost line above appConfig:, or anywhere else appropriately, to match the yml syntax.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
pages:
|
||||||
|
- name: Networking Services
|
||||||
|
path: 'networking.yml'
|
||||||
|
- name: Work Stuff
|
||||||
|
path: 'work.yml'
|
||||||
|
```
|
||||||
|
|
||||||
|
The next step is to create the new page, if you mounted `/app/user-data` in the docker command and not a volume, you can simply create the new page into that folder on the host.
|
||||||
|
|
||||||
|
If you mounted `/app/user-data/conf.yml` in docker, you can either switch to the volume or create another bind mount to your new additional page.
|
||||||
|
|
||||||
|
If you're sub-page is located within `/app/user-data`, then you only need to specify the filename, but if it's anywhere else, then the full path is required.
|
||||||
|
|
||||||
|
A default template a page can be found here: [https://github.com/lissy93/dashy/blob/master/user-data/conf.yml](https://github.com/lissy93/dashy/blob/master/user-data/conf.yml) Keep in mind the appConfig cannot be used on subpages and should be removed, for further info see [Restrictions](#restrictions)
|
||||||
|
|
||||||
|
The last very important step is to rebuild dashy, this can be easily done through to UI, by opening the settings menu on the top right, navigato to update config and then recompile application.
|
||||||
|
|
||||||
|
Now if you reload the page, on the top right there should be a new button to navigate to the new page. 🎉
|
||||||
|
|
||||||
|
### Using Remote Sub-Pages
|
||||||
|
|
||||||
|
Config files don't need to be local, you can store them anywhere, and data will be imported as sub-pages on page load.
|
||||||
|
|
||||||
|
For example:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
pages:
|
||||||
|
- name: Getting Started
|
||||||
|
path: 'https://snippet.host/tvcw/raw'
|
||||||
|
- name: Homelab
|
||||||
|
path: 'https://snippet.host/tetp/raw'
|
||||||
|
- name: Browser Startpage
|
||||||
|
path: 'https://snippet.host/zcom/raw'
|
||||||
|
```
|
||||||
|
|
||||||
|
There are many options of how this can be used. You could store your config within a Git repository, in order to easily track and rollback changes. Or host your config on your NAS, to have it backed up with the rest of your files. Or use a hosted paste service, for example [snippet.host](https://snippet.host/), which supports never-expiring CORS-enabled pastes, which can also be edited later.
|
||||||
|
|
||||||
|
You will obviously not be able to write updates to remote configs directly through the UI editor, but you can still make and preview changes, then use the export menu to get a copy of the new config, which can then be pasted to the remote source manually.
|
||||||
|
The config file must, of course be accessible from within Dashy. If your config contains sensitive info (like API keys, credentials, secret URLs, etc), take care not to expose it to the internet.
|
||||||
|
|
||||||
|
The following example shows creating a config, publishing it as a [Gist](https://gist.github.com/), copying the URL to the raw file, and using it within your dashboard.
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img width="700" alt="Public config in a gist demo"
|
||||||
|
src="https://i.ibb.co/55jm3LG/how-to-use-remote-config-sub-page.gif"
|
||||||
|
/>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
### Restrictions
|
||||||
|
|
||||||
|
Only top-level fields supported by sub-pages are `pageInfo` and `sections`. The `appConfig` and `pages` will always be inherited from your main `conf.yml` file. Other than that, sub-pages behave exactly the same as your default view, and can contain sections, items, widgets and page info like nav links, title and logo.
|
||||||
|
|
||||||
|
Note that since page paths are required by the router, they are set at build-time, not run-time, and so a rebuild (happens automatically) is required for changes to page paths to take effect (this only applies to changes to the `pages` array, rebuild isn't required for editing page content).
|
||||||
|
|
||||||
|
## Sub-Items
|
||||||
|
|
||||||
|
A normal section will contain zero or more items, for example:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- name: Coding
|
||||||
|
icon: far fa-code
|
||||||
|
items:
|
||||||
|
- title: GitHub
|
||||||
|
url: https://github.com/
|
||||||
|
- title: StackOverflow
|
||||||
|
url: http://stackoverflow.com/
|
||||||
|
```
|
||||||
|
|
||||||
|
But items can also be grouped together, referred to as sub-items. This is useful for a group of less frequently used items, which you don't want to take up too much space.
|
||||||
|
|
||||||
|
Item groups may also have an optional title.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- name: Coding
|
||||||
|
icon: far fa-code
|
||||||
|
items:
|
||||||
|
- title: Normal Item 1
|
||||||
|
- title: Normal Item 2
|
||||||
|
- subItems:
|
||||||
|
- title: JavaScript
|
||||||
|
url: https://developer.mozilla.org
|
||||||
|
icon: si-javascript
|
||||||
|
- title: TypeScript
|
||||||
|
url: https://www.typescriptlang.org/docs
|
||||||
|
icon: si-typescript
|
||||||
|
- title: Svelt
|
||||||
|
url: https://svelte.dev/docs
|
||||||
|
icon: si-svelte
|
||||||
|
- title: Go
|
||||||
|
url: https://go.dev/doc
|
||||||
|
icon: si-go
|
||||||
|
```
|
|
@ -0,0 +1,296 @@
|
||||||
|
# Privacy & Security
|
||||||
|
|
||||||
|
Dashy was built with privacy in mind.
|
||||||
|
Self-hosting your own apps and services is a great way to protect yourself from the mass data collection employed by big tech companies, and Dashy was designed to make self-hosting easier, by keeping your local services organized and accessible from a single place. The [management docs](https://github.com/Lissy93/dashy/blob/master/docs/management.md) contains a though guide on the steps you can take to secure your homelab.
|
||||||
|
|
||||||
|
Dashy operates on the premise, that no external data requests should ever be made, unless explicitly enabled by the user. In the interest of transparency, the code is 100% open source and clearly documented throughout.
|
||||||
|
|
||||||
|
| 🔐 For privacy and security tips, check out another project of mine: **[Personal Security Checklist](https://github.com/Lissy93/personal-security-checklist)** |
|
||||||
|
|-|
|
||||||
|
|
||||||
|
## Contents
|
||||||
|
|
||||||
|
- [External Requests](#external-requests)
|
||||||
|
- [Icons](#icons)
|
||||||
|
- [Themes](#themes)
|
||||||
|
- [Widgets](#widgets)
|
||||||
|
- [Features](#features)
|
||||||
|
- [Status Checking](#status-checking)
|
||||||
|
- [Update Checks](#update-checks)
|
||||||
|
- [Cloud Backup](#cloud-backup)
|
||||||
|
- [Web Search](#web-search)
|
||||||
|
- [Error Reporting](#anonymous-error-reporting)
|
||||||
|
- [Browser Storage](#browser-storage)
|
||||||
|
- [App Dependencies](#dependencies)
|
||||||
|
- [Security Features](#security-features)
|
||||||
|
- [Securing your Environment](#securing-your-environment)
|
||||||
|
- [Reporting a Security Issue](#reporting-a-security-issue)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## External Requests
|
||||||
|
|
||||||
|
By default, Dashy will not make any external requests, unless you configure it to. Some features (which are off by default) do require internat access, and this section outlines those features, the services used, and links to their privacy policies.
|
||||||
|
|
||||||
|
The following section outlines all network requests that are made when certain features are enabled.
|
||||||
|
|
||||||
|
### Icons
|
||||||
|
|
||||||
|
#### Font Awesome
|
||||||
|
|
||||||
|
If either any of your sections, items or themes are using icons from font-awesome, then it will be automatically enabled. But you can also manually enable or disable it by setting `appConfig.enableFontAwesome` to `true` / `false`. Requests are made directly to Font-Awesome CDN, for more info, see the [Font Awesome Privacy Policy](https://fontawesome.com/privacy).
|
||||||
|
|
||||||
|
#### Material Design Icons
|
||||||
|
|
||||||
|
If either any of your sections, items or themes are mdi icons, then it will be automatically enabled. But you can also manually enable or disable it by setting `appConfig.enableMaterialDesignIcons` to `true` / `false`. Requests are made directly to Material-Design-Icons CDN, for more info, see the [Material Design Icons Website](https://materialdesignicons.com/).
|
||||||
|
|
||||||
|
#### Favicon Fetching
|
||||||
|
|
||||||
|
If an item's icon is set to `favicon`, then it will be auto-fetched from the corresponding URL. Since not all websites have their icon located at `/favicon.ico`, and if they do, it's often very low resolution (like `16 x 16 px`). Therefore, the default behavior is for Dashy to check if the URL is public, and if so will use an API to fetch the favicon. For self-hosted services, the favicon will be fetched from the default path, and no external requests will be made.
|
||||||
|
|
||||||
|
The default favicon API is [allesedv.com](https://favicon.allesedv.com/), but this can be changed by setting `appConfig.faviconApi` to an alternate source (`iconhorse`, `clearbit`, `faviconkit`, `besticon`, `duckduckgo`, `google` and `allesedv` are supported). If you do not want to use any API, then you can set this property to `local`, and the favicon will be fetched from the default path. For hosted services, this will still incur an external request.
|
||||||
|
|
||||||
|
#### Generative Icons
|
||||||
|
|
||||||
|
If an item has the icon set to `generative`, then an external request it made to [Dice Bear](https://dicebear.com/) to fetch the uniquely generated icon. The URL of a given service is used as the key for generating the icon, but it is first hashed and encoded for basic privacy. For more info, please reference the [Dicebear Privacy Policy](https://avatars.dicebear.com/legal/privacy-policy)
|
||||||
|
|
||||||
|
As a fallback, if Dicebear fails, then [Evatar](https://evatar.io/) is used.
|
||||||
|
|
||||||
|
#### Other Icons
|
||||||
|
|
||||||
|
Section icons, item icons and app icons are able to accept a URL to a raw image, if the image is hosted online then an external request will be made. To avoid the need to make external requests for icon assets, you can either use a self-hosted CDN, or store your images within `./public/item-icons` (which can be mounted as a volume if you're using Docker).
|
||||||
|
|
||||||
|
#### Web Assets
|
||||||
|
|
||||||
|
By default, all assets required by Dashy come bundled within the source, and so no external requests are made. If you add an additional font, which is imported from a CDN, then that will incur an external request. The same applies for other web assets, like external images, scripts or styles.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
#### Status Checking
|
||||||
|
|
||||||
|
The status checking feature allows you to ping your apps/ services to check if they are currently operational.
|
||||||
|
|
||||||
|
Dashy will ping your services directly, and does not rely on any third party. If you are checking the uptime status of a public/ hosted application, then please refer to that services privacy policy. For all self-hosted services, requests happen locally within your network, and are not external.
|
||||||
|
|
||||||
|
#### Update Checks
|
||||||
|
|
||||||
|
When the application loads, it checks for updates. The results of which are displayed in the config menu of the UI. This was implemented because using a very outdated version of Dashy may have unfixed issues. Your version is fetched from the source (local request), but the latest version is fetched from GitHub, which is an external request. This can be disabled by setting `appConfig.disableUpdateChecks: true`
|
||||||
|
|
||||||
|
#### Cloud Backup
|
||||||
|
|
||||||
|
Dashy has an optional End-to-End encrypted [cloud backup feature](https://github.com/Lissy93/dashy/blob/master/docs/backup-restore.md). No data is ever transmitted unless you actively enable this feature through the UI.
|
||||||
|
|
||||||
|
All data is encrypted before being sent to the backend. This is done in [`CloudBackup.js`](https://github.com/Lissy93/dashy/blob/master/src/utils/CloudBackup.js), using [crypto.js](https://github.com/brix/crypto-js)'s AES method, using the users chosen password as the key. The data is then sent to a [Cloudflare worker](https://developers.cloudflare.com/workers/learning/how-workers-works) (a platform for running serverless functions), and stored in a [KV](https://developers.cloudflare.com/workers/learning/how-kv-works) data store.
|
||||||
|
|
||||||
|
Your selected password never leaves your device, and is hashed before being compared. It is only possible to restore a configuration if you have both the backup ID and decryption password. Because the data is encrypted on the client-side (before being sent to the cloud), it is not possible for a man-in-the-middle, government entity, website owner, or even Cloudflare to be able read any of your data.
|
||||||
|
|
||||||
|
#### Web Search
|
||||||
|
|
||||||
|
Dashy has a primitive [web search feature](https://github.com/Lissy93/dashy/blob/master/docs/searching.md#web-search). No external requests are made, instead you are redirected to your chosen search engine (defaults to DuckDuckGo), using your chosen opening method.
|
||||||
|
|
||||||
|
This feature can be disabled under appConfig, with `webSearch: { disableWebSearch: true }`
|
||||||
|
|
||||||
|
#### Anonymous Error Reporting
|
||||||
|
|
||||||
|
Error reporting is disabled by default, and no data will ever be sent without your explicit consent. In fact, the error tracking code isn't even imported unless you have actively enabled it. [Sentry](https://github.com/getsentry/sentry) is used for this, it's an open source error tracking and performance monitoring tool, used to identify any issues which occur in the production app (if you enable it).
|
||||||
|
|
||||||
|
The crash report includes the file or line of code that triggered the error, and a 2-layer deep stack trace. Reoccurring errors will also include the following user information: OS type (Mac, Windows, Linux, Android or iOS) and browser type (Firefox, Chrome, IE, Safari). Data scrubbing is enabled. IP address will not be stored. If any potentially identifiable data ever finds its way into a crash report, it will be automatically and permanently erased. All statistics collected are anonymized and stored securely, and ae automatically deleted after 14 days. For more about privacy and security, see the [Sentry Docs](https://sentry.io/security/).
|
||||||
|
|
||||||
|
Enabling anonymous error reporting helps me to discover bugs I was unaware of, and then fix them, in order to make Dashy more reliable long term. Error reporting is activated by setting `appConfig.enableErrorReporting: true`.
|
||||||
|
|
||||||
|
If you need to monitor bugs yourself, then you can [self-host your own Sentry Server](https://develop.sentry.dev/self-hosted/), and use it by setting `appConfig.sentryDsn` to your Sentry instances [Data Source Name](https://docs.sentry.io/product/sentry-basics/dsn-explainer/), then just enable error reporting in Dashy.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Themes
|
||||||
|
|
||||||
|
Certain themes may use external assets (such as fonts or images). Currently, this only applies the Adventure theme.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Widgets
|
||||||
|
|
||||||
|
Dashy supports [Widgets](/docs/widgets.md) for displaying dynamic content. Below is a list of all widgets that make external data requests, along with the endpoint they call and a link to the Privacy Policy of that service.
|
||||||
|
|
||||||
|
- **[Weather](/docs/widgets.md#weather)** and **[Weather Forecast](/docs/widgets.md#weather-forecast)**: `https://api.openweathermap.org`
|
||||||
|
- [OWM Privacy Policy](https://openweather.co.uk/privacy-policy)
|
||||||
|
- **[RSS Feed](/docs/widgets.md#rss-feed)**: `https://api.rss2json.com/v1/api.json`
|
||||||
|
- [Rss2Json Privacy Policy](https://rss2json.com/privacy-policy)
|
||||||
|
- **[IP Address](/docs/widgets.md#public-ip)**: `https://ipapi.co/json` or `http://ip-api.com/json` or `https://api.ip2location.io/`
|
||||||
|
- [IPGeoLocation Privacy Policy](https://ipgeolocation.io/privacy.html)
|
||||||
|
- [IP-API Privacy Policy](https://ip-api.com/docs/legal)
|
||||||
|
- [IP2Location.io Privacy Policy](https://ip2location.io/privacy-policy)
|
||||||
|
- **[IP Blacklist](/docs/widgets.md#ip-blacklist)**: `https://api.blacklistchecker.com`
|
||||||
|
- [Blacklist Checker Privacy Policy](https://blacklistchecker.com/privacy)
|
||||||
|
- **[Domain Monitor](/docs/widgets.md#domain-monitor)**: `http://api.whoapi.com`
|
||||||
|
- [WhoAPI Privacy Policy](https://whoapi.com/privacy-policy/)
|
||||||
|
- **[Crypto Watch List](/docs/widgets.md#crypto-watch-list)** and **[Token Price History](/docs/widgets.md#crypto-token-price-history)**: `https://api.coingecko.com`
|
||||||
|
- [CoinGecko Privacy Policy](https://www.coingecko.com/en/privacy)
|
||||||
|
- **[Wallet Balance](/docs/widgets.md#wallet-balance)**: `https://api.blockcypher.com/`
|
||||||
|
- [BlockCypher Privacy Policy](https://www.blockcypher.com/privacy.html)
|
||||||
|
- **[Code::Stats](/docs/widgets.md#code-stats)**: `https://codestats.net`
|
||||||
|
- [Code::Stats Privacy Policy](https://codestats.net/tos#privacy)
|
||||||
|
- **[addy.io](/docs/widgets.md#addyio)**: `https://app.addy.io`
|
||||||
|
- [addy.io Privacy Policy](https://addy.io/privacy/)
|
||||||
|
- **[Vulnerability Feed](/docs/widgets.md#vulnerability-feed)**: `https://www.cvedetails.com`
|
||||||
|
- [CVE Details Privacy Policy](https://www.cvedetails.com/privacy.php)
|
||||||
|
- **[Exchange Rate](/docs/widgets.md#exchange-rates)**: `https://v6.exchangerate-api.com`
|
||||||
|
- [ExchangeRateAPI Privacy Policy](https://www.exchangerate-api.com/terms)
|
||||||
|
- **[Public Holidays](/docs/widgets.md#public-holidays)**: `https://kayaposoft.com`
|
||||||
|
- [jurajmajer/enrico](https://github.com/jurajmajer/enrico)
|
||||||
|
- **[Covid-19 Status](/docs/widgets.md#covid-19-status)**: `https://codestats.net`
|
||||||
|
- [disease-sh/api](https://github.com/disease-sh/api)
|
||||||
|
- **[Sports Scores](/docs/widgets.md#sports-scores)**: `https://thesportsdb.com`
|
||||||
|
- No Policy Available
|
||||||
|
- **[News Headlines](/docs/widgets.md#news-headlines)**: `https://api.currentsapi.services`
|
||||||
|
- [CurrentsAPI Privacy Policy](https://currentsapi.services/privacy)
|
||||||
|
- **[Mullvad Status](/docs/widgets.md#mullvad-status)**: `https://am.i.mullvad.net`
|
||||||
|
- [Mullvad Privacy Policy](https://mullvad.net/en/help/privacy-policy/)
|
||||||
|
- **[TFL Status](/docs/widgets.md#tfl-status)**: `https://api.tfl.gov.uk`
|
||||||
|
- [TFL Privacy Policy](https://tfl.gov.uk/corporate/privacy-and-cookies/)
|
||||||
|
- **[Stock Price History](/docs/widgets.md#stock-price-history)**: `https://alphavantage.co`
|
||||||
|
- [AlphaVantage Privacy Policy](https://www.alphavantage.co/privacy/)
|
||||||
|
- **[ETH Gas Prices](/docs/widgets.md#eth-gas-prices)**: `https://ethgas.watch`
|
||||||
|
- [wslyvh/ethgaswatch](https://github.com/wslyvh/ethgaswatch)
|
||||||
|
- **[Joke](/docs/widgets.md#joke)**: `https://v2.jokeapi.dev`
|
||||||
|
- [SV443's Privacy Policy](https://sv443.net/privacypolicy/en)
|
||||||
|
- **[Flight Data](/docs/widgets.md#flight-data)**: `https://aerodatabox.p.rapidapi.com`
|
||||||
|
- [AeroDataBox Privacy Policy](https://www.aerodatabox.com/#h.p_CXtIYZWF_WQd)
|
||||||
|
- **[Astronomy Picture of the Day](/docs/widgets.md#astronomy-picture-of-the-day)**: `https://apodapi.herokuapp.com`
|
||||||
|
- [NASA's Privacy Policy](https://www.nasa.gov/about/highlights/HP_Privacy.html)
|
||||||
|
- **[GitHub Trending](/docs/widgets.md#github-trending)** and **[GitHub Profile Stats](/docs/widgets.md#github-profile-stats)**: `https://api.github.com`
|
||||||
|
- [GitHub's Privacy Policy](https://docs.github.com/en/github/site-policy/github-privacy-statement)
|
||||||
|
- **[Cron Monitoring (Health Checks)](/docs/widgets.md#cron-monitoring-health-checks)**: `https://healthchecks.io`
|
||||||
|
- [Health-Checks Privacy Policy](https://healthchecks.io/privacy/)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Browser Storage
|
||||||
|
|
||||||
|
In order for user preferences to be persisted between sessions, certain data needs to be stored in the browsers local storage. No personal info is kept here, none of this data can be accessed by other domains, and no data is ever sent to any server without your prior consent.
|
||||||
|
|
||||||
|
You can view and delete stored data by opening up the dev tools: <kbd>F12</kbd> --> `Application` --> `Storage`.
|
||||||
|
|
||||||
|
The following section outlines all data that is stored in the browsers, as cookies, session storage or local storage.
|
||||||
|
|
||||||
|
### Cookies
|
||||||
|
|
||||||
|
> [Cookies](https://en.wikipedia.org/wiki/HTTP_cookie) will expire after their pre-defined lifetime
|
||||||
|
|
||||||
|
- `AUTH_TOKEN` - A unique token, generated from a hash of users credentials, to verify they are authenticated. Only used when auth is enabled.
|
||||||
|
|
||||||
|
### Session Storage
|
||||||
|
|
||||||
|
> [Session storage](https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage) is deleted when the current session ends (tab / window is closed)
|
||||||
|
|
||||||
|
- `SW_STATUS` - The current status of any service workers
|
||||||
|
- `ERROR_LOG` - List of recent errors
|
||||||
|
|
||||||
|
### Local Storage
|
||||||
|
|
||||||
|
> [Local storage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage) is persisted between sessions, and only deleted when manually removed
|
||||||
|
|
||||||
|
- `LANGUAGE` - The locale to show app text in
|
||||||
|
- `HIDE_INFO_NOTIFICATION` - Set to true once user dismissed welcome message, so that it's not shown again
|
||||||
|
- `LAYOUT_ORIENTATION` - Preferred section layout, either horizontal, vertical or auto
|
||||||
|
- `COLLAPSE_STATE` - Remembers which sections are collapsed
|
||||||
|
- `ICON_SIZE` - Size of items, either small, medium or large
|
||||||
|
- `THEME` - Users applied theme
|
||||||
|
- `CUSTOM_COLORS` - Any color modifications made to a given theme
|
||||||
|
- `BACKUP_ID` - If a backup has been made, the ID is stored here
|
||||||
|
- `BACKUP_HASH` - A unique hash of the previous backups meta data
|
||||||
|
- `HIDE_SETTINGS` - Lets user hide or show the settings menu
|
||||||
|
- `USERNAME` - If user logged in, store username. Only used to show welcome message, not used for auth
|
||||||
|
- `CONF_SECTIONS` - Array of sections, only used when user applies changes locally
|
||||||
|
- `PAGE_INFO` - Config page info, only used when user applies changes locally
|
||||||
|
- `APP_CONFIG` - App config, only used when user applies changes locally
|
||||||
|
- `MOST_USED` - If smart sort is used to order items by most used, store open count
|
||||||
|
- `LAST_USED` - If smart sort is used to order items by last used, store timestamps
|
||||||
|
|
||||||
|
### Deleting Stored Data
|
||||||
|
|
||||||
|
You can manually view and delete session storage, local storage and cookies at anytime. Fist [open](/docs/troubleshooting.md#how-to-open-browser-console) your browsers developer tools (usually <kbd>F12</kbd>), then under the Application tab select the storage category. Here you will see a list of stored data, and you can select any item and delete it.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
|
||||||
|
As with most web projects, Dashy relies on several [dependencies](https://github.com/Lissy93/dashy/blob/master/docs/credits.md#dependencies-). For links to each, and a breakdown of their licenses, please see [Legal](https://github.com/Lissy93/dashy/blob/master/.github/LEGAL.md).
|
||||||
|
|
||||||
|
Dependencies can introduce security vulnerabilities, but since all these packages are open source any issues are usually very quickly spotted. Dashy is using Snyk for dependency security monitoring, and you can see [the latest report here](https://snyk.io/test/github/lissy93/dashy). If any issue is detected by Snyk, a note about it will appear at the top of the Readme, and will usually be fixed within 48 hours.
|
||||||
|
|
||||||
|
Note that packages listed under `devDependencies` section are only used for building the project, and are not included in the production environment.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Securing your Environment
|
||||||
|
|
||||||
|
Running your self-hosted applications in individual, containerized environments (such as containers or VMs) helps keep them isolated, and prevent an exploit in one service effecting another.
|
||||||
|
|
||||||
|
If you're running Dashy in a container, see [Management Docs --> Container Security](https://github.com/Lissy93/dashy/blob/master/docs/management.md#container-security) for step-by-step security guide.
|
||||||
|
|
||||||
|
There is very little complexity involved with Dashy, and therefore the attack surface is reasonably small, but it is still important to follow best practices and employ monitoring for all your self-hosted apps. A couple of things that you should look at include:
|
||||||
|
|
||||||
|
- Use SSL for securing traffic in transit
|
||||||
|
- Configure [authentication](/docs/authentication.md#alternative-authentication-methods) to prevent unauthorized access
|
||||||
|
- Keep your system, software and Dashy up-to-date
|
||||||
|
- Ensure your server is appropriately secured
|
||||||
|
- Manage users and SSH correctly
|
||||||
|
- Enable and configure firewall rules
|
||||||
|
- Implement security, malware and traffic scanning
|
||||||
|
- Setup malicious traffic detection
|
||||||
|
- Understand the [Docker attack fronts](https://docs.docker.com/engine/security/), and follow [Docker Security Best Practices](https://snyk.io/blog/10-docker-image-security-best-practices/)
|
||||||
|
|
||||||
|
This is covered in more detail in [App Management](/docs/management.md).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Security Features
|
||||||
|
|
||||||
|
### Subresource Integrity
|
||||||
|
|
||||||
|
[Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity) or SRI is a security feature that enables browsers to verify that resources they fetch are delivered without unexpected manipulation. It works by allowing you to provide a cryptographic hash that a fetched resource must match. This prevents the app from loading any resources that have been manipulated, by verifying the files hashes. It safeguards against the risk of an attacker injecting arbitrary malicious content into any files served up via a CDN.
|
||||||
|
|
||||||
|
Dashy supports SRI, and it is recommended to enable this if you are hosting your dashboard via a public CDN. To enable SRI, set the `INTEGRITY` environmental variable to `true`.
|
||||||
|
|
||||||
|
### SSL
|
||||||
|
|
||||||
|
Native SSL support is enabled, for setup instructions, see the [Management Docs](/docs/management.md#ssl-certificates)
|
||||||
|
|
||||||
|
### Authentication
|
||||||
|
|
||||||
|
Dashy supports both basic auth, as well as server-based SSO using Keycloak. Full details of which, along with alternate authentication methods can be found in the [Authentication Docs](/docs/authentication.md). If your dashboard is exposed to the internet and/ or contains any sensitive info it is strongly recommended to configure access control with Keycloak or another server-side method.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Disabling Features
|
||||||
|
|
||||||
|
You may wish to disable features that you don't want to use, if they involve storing data in the browser or making network requests.
|
||||||
|
|
||||||
|
- To disable smart-sort (uses local storage), set `appConfig.disableSmartSort: true`
|
||||||
|
- To disable update checks (makes external request to GH), set `appConfig.disableUpdateChecks: true`
|
||||||
|
- To disable web search (redirect to external / internal content), set `appConfig.disableWebSearch: true`
|
||||||
|
- To keep status checks disabled (external/ internal requests), set `appConfig.statusCheck: false`
|
||||||
|
- To keep font-awesome icons disabled (external requests), set `appConfig.enableFontAwesome: false`
|
||||||
|
- To keep error reporting disabled (external requests and data collection), set `appConfig.enableErrorReporting: false`
|
||||||
|
- To keep the service worker disabled (stores cache of app in browser data), set `appConfig.enableServiceWorker: false`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Reporting a Security Issue
|
||||||
|
|
||||||
|
If you think you've found a critical issue with Dashy, please send an email to `security@mail.alicia.omg.lol`. You can encrypt it, using [`0688 F8D3 4587 D954 E9E5 1FB8 FEDB 68F5 5C02 83A7`](https://keybase.io/aliciasykes/pgp_keys.asc?fingerprint=0688f8d34587d954e9e51fb8fedb68f55c0283a7). You should receive a response within 48 hours. For more information, see [SECURITY.md](https://github.com/Lissy93/dashy/blob/master/.github/SECURITY.md).
|
||||||
|
|
||||||
|
All non-critical issues can be raised as a ticket.
|
||||||
|
|
||||||
|
Please include the following information:
|
||||||
|
|
||||||
|
- Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
|
||||||
|
- Full paths of source file(s) related to the manifestation of the issue
|
||||||
|
- The location of the affected source code (tag/branch/commit or direct URL)
|
||||||
|
- Any special configuration required to reproduce the issue
|
||||||
|
- Step-by-step instructions to reproduce the issue
|
||||||
|
- Proof-of-concept or exploit code (if possible)
|
||||||
|
- Impact of the issue, including how an attacker might exploit the issue
|
|
@ -0,0 +1,172 @@
|
||||||
|
# Quick Start
|
||||||
|
|
||||||
|
Welcome to Dashy! So glad you're here 😊 In a couple of minutes, you'll have your new dashboard up and running 🚀
|
||||||
|
|
||||||
|
**TLDR;** Run `docker run -p 8080:8080 lissy93/dashy`, then open `http://localhost:8080`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 1. Prerequisites
|
||||||
|
|
||||||
|
The quickest and easiest method of running Dashy is using Docker (or another container engine). You can find installation instructions for your system in the [Docker Documentation](https://docs.docker.com/get-docker/).
|
||||||
|
If you don't want to use Docker, then you can use one of Dashy's other supported installation methods instead, all of which are outlined in the [Deployment Docs](https://github.com/Lissy93/dashy/blob/master/docs/deployment.md).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 2. Installation
|
||||||
|
|
||||||
|
To pull the latest image, and build and start the app run:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker run -d \
|
||||||
|
-p 8080:8080 \
|
||||||
|
-v ~/my-conf.yml:/app/user-data/conf.yml \
|
||||||
|
--name my-dashboard \
|
||||||
|
--restart=always \
|
||||||
|
lissy93/dashy:latest
|
||||||
|
```
|
||||||
|
|
||||||
|
Either replace the -v path to point to your config file, or leave it out. For a full list of available options, then see [Dashy with Docker](https://github.com/Lissy93/dashy/blob/master/docs/deployment.md#deploy-with-docker) Docs. If you'd prefer to use Docker Compose, then see [Dashy with Docker Compose](https://github.com/Lissy93/dashy/blob/master/docs/deployment.md#using-docker-compose) Docs. Alternate registries, architectures and pinned versions are also supported.
|
||||||
|
|
||||||
|
Your dashboard should now be up and running at `http://localhost:8080` (or your servers IP address/ domain, and the port that you chose). The first time you build, it may take a few minutes.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 3. User Data Directory
|
||||||
|
|
||||||
|
Your config file should be placed inside `user-data/` (in Docker, that's `/app/user-data/`).
|
||||||
|
|
||||||
|
This directory can also contain some optional assets you wish to use within your dashboard, like icons, fonts, styles, scripts, etc.
|
||||||
|
|
||||||
|
Any files placed here will be served up to the root of the domain, and override the contents of `public/`.
|
||||||
|
For example, if you had `user-data/favicon.ico` this would be accessible at `http://my-dashy-instance.local/favicon.ico`
|
||||||
|
|
||||||
|
Example Files in `user-data`:
|
||||||
|
- `conf.yml` - This is the only file that is compulsory, it's your main Dashy config
|
||||||
|
- `**.yml` - Include more config files, if you'd like to have multiple pages, see [Multi-page support](/docs/pages-and-sections.md#multi-page-support) for docs
|
||||||
|
- `favicon.ico` - The default favicon, shown in the browser's tab title
|
||||||
|
- `initialization.html` - Static HTML page displayed before the app has finished compiling, see [`public/initialization.html`](https://github.com/Lissy93/dashy/blob/master/public/initialization.html)
|
||||||
|
- `robots.txt` - Search engine crawl rules, override this if you want your dashboard to be indexable
|
||||||
|
- `manifest.json` - PWA configuration file, for installing Dashy on mobile devices
|
||||||
|
- `index.html` - The main index page which initializes the client-side app, copy it from [`/public/index.html`](https://github.com/Lissy93/dashy/blob/master/public/index.html)
|
||||||
|
- `**.html` - Write your own HTML pages, and access them at `http://my-dashy-instance.local/my-page.html`
|
||||||
|
- `fonts/` - Custom fonts (be sure to include the ones already in [`public/fonts`](https://github.com/Lissy93/dashy/tree/master/public/fonts)
|
||||||
|
- `item-icons/` - To use your own icons for items on your dashboard, see [Icons --> Local Icons](/docs/icons.md#local-icons)
|
||||||
|
- `web-icons/` - Override Dashy logo
|
||||||
|
- `widget-resources/` - Fonts, icons and assets for custom widgets
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 4. Configure
|
||||||
|
|
||||||
|
Now that you've got Dashy running, you are going to want to set it up with your own content.
|
||||||
|
Config is written in [YAML Format](https://yaml.org/), and saved in [`/user-data/conf.yml`](https://github.com/Lissy93/dashy/blob/master/user-data/conf.yml).
|
||||||
|
The format on the config file is pretty straight forward. There are four root attributes:
|
||||||
|
|
||||||
|
- [`pageInfo`](https://github.com/Lissy93/dashy/blob/master/docs/configuring.md#pageinfo) - Dashboard meta data, like title, description, nav bar links and footer text
|
||||||
|
- [`appConfig`](https://github.com/Lissy93/dashy/blob/master/docs/configuring.md#appconfig-optional) - Dashboard settings, like themes, authentication, language and customization
|
||||||
|
- [`sections`](https://github.com/Lissy93/dashy/blob/master/docs/configuring.md#section) - An array of sections, each including an array of items
|
||||||
|
- [`pages`](https://github.com/Lissy93/dashy/blob/master/docs/configuring.md#pages-optional) - Have multiples pages in your dashboard
|
||||||
|
|
||||||
|
You can view a full list of all available config options in the [Configuring Docs](https://github.com/Lissy93/dashy/blob/master/docs/configuring.md).
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
pageInfo:
|
||||||
|
title: Home Lab
|
||||||
|
sections: # An array of sections
|
||||||
|
- name: Example Section
|
||||||
|
icon: far fa-rocket
|
||||||
|
items:
|
||||||
|
- title: GitHub
|
||||||
|
description: Dashy source code and docs
|
||||||
|
icon: fab fa-github
|
||||||
|
url: https://github.com/Lissy93/dashy
|
||||||
|
- title: Issues
|
||||||
|
description: View open issues, or raise a new one
|
||||||
|
icon: fas fa-bug
|
||||||
|
url: https://github.com/Lissy93/dashy/issues
|
||||||
|
- name: Local Services
|
||||||
|
items:
|
||||||
|
- title: Firewall
|
||||||
|
icon: favicon
|
||||||
|
url: http://192.168.1.1/
|
||||||
|
- title: Game Server
|
||||||
|
icon: https://i.ibb.co/710B3Yc/space-invader-x256.png
|
||||||
|
url: http://192.168.130.1/
|
||||||
|
```
|
||||||
|
|
||||||
|
Notes:
|
||||||
|
|
||||||
|
- You can use a Docker volume to pass a config file from your host system to the container
|
||||||
|
- E.g. `-v ./host-system/my-local-conf.yml:/app/user-data/conf.yml`
|
||||||
|
- It's also possible to edit your config directly through the UI, and changes will be saved in this file
|
||||||
|
- Check your config against Dashy's schema, with `docker exec -it [container-id] yarn validate-config`
|
||||||
|
- You might find it helpful to look at some examples, a collection of which can be [found here](https://gist.github.com/Lissy93/000f712a5ce98f212817d20bc16bab10)
|
||||||
|
- It's also possible to load a remote config, e.g. from a GitHub Gist
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 5. Further Customisation
|
||||||
|
|
||||||
|
Once you've got Dashy setup, you'll want to ensure the container is properly healthy, secured, backed up and kept up-to-date. All this is covered in the [Management Docs](https://github.com/Lissy93/dashy/blob/master/docs/management.md).
|
||||||
|
|
||||||
|
You might also want to check out the docs for specific features you'd like to use:
|
||||||
|
|
||||||
|
- [Authentication](/docs/authentication.md) - Setting up authentication to protect your dashboard
|
||||||
|
- [Alternate Views](/docs/alternate-views.md) - Using the startpage and workspace view
|
||||||
|
- [Backup & Restore](/docs/backup-restore.md) - Guide to Dashy's cloud sync feature
|
||||||
|
- [Icons](/docs/icons.md) - Outline of all available icon types for sections and items
|
||||||
|
- [Localisation](/docs/multi-language-support.md) - How to change language, or add your own
|
||||||
|
- [Status Indicators](/docs/status-indicators.md) - Using Dashy to monitor uptime and status of your apps
|
||||||
|
- [Search & Shortcuts](/docs/searching.md) - Using instant filter, web search and custom hotkeys
|
||||||
|
- [Theming](/docs/theming.md) - Complete guide to applying, writing and modifying themes and styles
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 6. Final Note
|
||||||
|
|
||||||
|
If you need any help or support in getting Dashy running, head over to the [Discussions](https://github.com/Lissy93/dashy/discussions) page. If you think you've found a bug, please do [raise it](https://github.com/Lissy93/dashy/issues/new/choose) so it can be fixed. For contact options, see the [Support Page](https://github.com/Lissy93/dashy/blob/master/.github/SUPPORT.md).
|
||||||
|
|
||||||
|
If you're enjoying Dashy, and have a few minutes to spare, please do take a moment to look at the [Contributing Page](https://github.com/Lissy93/dashy/blob/master/docs/contributing.md). Huge thanks to [everyone](https://github.com/Lissy93/dashy/blob/master/docs/credits.md) who has already helped out!
|
||||||
|
|
||||||
|
Enjoy your dashboard :)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Alternative Deployment Method 1 - From Source
|
||||||
|
|
||||||
|
You can also easily run the app on your system without Docker. For this [Git](https://git-scm.com/downloads), [Node.js](https://nodejs.org/), and [Yarn](https://yarnpkg.com/) are required.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/Lissy93/dashy.git && cd dashy
|
||||||
|
yarn # Install dependencies
|
||||||
|
yarn build # Build the app
|
||||||
|
yarn start # Start the app
|
||||||
|
```
|
||||||
|
|
||||||
|
Then edit `./user-data/conf.yml`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Alternative Deployment Method 2 - Netlify
|
||||||
|
|
||||||
|
Don't have a server? No problem! You can run Dashy for free on Netlify (as well as many [other cloud providers](./docs/deployment.md#deploy-to-cloud-service)). All you need it a GitHub account.
|
||||||
|
|
||||||
|
1. Fork Dashy's repository on GitHub
|
||||||
|
2. [Log in](app.netlify.com/login/) to Netlify with GitHub
|
||||||
|
3. Click "New site from Git" and select your forked repo, then click **Deploy**!
|
||||||
|
4. You can then edit the config in `./user-data/conf.yml` in your repo, and Netlify will rebuild the app
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Alternative Deployment Method 3 - Cloud Services
|
||||||
|
|
||||||
|
Dashy supports 1-Click deployments on several popular cloud platforms. To spin up a new instance, just click a link below:
|
||||||
|
|
||||||
|
- [<img src="https://i.ibb.co/ZxtzrP3/netlify.png" width="18"/> Deploy to Netlify](https://app.netlify.com/start/deploy?repository=https://github.com/lissy93/dashy)
|
||||||
|
- [<img src="https://i.ibb.co/d2P1WZ7/heroku.png" width="18"/> Deploy to Heroku](https://heroku.com/deploy?template=https://github.com/Lissy93/dashy)
|
||||||
|
- [<img src="https://i.ibb.co/Ld2FZzb/vercel.png" width="18"/> Deploy to Vercel](https://vercel.com/new/project?template=https://github.com/lissy93/dashy)
|
||||||
|
- [<img src="https://i.ibb.co/xCHtzgh/render.png" width="18"/> Deploy to Render](https://render.com/deploy?repo=https://github.com/lissy93/dashy/tree/deploy_render)
|
||||||
|
- [<img src="https://i.ibb.co/J7MGymY/googlecloud.png" width="18"/> Deploy to GCP](https://deploy.cloud.run/?git_repo=https://github.com/lissy93/dashy.git)
|
||||||
|
- [<img src="https://i.ibb.co/HVWVYF7/docker.png" width="18"/> Deploy to PWD](https://labs.play-with-docker.com/?stack=https://raw.githubusercontent.com/Lissy93/dashy/master/docker-compose.yml)
|
||||||
|
- [<img src="https://i.ibb.co/7NxnM2P/easypanel.png" width="18"/> Deploy to Easypanel](https://easypanel.io/docs/templates/dashy)
|
|
@ -0,0 +1,39 @@
|
||||||
|
# 
|
||||||
|
|
||||||
|
## Running Dashy
|
||||||
|
|
||||||
|
- [Quick Start](/docs/quick-start.md) - TLDR guide on getting Dashy up and running
|
||||||
|
- [Deployment](/docs/deployment.md) - Full guide on deploying Dashy either locally or online
|
||||||
|
- [Configuring](/docs/configuring.md) - Complete list of all available options in the config file
|
||||||
|
- [App Management](/docs/management.md) - Managing your app, updating, security, web server configuration, etc
|
||||||
|
- [Troubleshooting](/docs/troubleshooting.md) - Common errors and problems, and how to fix them
|
||||||
|
|
||||||
|
## Development and Contributing
|
||||||
|
|
||||||
|
- [Developing](/docs/developing.md) - Running Dashy development server locally, and general workflow
|
||||||
|
- [Development Guides](/docs/development-guides.md) - Common development tasks, to help new contributors
|
||||||
|
- [Contributing](/docs/contributing.md) - How you can help keep Dashy alive
|
||||||
|
- [Showcase](/docs/showcase.md) - See how others are using Dashy, and share your dashboard
|
||||||
|
- [Credits](/docs/credits.md) - List of people and projects that have made Dashy possible
|
||||||
|
- [Release Workflow](/docs/release-workflow.md) - Info about releases, CI and automated tasks
|
||||||
|
|
||||||
|
## Feature Docs
|
||||||
|
|
||||||
|
- [Authentication](/docs/authentication.md) - Guide to setting up authentication to protect your dashboard
|
||||||
|
- [Alternate Views](/docs/alternate-views.md) - Outline of available pages / views and item opening methods
|
||||||
|
- [Backup & Restore](/docs/backup-restore.md) - Guide to backing up config with Dashy's cloud sync feature
|
||||||
|
- [Icons](/docs/icons.md) - Outline of all available icon types for sections and items, with examples
|
||||||
|
- [Language Switching](/docs/multi-language-support.md) - Details on how to switch language, or add a new locale
|
||||||
|
- [Pages and Sections](/docs/pages-and-sections.md) - Multi-page support, sections, items and sub-items
|
||||||
|
- [Status Indicators](/docs/status-indicators.md) - Using Dashy to monitor uptime and status of your apps
|
||||||
|
- [Searching & Shortcuts](/docs/searching.md) - Searching, launching methods + keyboard shortcuts
|
||||||
|
- [Theming](/docs/theming.md) - Complete guide to applying, writing and modifying themes + styles
|
||||||
|
- [Widgets](/docs/widgets.md) - List of all dynamic content widgets, with usage guides and examples
|
||||||
|
|
||||||
|
## Misc
|
||||||
|
|
||||||
|
- [Privacy & Security](/docs/privacy.md) - List of requests, potential issues, and security resources
|
||||||
|
- [License](/LICENSE) - Copy of the MIT License
|
||||||
|
- [Legal](/.github/LEGAL.md) - Licenses of direct dependencies
|
||||||
|
- [Code of Conduct](/.github/CODE_OF_CONDUCT.md) - Contributor Covenant Code of Conduct
|
||||||
|
- [Changelog](/.github/CHANGELOG.md) - Details of recent changes, and historical versions
|
|
@ -0,0 +1,166 @@
|
||||||
|
|
||||||
|
# Releases and Workflows
|
||||||
|
|
||||||
|
- [Release Schedule](#release-schedule)
|
||||||
|
- [Deployment Process](#deployment-process)
|
||||||
|
- [Git Strategy](#git-strategy)
|
||||||
|
- [Automated Workflows](#automated-workflows)
|
||||||
|
|
||||||
|
## Release Schedule
|
||||||
|
|
||||||
|
We're using [Semantic Versioning](https://semver.org/), to indicate major, minor and patch versions. You can find the current version number in the readme, and check your apps version under the config menu. The version number is pulled from the [package.json](https://github.com/Lissy93/dashy/blob/master/package.json#L3) file.
|
||||||
|
|
||||||
|
Typically there is a new major release every 2 weeks, usually on Sunday, and you can view these under the [Releases Page](https://github.com/Lissy93/dashy/releases). Each new version will also have a corresponding [tag on GitHub](https://github.com/Lissy93/dashy/tags), and each major release will also result in the creation of a new [tag on DockerHub](https://hub.docker.com/r/lissy93/dashy/tags), so that you can fix your container to a certain version.
|
||||||
|
|
||||||
|
For a full breakdown of each change, you can view the [Changelog](https://github.com/Lissy93/dashy/blob/master/.github/CHANGELOG.md). Each new feature or significant change needs to be submitted through a pull request, which makes it easy to review and track these changes, and roll back if needed.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Deployment Process
|
||||||
|
|
||||||
|
All changes and new features are submitted as pull requests, which can then be tested, reviewed and (hopefully) merged into the master branch. Every time there is a change in the major version number, a new release is published. This usually happens every 2 weeks, on a Sunday.
|
||||||
|
|
||||||
|
When a PR is opened:
|
||||||
|
|
||||||
|
- The feature branch is built, and deployed as a Netlify instance. This can be accessed at: `https://deploy-preview-[pr-number]--dashy-dev.netlify.app`, and this URL as well as a link to the build logs are added as a comment on the PR by Netlify bot
|
||||||
|
- Depending on what files were modified, the bot may also add a comment to remind the author of useful info
|
||||||
|
- A series of checks will run on the new code, using GH Actions, and prevent merging if they fail. This includes: linting, testing, code quality and complexity checking, security scanning and a spell check
|
||||||
|
- If a new dependency was added, liss-bot will comment with a summary of those changes, as well as the cost of the module, version, and any security concerns. If the bundle size has increased, this will also be added as a comment
|
||||||
|
|
||||||
|
After the PR is merged:
|
||||||
|
|
||||||
|
- The app is build, and deployed to: <https://dev.dashy.to>
|
||||||
|
- A new tag in GitHub is created, using the apps version number (from the package.json)
|
||||||
|
- The Docker container is built, and published under the `:latest` tag on DockerHub and GHCR
|
||||||
|
|
||||||
|
When a new major version is released:
|
||||||
|
|
||||||
|
- A new GitHub release is created and published, under new versions tag, with info from the changelog
|
||||||
|
- The container is built and published under a new tag will be created on DockerHub, called `:release-[version]`
|
||||||
|
- An announcement is opened in GitHub discussions, outlining the main changes, where users can comment and ask questions
|
||||||
|
|
||||||
|
[](https://app.netlify.com/sites/dashy-dev/deploys)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Git Strategy
|
||||||
|
|
||||||
|
### Git Flow
|
||||||
|
|
||||||
|
Like most Git repos, we are following the [Github Flow](https://guides.github.com/introduction/flow) standard.
|
||||||
|
|
||||||
|
1. Create a branch (or fork if you don'd have write access)
|
||||||
|
2. Code some awesome stuff, then add and commit your changes
|
||||||
|
3. Create a Pull Request, complete the checklist and ensure the build succeeds
|
||||||
|
4. Follow up with any reviews on your code
|
||||||
|
5. Merge 🎉
|
||||||
|
|
||||||
|
### Git Branch Naming
|
||||||
|
|
||||||
|
The format of your branch name should be something similar to: `[TYPE]/[TICKET]_[TITLE]`
|
||||||
|
For example, `FEATURE/420_Awesome-feature` or `FIX/690_login-server-error`
|
||||||
|
|
||||||
|
### Commit Emojis
|
||||||
|
|
||||||
|
Using a single emoji at the start of each commit message, to indicate the type task, makes the commit ledger easier to understand, plus it looks cool.
|
||||||
|
|
||||||
|
- 🎨 `:art:` - Improve structure / format of the code.
|
||||||
|
- ⚡️ `:zap:` - Improve performance.
|
||||||
|
- 🔥 `:fire:` - Remove code or files.
|
||||||
|
- 🐛 `:bug:` - Fix a bug.
|
||||||
|
- 🚑️ `:ambulance:` - Critical hotfix
|
||||||
|
- ✨ `:sparkles:` - Introduce new features.
|
||||||
|
- 📝 `:memo:` - Add or update documentation.
|
||||||
|
- 🚀 `:rocket:` - Deploy stuff.
|
||||||
|
- 💄 `:lipstick:` - Add or update the UI and style files.
|
||||||
|
- 🎉 `:tada:` - Begin a project.
|
||||||
|
- ✅ `:white_check_mark:` - Add, update, or pass tests.
|
||||||
|
- 🔒️ `:lock:` - Fix security issues.
|
||||||
|
- 🔖 `:bookmark:` - Make a Release or Version tag.
|
||||||
|
- 🚨 `:rotating_light:` - Fix compiler / linter warnings.
|
||||||
|
- 🚧 `:construction:` - Work in progress.
|
||||||
|
- ⬆️ `:arrow_up:` - Upgrade dependencies.
|
||||||
|
- 👷 `:construction_worker:` - Add or update CI build system.
|
||||||
|
- ♻️ `:recycle:` - Refactor code.
|
||||||
|
- 🩹 `:adhesive_bandage:` - Simple fix for a non-critical issue.
|
||||||
|
- 🔧 `:wrench:` - Add or update configuration files.
|
||||||
|
- 🍱 `:bento:` - Add or update assets.
|
||||||
|
- 🗃️ `:card_file_box:` - Perform database schema related changes.
|
||||||
|
- ✏️ `:pencil2:` - Fix typos.
|
||||||
|
- 🌐 `:globe_with_meridians:` - Internationalization and translations.
|
||||||
|
|
||||||
|
For a full list of options, see [gitmoji.dev](https://gitmoji.dev/)
|
||||||
|
|
||||||
|
### PR Guidelines
|
||||||
|
|
||||||
|
Once you've made your changes, and pushed them to your fork or branch, you're ready to open a pull request!
|
||||||
|
|
||||||
|
For a pull request to be merged, it must:
|
||||||
|
|
||||||
|
- Must be backwards compatible
|
||||||
|
- The build, lint and tests (run by GH actions) must pass
|
||||||
|
- There must not be any merge conflicts
|
||||||
|
|
||||||
|
When you submit your PR, include the required info, by filling out the PR template. Including:
|
||||||
|
|
||||||
|
- A brief description of your changes
|
||||||
|
- The issue, ticket or discussion number (if applicable)
|
||||||
|
- For UI relate updates include a screenshot
|
||||||
|
- If any dependencies were added, explain why it was needed, state the cost associated, and confirm it does not introduce any security issues
|
||||||
|
- Finally, check the checkboxes, to confirm that the standards are met, and hit submit!
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Automated Workflows
|
||||||
|
|
||||||
|
Dashy makes heavy use of [GitHub Actions](https://github.com/features/actions) to fully automate the checking, testing, building, deploying of the project, as well as administration tasks like management of issues, tags, releases and documentation. The following section outlines each workflow, along with a link the the action file, current status and short description. A lot of these automations were made possible using community actions contributed to GH marketplace by some amazing people.
|
||||||
|
|
||||||
|
### Code Processing
|
||||||
|
|
||||||
|
Action | Description
|
||||||
|
--- | ---
|
||||||
|
**Code Linter**<br/>[](https://github.com/Lissy93/dashy/actions/workflows/code-linter.yml) | After a pull request is created, all new code changes will be linted, and the CI will fail with a helpful message if the code has any formatting inconsistencies
|
||||||
|
**Code Spell Check**<br/>[](https://github.com/Lissy93/dashy/actions/workflows/code-spell-check.yml) | After a PR submitted, all auto-fixable spelling errors will be detected, then Liss-Bot will create a separate PR to propose the fixes
|
||||||
|
**Dependency Update Summary** <br/>[](https://github.com/Lissy93/dashy/actions/workflows/dependency-updates-summary.yml) | After a PR is submitted, if any of the dependencies are modified, then Liss-Bot will add a comment, explaining which packages have been added, removed, updated or downgraded, as well as other helpful info
|
||||||
|
**Get Size** <br/>[](https://github.com/Lissy93/dashy/actions/workflows/get-size.yml) | Adds comment to PR if the size of the built + bundled application has changed compared to the previous version
|
||||||
|
**Security Scan** <br/>[](https://github.com/Lissy93/dashy/actions/workflows/security-scanning.yml) | Uses Snyk to scan the code and dependencies after a PR. Will add a comment and cause the build to fail if a new vulnerability or potential issue is present
|
||||||
|
|
||||||
|
### Releases
|
||||||
|
|
||||||
|
Action | Description
|
||||||
|
--- | ---
|
||||||
|
**Create Tag** <br/>[](https://github.com/Lissy93/dashy/actions/workflows/auto-tag-pr.yml) | Whenever the version indicated in package.json is updates, a new GitHub tag will be created for that point in time
|
||||||
|
**Build App** <br/>[](https://github.com/Lissy93/dashy/actions/workflows/build-app.yml) | After changes are merged into the master branch, the app will be build, with output pushed to the `dev-demo` branch
|
||||||
|
**Cache Artifacts** <br/>[](https://github.com/Lissy93/dashy/actions/workflows/cache-artifacts.yml) | After build, returned files will be cached for future actions for that commit
|
||||||
|
**Docker Publish** <br/>[](https://github.com/Lissy93/dashy/actions/workflows/docker-publish.yml) | After PR is merged, the multi-architecture Docker container will be built, and then published to GHCR
|
||||||
|
|
||||||
|
### Issue Management
|
||||||
|
|
||||||
|
Action | Description
|
||||||
|
--- | ---
|
||||||
|
**Close Incomplete Issues** <br/>[](https://github.com/Lissy93/dashy/actions/workflows/close-incomplete-issues.yml) | Issues which do not match any of the issue templates will be closed, and a comment posted explaining why
|
||||||
|
**Close Stale Issues** <br/>[](https://github.com/Lissy93/dashy/actions/workflows/close-stale-issues.yml) | Issues which have not been updated for 6 weeks will have a comment posted to them. If the author does not reply within the next week, then the issue will be marked as stale and closed. The original author may still reopen the issue at any time
|
||||||
|
**Close Potential Spam Issues** <br/>[](https://github.com/Lissy93/dashy/actions/workflows/issue-spam-control.yml) | Auto-closes issues, and adds a comment if it was submitted by a user who hasn't yet interacted with the repo, is new to GitHub and has not starred the repository. The comment will advise them to check their issue is complete, and then allow them to reopen it
|
||||||
|
**Issue Translator** <br/>[](https://github.com/Lissy93/dashy/actions/workflows/issue-translator.yml) | Auto-translates any comments and issues that were written in any language other than English, and posts the translation as a comment below
|
||||||
|
**Label Sponsors** <br/>[](https://github.com/Lissy93/dashy/actions/workflows/label-sponsors.yml) | Adds a special label to any issues or pull requests raised by users who are sponsoring the project via GitHub, so that they can get priority support
|
||||||
|
**LGTM Comment**<br/>[](https://github.com/Lissy93/dashy/actions/workflows/lgtm-comment.yml) | When a PR review contains the words LGTM (looks good to me), the Liss-Bot will reply with a random celebratory or thumbs up GIF, just as a bit of fun
|
||||||
|
**Mind your Language** <br/>[](https://github.com/Lissy93/dashy/actions/workflows/mind-your-language.yml) | Replies to any comment (on issue or PR) that contains profanities, offensive or inappropriate language with a polite note reminding the user of the code of conduct
|
||||||
|
**Release Notifier** <br/>[](https://github.com/Lissy93/dashy/actions/workflows/release-commenter.yml) | Once a release has been published which fixes an issue, a comment will be added to the relevant issues informing the user who raised it that it was fixed in the current release
|
||||||
|
**Update Issue after Merge** <br/>[](https://github.com/Lissy93/dashy/actions/workflows/update-issue-after-pr.yml) | After a PR which fixes an issue is merged, Liss-Bot will add a comment to said issue based on the git commit message
|
||||||
|
**Auto Add Comment Based on Tag** <br/>[](https://github.com/Lissy93/dashy/actions/workflows/add-comment-from-tag.yml) | Will add comment with useful info to certain issues, based on the tag applied
|
||||||
|
|
||||||
|
### PR Management
|
||||||
|
|
||||||
|
Action | Description
|
||||||
|
--- | ---
|
||||||
|
**PR Commenter** <br/>[](https://github.com/Lissy93/dashy/actions/workflows/pr-commenter.yml) | Adds comment with helpful info to pull requests, based on which files have been changes
|
||||||
|
**Issue from Todo Code** <br/>[](https://github.com/Lissy93/dashy/actions/workflows/raise-issue-from-todo.yml) | When a `todo` note is found in the code after a PR, then Liss-Bot will automatically raise an issue, so that the todo can be addressed/ implemented. The issue will be closed once the todo has been implemented or removed
|
||||||
|
|
||||||
|
### Documentation & Reports
|
||||||
|
|
||||||
|
Action | Description
|
||||||
|
--- | ---
|
||||||
|
**Generate Credits** <br/>[](https://github.com/Lissy93/dashy/actions/workflows/generate-credits.yml) | Generates a report, including contributors, collaborators, sponsors, bots and helpful users. Will then insert a markdown table with thanks to these GitHub users and links to their profiles into the Credits page, as well as a summary of sponsors and top contributors into the main readme
|
||||||
|
**Wiki Sync** <br/>[](https://github.com/Lissy93/dashy/actions/workflows/wiki-sync.yml) | Generates and publishes the repositories wiki page using the markdown files within the docs directory
|
||||||
|
|
||||||
|
---
|
|
@ -0,0 +1,120 @@
|
||||||
|
# Keyboard Shortcuts
|
||||||
|
|
||||||
|
## Searching
|
||||||
|
|
||||||
|
One of the primary purposes of Dashy is to allow you to quickly find and launch a given app. To make this as quick as possible, there is no need to touch the mouse, or press a certain key to begin searching - just start typing. Results will be filtered in real-time. No need to worry about case, special characters or small typos, these are taken care of, and your results should appear.
|
||||||
|
|
||||||
|
## Navigating
|
||||||
|
|
||||||
|
You can navigate through your items or search results using the keyboard. You can use <kbd>Tab</kbd> to cycle through results, and <kbd>Shift</kbd> + <kbd>Tab</kbd> to go backwards. Or use the arrow keys, <kbd>↑</kbd>, <kbd>→</kbd>, <kbd>↓</kbd> and <kbd>←</kbd>.
|
||||||
|
|
||||||
|
## Launching Apps
|
||||||
|
|
||||||
|
You can launch a elected app by hitting <kbd>Enter</kbd>. This will open the app using your default opening method, specified in `target` (either `newtab`, `sametab`, `modal`, `top` or `workspace`). You can also use <kbd>Alt</kbd> + <kbd>Enter</kbd> to open the app in a pop-up modal, or <kbd>Ctrl</kbd> + <kbd>Enter</kbd> to open it in a new tab. For all available opening methods, just right-click on an item, to bring up the context menu.
|
||||||
|
|
||||||
|
## Tags
|
||||||
|
|
||||||
|
By default, items are filtered by the `title` attribute, as well as the hostname (extracted from `url`), the `provider` and `description`. If you need to find results based on text which isn't included in these attributes, then you can add `tags` to a given item.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
items:
|
||||||
|
- title: Plex
|
||||||
|
description: Media library
|
||||||
|
icon: favicon
|
||||||
|
url: https://plex.lab.local
|
||||||
|
tags: [ movies, videos, music ]
|
||||||
|
- title: FreshRSS
|
||||||
|
description: RSS Reader
|
||||||
|
icon: favicon
|
||||||
|
url: https://freshrss.lab.local
|
||||||
|
tags: [ news, updates, blogs ]
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
In the above example, Plex will be visible when searching for 'movies', and FreshRSS with 'news'
|
||||||
|
|
||||||
|
## Custom Hotkeys
|
||||||
|
|
||||||
|
For apps that you use regularly, you can set a custom keybinding. Use the `hotkey` parameter on a certain item to specify a numeric key, between `0 - 9`. You can then launch that app, by just pressing that key, which is much quicker than searching for it, if it's an app you use frequently.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- title: Bookstack
|
||||||
|
icon: far fa-books
|
||||||
|
url: https://bookstack.lab.local/
|
||||||
|
hotkey: 2
|
||||||
|
- title: Git Tea
|
||||||
|
icon: fab fa-git
|
||||||
|
url: https://git.lab.local/
|
||||||
|
target: workspace
|
||||||
|
hotkey: 3
|
||||||
|
```
|
||||||
|
|
||||||
|
In the above example, pressing <kbd>2</kbd> will launch Bookstack. Or hitting <kbd>3</kbd> will open Git in the workspace view.
|
||||||
|
|
||||||
|
## Web Search
|
||||||
|
|
||||||
|
It's possible to search the web directly from Dashy, which might be useful if you're using Dashy as your start page. This can be done by typing your query as normal, and then pressing <kbd>⏎</kbd>. Web search options are configured under `appConfig.webSearch`.
|
||||||
|
|
||||||
|
### Setting Search Engine
|
||||||
|
|
||||||
|
Set your default search engine using the `webSearch.searchEngine` property. This defaults to DuckDuckGo. Search engine must be referenced by their key, the following providers are supported:
|
||||||
|
|
||||||
|
- [`duckduckgo`](https://duckduckgo.com), [`google`](https://google.com), [`whoogle`](https://whoogle.sdf.org), [`qwant`](https://www.qwant.com), [`startpage`](https://www.startpage.com), [`searx-bar`](https://searx.bar), [`searx-info`](https://searx.info)
|
||||||
|
- [`searx-tiekoetter`](https://searx.tiekoetter.com), [`searx-bissisoft`](https://searx.bissisoft.com), [`ecosia`](https://www.ecosia.org), [`metager`](https://metager.org/meta), [`swisscows`](https://swisscows.com), [`mojeek`](https://www.mojeek.com)
|
||||||
|
- [`wikipedia`](https://en.wikipedia.org), [`wolframalpha`](https://www.wolframalpha.com), [`stackoverflow`](https://stackoverflow.com), [`github`](https://github.com), [`reddit`](https://www.reddit.com), [`youtube`](https://youtube.com), [`bbc`](https://www.bbc.co.uk)
|
||||||
|
|
||||||
|
### Using Custom Search Engine
|
||||||
|
|
||||||
|
You can also use a custom search engine, that isn't included in the above list (like a self-hosted instance of [Whoogle](https://github.com/benbusby/whoogle-search) or [Searx](https://searx.github.io/searx/)). Set `searchEngine: custom`, and then specify the URL (plus query params) to you're search engine under `customSearchEngine`.
|
||||||
|
|
||||||
|
For example:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
appConfig:
|
||||||
|
webSearch:
|
||||||
|
searchEngine: custom
|
||||||
|
customSearchEngine: 'https://searx.local/search?q='
|
||||||
|
```
|
||||||
|
|
||||||
|
### Setting Opening Method
|
||||||
|
|
||||||
|
In a similar way to opening apps, you can specify where you would like search results to be opened. This is done under the `openingMethod` attribute, and can be set to either `newtab`, `sametab` or `workspace`. By default results are opened in a new tab.
|
||||||
|
|
||||||
|
### Using Bangs
|
||||||
|
|
||||||
|
An insanely useful feature of DDG is [Bangs](https://duckduckgo.com/bang), where you type a specific character combination at the start of your search query, and it will be redirected the that website, such as '!w Docker' will display the Docker wikipedia page. Dashy has a similar feature, enabling you to define your own custom bangs to redirect search results to a specific app, website or search engine.
|
||||||
|
|
||||||
|
This is done under the `searchBangs` property, with a list of key value pairs. The key is what you will type, and the value is the destination, either as an identifier or a URL with query parameters.
|
||||||
|
|
||||||
|
For example:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
appConfig:
|
||||||
|
webSearch:
|
||||||
|
searchEngine: 'duckduckgo'
|
||||||
|
openingMethod: 'newtab'
|
||||||
|
searchBangs:
|
||||||
|
/r: reddit
|
||||||
|
/w: wikipedia
|
||||||
|
/s: https://whoogle.local/search?q=
|
||||||
|
/a: https://www.amazon.co.uk/s?k=
|
||||||
|
':wolf': wolframalpha
|
||||||
|
':so': stackoverflow
|
||||||
|
':git': github
|
||||||
|
```
|
||||||
|
|
||||||
|
Note that bangs begging with `!` or `:` must be surrounded them in quotes
|
||||||
|
|
||||||
|
### Disabling Web Search
|
||||||
|
|
||||||
|
Web search can be disabled, by setting `disableWebSearch`, for example:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
appConfig:
|
||||||
|
webSearch: { disableWebSearch: true }
|
||||||
|
```
|
||||||
|
|
||||||
|
## Clearing Search
|
||||||
|
|
||||||
|
You can clear your search term at any time, resting the UI to it's initial state, by pressing <kbd>Esc</kbd>.
|
||||||
|
This can also be used to close any open pop-up modals.
|
|
@ -0,0 +1,260 @@
|
||||||
|
# *Dashy Showcase* 🌟
|
||||||
|
|
||||||
|
| 💗 Got a sweet dashboard? Submit it to the showcase! 👉 [See How](#submitting-your-dashboard) |
|
||||||
|
|-|
|
||||||
|
|
||||||
|
## MNDashboard
|
||||||
|
|
||||||
|
> By [@mahrnet](https://github.com/mahrnet) <sup>Re: [#1491](https://github.com/Lissy93/dashy/issues/1491)</sup>
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Home Lab 2.0
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Dipan's Dash
|
||||||
|
|
||||||
|
> By [@Dipanghosh](https://github.com/dipanghosh) - [dipan.de](https://dipan.de/) <sup>Re: [#777](https://github.com/Lissy93/dashy/discussions/777)</sup>
|
||||||
|
|
||||||
|
> With the option of embedding iframes, it becomes possible to combine and conquer. I have set up Dashy to include graphs from grafana, and set them so that they update automatically. I also have uptime monitors from uptime Kuma, panels from homeassistant are also possible to be included.<br>
|
||||||
|
> Dashy is awesome!
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Ratty222
|
||||||
|
|
||||||
|
> By [@ratty222](https://github.com/ratty222) <sup>Re: [#384](https://github.com/Lissy93/dashy/discussions/384)</sup>
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Hugalafutro Dashy
|
||||||
|
|
||||||
|
> By [@hugalafutro](https://github.com/hugalafutro) <sup>Re: [#505](https://github.com/Lissy93/dashy/discussions/505)</sup>
|
||||||
|
|
||||||
|
[](https://i.ibb.co/PDpLDKS/hugalafutro-dashy.gif)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## NAS Home Dashboard
|
||||||
|
|
||||||
|
> By [@cerealconyogurt](https://github.com/cerealconyogurt) <sup>Re: [#74](https://github.com/Lissy93/dashy/issues/74)</sup>
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Brewhack
|
||||||
|
|
||||||
|
> By [@brpeterso](https://github.com/brpeterso) <sup>Re: [#680](https://github.com/Lissy93/dashy/issues/680)</sup>
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## The Dragons Lair
|
||||||
|
|
||||||
|
> By [dr460nf1r3](https://github.com/dr460nf1r3) <sup>via [#684](https://github.com/Lissy93/dashy/issues/684)</sup>
|
||||||
|
|
||||||
|
> My new startpage featuring the stuff I use most. And of course dragons!
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Homelab & VPS dashboard
|
||||||
|
|
||||||
|
> By [@shadowking001](https://github.com/shadowking001) <sup>Re: [#86](https://github.com/Lissy93/dashy/issues/86)</sup>
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Raspberry PI Docker Dashboard
|
||||||
|
|
||||||
|
> By [@henkiewie](https://github.com/henkiewie) <sup>Re: [#622](https://github.com/Lissy93/dashy/issues/622)</sup>
|
||||||
|
|
||||||
|
> I use this dashboard every day. It now even includes a player for a radio stream which I configured with Logitech media server and icecast. I made an smaller version of the grafana dashboard to fit an iframe in kiosk mode, so it monitors the most important values of my RPI. The PI is in Argon m2 case and used as a NAS. The dashboard is a copy of the adventure theme with some changes saved in `/app/src/styles/user-defined-themes.scss`
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## First Week of Self-Hosting
|
||||||
|
|
||||||
|
> By [u//RickyCZ](https://www.reddit.com/user/RickyCZ) <sup>via [Reddit](https://www.reddit.com/r/selfhosted/comments/pose15/just_got_started_a_week_ago_selfhosting_is_very/)</sup>
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## EVO Dashboard
|
||||||
|
|
||||||
|
> By [@EVOTk](https://github.com/EVOTk) <sup>Re: [#316](https://github.com/Lissy93/dashy/pull/316)</sup>
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## The Private Dashboard
|
||||||
|
|
||||||
|
> By [@DylanBeMe](https://github.com/DylanBeMe) <sup>Re: [#419](https://github.com/Lissy93/dashy/issues/419)</sup>
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Networking Services
|
||||||
|
|
||||||
|
> By [@Lissy93](https://github.com/lissy93)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Dashy Live
|
||||||
|
|
||||||
|
> By [@Lissy93](https://github.com/lissy93)
|
||||||
|
|
||||||
|
> A dashboard I made to manage all project development links from one place. View demo at [live.dashy.to](https://live.dashy.to/).
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## System Monitor
|
||||||
|
|
||||||
|
> An aggregated board for monitoring system resource usage from a single view
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Browser Startpage
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## CFT Toolbox
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Bookmarks
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Project Management
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Dashy Example
|
||||||
|
|
||||||
|
> An example dashboard, by [@Lissy93](https://github.com/lissy93). View live at [demo.dashy.to](https://demo.dashy.to/).
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## HomeLAb 3.0
|
||||||
|
|
||||||
|
> By [@skoogee](https://github.com/skoogee) (<http://zhrn.cc>) <sup>[#279](https://github.com/Lissy93/dashy/issues/279)</sup>
|
||||||
|
|
||||||
|
> Dashy, is the most complete dashboard I ever tried, has all the features, and it sets itself apart from the rest. It is my default homepage now. I am thankful to the developer @Lissy93 for sharing such a wonderful creation.
|
||||||
|
|
||||||
|
[](https://ibb.co/album/ynSwzm)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Ground Control
|
||||||
|
|
||||||
|
> By [@dtctek](https://github.com/dtctek) <sup>Re: [#83](https://github.com/Lissy93/dashy/issues/83)</sup>
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Croco_Grievous
|
||||||
|
|
||||||
|
> By [u/Croco_Grievous](https://www.reddit.com/user/Croco_Grievous/) <sup>via [reddit](https://www.reddit.com/r/selfhosted/comments/t4xk3z/everything_started_with_pihole_on_a_raspberry_pi/)</sup>
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Crypto Dash
|
||||||
|
|
||||||
|
> Example usage of widgets to monitor cryptocurrencies news, prices and data. Config is [available here](https://gist.github.com/Lissy93/000f712a5ce98f212817d20bc16bab10#file-example-8-dashy-crypto-widgets-conf-yml)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Stefantigro
|
||||||
|
|
||||||
|
> By [u/stefantigro](https://www.reddit.com/user/stefantigro/) <sup>via [reddit](https://www.reddit.com/r/selfhosted/comments/t5oril/been_selfhosting_close_to_half_a_year_now_all/)</sup>
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Morning Dashboard
|
||||||
|
|
||||||
|
> Displayed on my smart screen between 05:00 - 08:00, and includes all the info that I usually check before leaving for work
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Yet Another Homelab
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Submitting your Dashboard
|
||||||
|
|
||||||
|
### How to Submit
|
||||||
|
|
||||||
|
- [Open an Issue](https://git.io/JEtgM)
|
||||||
|
- [Open a PR](https://github.com/Lissy93/dashy/compare)
|
||||||
|
|
||||||
|
### What to Include
|
||||||
|
|
||||||
|
Please include the following information:
|
||||||
|
|
||||||
|
- A single high-quality screenshot of your Dashboard
|
||||||
|
- A short title (it doesn't have to be particularly imaginative)
|
||||||
|
- An optional description, you could include details on anything interesting or unique about your dashboard, or say how you use it, and why it's awesome
|
||||||
|
- Optionally leave your name or username, with a link to your GitHub, Twitter or Website
|
||||||
|
|
||||||
|
### Template
|
||||||
|
|
||||||
|
If you're submitting a pull request, please use a format similar to this:
|
||||||
|
|
||||||
|
```text
|
||||||
|
### [Dashboard Name] (required)
|
||||||
|
|
||||||
|
> Submitted by [@username](https://github.com/user) (optional)
|
||||||
|
|
||||||
|
[An optional text description, or any interesting details] (optional)
|
||||||
|
|
||||||
|
 (required)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
```
|
After Width: | Height: | Size: 187 KiB |
After Width: | Height: | Size: 202 KiB |
After Width: | Height: | Size: 176 KiB |
After Width: | Height: | Size: 208 KiB |
After Width: | Height: | Size: 269 KiB |
After Width: | Height: | Size: 105 KiB |
After Width: | Height: | Size: 80 KiB |
After Width: | Height: | Size: 137 KiB |
After Width: | Height: | Size: 108 KiB |
After Width: | Height: | Size: 331 KiB |
After Width: | Height: | Size: 191 KiB |
After Width: | Height: | Size: 116 KiB |
After Width: | Height: | Size: 60 KiB |
|
@ -0,0 +1,2 @@
|
||||||
|
|
||||||
|
See: [Showcase](/docs/showcase.md).
|
|
@ -0,0 +1,109 @@
|
||||||
|
# Status Indicators
|
||||||
|
|
||||||
|
Dashy has an optional feature that can display a small icon next to each of your running services, indicating it's current status. This can be useful if you are using Dashy as your homelab's start page, as it gives you an overview of the health of each of your running services. The status feature will show response time, response code, online/ offline check and if applicable, a relevant error message.
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img width="800" src="/docs/assets/status-check-demo.gif" />
|
||||||
|
</p>
|
||||||
|
|
||||||
|
## Enabling Status Indicators
|
||||||
|
|
||||||
|
By default, this feature is off. If you do not want this feature, just don't add the `statusCheck` to your conf.yml file, then no requests will be made.
|
||||||
|
|
||||||
|
To enable status checks, you can either turn it on for all items, by setting `appConfig.statusCheck: true`, like:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
appConfig:
|
||||||
|
statusCheck: true
|
||||||
|
```
|
||||||
|
|
||||||
|
Or you can enable/ disable it on a per-item basis, with the `item[n].statusCheck` attribute
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
sections:
|
||||||
|
- name: Firewall
|
||||||
|
items:
|
||||||
|
- title: OPNsense
|
||||||
|
description: Firewall Central Management
|
||||||
|
icon: networking/opnsense.png
|
||||||
|
url: https://192.168.1.1
|
||||||
|
statusCheck: false
|
||||||
|
- title: MalTrail
|
||||||
|
description: Malicious traffic detection system
|
||||||
|
icon: networking/maltrail.png
|
||||||
|
url: http://192.168.1.1:8338
|
||||||
|
statusCheck: true
|
||||||
|
- title: Ntopng
|
||||||
|
description: Network traffic probe and network use monitor
|
||||||
|
icon: networking/ntop.png
|
||||||
|
url: http://192.168.1.1:3001
|
||||||
|
statusCheck: true
|
||||||
|
```
|
||||||
|
|
||||||
|
## Continuous Checking
|
||||||
|
|
||||||
|
By default, with status indicators enabled Dashy will check an applications status on page load, and will not keep indicators updated. This is usually desirable behavior. However, if you do want the status indicators to continue to poll your running services, this can be enabled by setting the `statusCheckInterval` attribute. Here you define an interval as an integer in seconds, and Dashy will poll your apps every x seconds. Note that if this number is very low (below 5 seconds), you may notice the app running slightly slower.
|
||||||
|
|
||||||
|
The following example, will instruct Dashy to continuously check the status of your services every 20 seconds.
|
||||||
|
|
||||||
|
```text
|
||||||
|
appConfig:
|
||||||
|
statusCheck: true
|
||||||
|
statusCheckInterval: 20
|
||||||
|
```
|
||||||
|
|
||||||
|
## Using a Different Endpoint
|
||||||
|
|
||||||
|
By default, the status checker will use the URL of each application being checked. In some situations, you may want to use a different endpoint for status checking. Similarly, some services provide a dedicated path for uptime monitoring.
|
||||||
|
|
||||||
|
You can set the `statusCheckUrl` property on any given item in order to do this. The status checker will then ping that endpoint, instead of the apps main `url` property.
|
||||||
|
|
||||||
|
## Setting Custom Headers
|
||||||
|
|
||||||
|
If your service is responding with an error, despite being up and running, it is most likely because custom headers for authentication, authorization or encoding are required. You can define these headers under the `statusCheckHeaders` property for any service. It should be defined as an object format, with the name of header as the key, and header content as the value.
|
||||||
|
For example, `statusCheckHeaders: { 'X-Custom-Header': 'foobar' }`
|
||||||
|
|
||||||
|
## Disabling Security
|
||||||
|
|
||||||
|
By default, (if you're using HTTPS) any requests to insecure or non-HTTPS content will be blocked. This will cause the status check to fail. If you trust the endpoint (e.g. you're self-hosting it), then you can disable this security measure for an individual item. This is done by setting `statusCheckAllowInsecure: true`
|
||||||
|
|
||||||
|
## Allowing Alternative Status Codes
|
||||||
|
|
||||||
|
If you expect your service to return a status code that is not in the 2XX range, and still want the indicator to be green, then you can specify an expected status code under `statusCheckAcceptCodes` for a given item. For example, `statusCheckAcceptCodes: '403,418'`
|
||||||
|
|
||||||
|
## Troubleshooting Failing Status Checks
|
||||||
|
|
||||||
|
If you're using status checks, and despite a given service being online, the check is displaying an error, there are a couple of things you can look at:
|
||||||
|
|
||||||
|
If your service requires requests to include any authorization in the headers, then use the `statusCheckHeaders` property, as described [above](#setting-custom-headers).
|
||||||
|
|
||||||
|
If you are still having issues, it may be because your target application is blocking requests from Dashy's IP. This is a [CORS error](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS), and can be fixed by setting the headers on your target app, to include:
|
||||||
|
|
||||||
|
```text
|
||||||
|
Access-Control-Allow-Origin: https://location-of-dashy/
|
||||||
|
Vary: Origin
|
||||||
|
```
|
||||||
|
|
||||||
|
If the URL you are checking has an unsigned certificate, or is not using HTTPS, then you may need to disable the rejection of insecure requests. This can be done by setting `statusCheckAllowInsecure` to true for a given item.
|
||||||
|
|
||||||
|
If your service is online, but responds with a status code that is not in the 2xx range, then you can use `statusCheckAcceptCodes` to set an accepted status code.
|
||||||
|
|
||||||
|
If you get an error, like `Service Unavailable: Server resulted in a fatal error`, even when it's definitely online, this is most likely caused by missing the protocol. Don't forget to include `https://` (or whatever protocol) before the URL, and ensure that if needed, you've specified the port.
|
||||||
|
|
||||||
|
Running Dashy in HOST network mode, instead of BRIDGE will allow status check access to other services in HOST mode. For more info, see [#445](https://github.com/Lissy93/dashy/discussions/445).
|
||||||
|
|
||||||
|
If you have firewall rules configured, then ensure that they don't prevent Dashy from making requests to the other services you are trying to access.
|
||||||
|
|
||||||
|
Currently, the status check needs a page to be rendered, so if this URL in your browser does not return anything, then status checks will not work. This may be modified in the future, but in the meantime, a fix would be to make your own status service, which just checks if your app responds with whatever code you'd like, and then return a 200 plus renders an arbitrary message. Then just point `statusCheckUrl` to your custom page.
|
||||||
|
|
||||||
|
For further troubleshooting, use an application like [Postman](https://postman.com) to diagnose the issue. Set the parameter to `GET`, and then make a call to: `https://[url-of-dashy]/status-check/?&url=[service-url]`. Where the service URL must have first been encoded (e.g. with `encodeURIComponent()` or [urlencoder.io](https://www.urlencoder.io/))
|
||||||
|
|
||||||
|
If you're serving Dashy though a CDN, instead of using the Node server or Docker image, then the Node endpoint that makes requests will not be available to you, and all requests will fail. A workaround for this may be implemented in the future, but in the meantime, your only option is to use the Docker or Node deployment method.
|
||||||
|
|
||||||
|
## How it Works
|
||||||
|
|
||||||
|
When the app is loaded, if `appConfig.statusCheck: true` is set, or if any items have the `statusCheck: true` enabled, then Dashy will make a request, to `https://[your-host-name]/status-check?url=[address-or-servce]` (may al include GET params for headers and the secure flag), which in turn will ping that running service, and respond with a status code. Response time is calculated from the difference between start and end time of the request.
|
||||||
|
|
||||||
|
When the response completes, an indicator will display next to each item. The color denotes the status: Yellow while waiting for the response to return, green if request was successful, red if it failed, and grey if it was unable to make the request all together.
|
||||||
|
|
||||||
|
All requests are made straight from your server, there is no intermediary. So providing you are hosting Dashy yourself, and are checking the status of other self-hosted services, there shouldn't be any privacy concerns. Requests are made asynchronously, so this won't have any significant impact on page load speeds. However recurring requests (using `statusCheckInterval`) may run more slowly if the interval between requests is very short.
|
|
@ -0,0 +1,199 @@
|
||||||
|
# Theming
|
||||||
|
|
||||||
|
By default Dashy comes with 25+ built-in themes, which can be applied from the dropdown menu in the UI.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
You can also add your own themes, apply custom styles, and modify colors.
|
||||||
|
|
||||||
|
You can customize Dashy by writing your own CSS, which can be loaded either as an external stylesheet, set directly through the UI, or specified in the config file. Most styling options can be set through CSS variables, which are outlined below.
|
||||||
|
|
||||||
|
The following content requires that you have a basic understanding of CSS. If you're just beginning, you may find [this article](https://developer.mozilla.org/en-US/docs/Learn/CSS/First_steps) helpful.
|
||||||
|
|
||||||
|
## How Theme-Switching Works
|
||||||
|
|
||||||
|
The theme switching is done by simply changing the `data-theme` attribute on the root DOM element, which can then be targeted by CSS. First off, in order for the theme to show up in the theme switcher, it needs to be added to the config file, under `appConfig.cssThemes`, either as a string, or an array of strings for multiple themes. For example:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
appConfig:
|
||||||
|
cssThemes: ['tiger', 'another-theme']
|
||||||
|
```
|
||||||
|
|
||||||
|
You can now create a block to target you're theme with `html[data-theme='my-theme']{}` and set some styles. The easiest method is by setting CSS variables, but you can also directly override elements by their selector. As an example, see the [built-in CSS themes](https://github.com/Lissy93/dashy/blob/master/src/styles/color-themes.scss).
|
||||||
|
|
||||||
|
```css
|
||||||
|
html[data-theme='tiger'] {
|
||||||
|
--primary: #f58233;
|
||||||
|
--background: #0b1021;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Finally, from the UI use the theme dropdown menu to select your new theme, and your styles will be applied.
|
||||||
|
|
||||||
|
You can also set `appConfig.theme` to pre-select a default theme, which will be applied immediately after deployment.
|
||||||
|
|
||||||
|
## Modifying Theme Colors
|
||||||
|
|
||||||
|
Themes can be modified either through the UI, using the color picker menu (to the right of the theme dropdown), or directly in the config file, under `appConfig.customColors`. Here you can specify the value for any of the [available CSS variables](#css-variables).
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<a href="https://i.ibb.co/cLDXj1R/dashy-theme-configurator.gif">
|
||||||
|
<img alt="Example Themes" src="https://raw.githubusercontent.com/Lissy93/dashy/master/docs/assets/theme-config-demo.gif" width="400" />
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
By default, any color modifications made to the current theme through the UI will only be applied locally. If you need these settings to be set globally, then click the 'Export' button, to get the color codes and variable names, which can then be backed up, or saved in your config file.
|
||||||
|
|
||||||
|
Custom colors are saved relative the the base theme selected. So if you switch themes after setting custom colors, then you're settings will no longer be applied. You're changes are not lost though, and switching back to the original theme will see your styles reapplied.
|
||||||
|
|
||||||
|
If these values are specified in your `conf.yml` file, then it will look something like the below example. Note that in YAML, values or keys which contain special characters, must be wrapped in quotes.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
appConfig:
|
||||||
|
customColors:
|
||||||
|
oblivion:
|
||||||
|
primary: '#75efff'
|
||||||
|
background: '#2a3647'
|
||||||
|
dracula:
|
||||||
|
primary: '#8be9fd'
|
||||||
|
```
|
||||||
|
|
||||||
|
## Adding your own Theme
|
||||||
|
|
||||||
|
User-defined styles and custom themes should be defined in `./src/styles/user-defined-themes.scss`. If you're using Docker, you can pass your own stylesheet in using the `--volume` flag. E.g. `v ./my-themes.scss:/app/src/styles/user-defined-themes.scss`. Don't forget to pass your theme name into `appConfig.cssThemes` so that it shows up on the theme-switcher dropdown.
|
||||||
|
|
||||||
|
## Setting Custom CSS in the UI
|
||||||
|
|
||||||
|
Custom CSS can be developed, tested and applied directly through the UI. Although you will need to make note of your changes to apply them across instances.
|
||||||
|
|
||||||
|
This can be done from the Config menu (spanner icon in the top-right), under the Custom Styles tab. This is then associated with `appConfig.customCss` in local storage. Styles can also be directly applied to this attribute in the config file, but this may get messy very quickly if you have a lot of CSS.
|
||||||
|
|
||||||
|
## Page-Specific Styles
|
||||||
|
|
||||||
|
If you've got multiple pages within your dashboard, you can choose to target certain styles to specific pages. The top-most element within `<body>` will have a class name specific to the current sub-page. This is usually the page's name, all lowercase, with dashes instead of spaces, but you can easily check this yourself within the dev tools.
|
||||||
|
|
||||||
|
For example, if the pages name was "CFT Toolbox", and you wanted to target `.item`s, you would do:
|
||||||
|
|
||||||
|
```css
|
||||||
|
.cft-toolbox .item { border: 4px solid yellow; }
|
||||||
|
```
|
||||||
|
|
||||||
|
## Loading External Stylesheets
|
||||||
|
|
||||||
|
The URI of a stylesheet, either local or hosted on a remote CDN can be passed into the config file. The attribute `appConfig.externalStyleSheet` accepts either a string, or an array of strings. You can also pass custom font stylesheets here, they must be in a CSS format (for example, `https://fonts.googleapis.com/css2?family=Cutive+Mono`).
|
||||||
|
This is handled in [`ThemeHelper.js`](https://github.com/Lissy93/dashy/blob/master/src/utils/ThemeHelper.js).
|
||||||
|
|
||||||
|
For example:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
appConfig:
|
||||||
|
externalStyleSheet: 'https://example.com/my-stylesheet.css'
|
||||||
|
```
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
appConfig:
|
||||||
|
externalStyleSheet: ['/themes/my-theme-1.css', '/themes/my-theme-2.css']
|
||||||
|
```
|
||||||
|
|
||||||
|
## Hard-Coding Section or Item Colors
|
||||||
|
|
||||||
|
Some UI components have a color option, that can be set in the config file, to force the color of a given item or section no matter what theme is selected. These colors should be expressed as hex codes (e.g. `#fff`) or HTML colors (e.g. `red`). The following attributes are supported:
|
||||||
|
|
||||||
|
- `section.color` - Custom color for a given section
|
||||||
|
- `item.color` - Font and icon color for a given item
|
||||||
|
- `item.backgroundColor` - Background color for a given icon
|
||||||
|
|
||||||
|
## Typography
|
||||||
|
|
||||||
|
Essential fonts bundled within the app are located within `./src/assets/fonts/`. All optional fonts that are used by themes are stored in `./public/fonts/`, if you want to add your own font, this is where you should put it. As with assets, if you're using Docker then using a volume to link a directory on your host system with this path within the container will make management much easier.
|
||||||
|
|
||||||
|
Fonts which are not being used by the current theme are **not** fetched on page load. They are instead only loaded into the application if and when they are required. So having multiple themes with various typefaces shouldn't have any negative impact on performance.
|
||||||
|
|
||||||
|
Full credit to the typographers behind each of the included fonts. Specifically: Matt McInerney, Christian Robertson, Haley Fiege, Peter Hull, Cyreal and the legendary Vernon Adams
|
||||||
|
|
||||||
|
## CSS Variables
|
||||||
|
|
||||||
|
All colors as well as other variable values (such as borders, border-radius, shadows) are specified as CSS variables. This makes theming the application easy, as you only need to change a given color or value in one place. You can find all variables in [`color-palette.scss`](https://github.com/Lissy93/dashy/blob/master/src/styles/color-palette.scss) and the themes which make use of these color variables are specified in [`color-themes.scss`](https://github.com/Lissy93/dashy/blob/master/src/styles/color-themes.scss)
|
||||||
|
|
||||||
|
CSS variables are simple to use. You define them like: `--background: #fff;` and use them like: `body { background-color: var(--background); }`. For more information, see this guide on using [CSS Variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties).
|
||||||
|
|
||||||
|
You can determine the variable used by any given element, and visualize changes using the browser developer tools (Usually opened with `F12`, or Options --> More --> Developer Tools). Under the elements tab, click the Element Selector icon (usually top-left corner), you will then be able to select any DOM element on the page by hovering and clicking it. In the CSS panel you will see all styles assigned to that given element, including CSS variables. Click a variable to see it's parent value, and for color attributes, click the color square to modify the color. For more information, see this [getting started guide](https://developer.mozilla.org/en-US/docs/Learn/Common_questions/What_are_browser_developer_tools), and these articles on [selecting elements](https://developer.mozilla.org/en-US/docs/Tools/Page_Inspector/How_to/Select_an_element) and [inspecting and modifying colors](https://developer.mozilla.org/en-US/docs/Tools/Page_Inspector/How_to/Inspect_and_select_colors).
|
||||||
|
|
||||||
|
### Top-Level Variables
|
||||||
|
|
||||||
|
These are all that are required to create a theme. All other variables inherit their values from these variables, and can optionally be overridden.
|
||||||
|
|
||||||
|
- `--primary` - Application primary color. Used for title, text, accents, and other features
|
||||||
|
- `--background` - Application background color
|
||||||
|
- `--background-darker` - Secondary background color (usually darker), used for navigation bar, section fill, footer etc
|
||||||
|
- `--curve-factor` - The border radius used globally throughout the application. Specified in `px`, defaults to `5px`
|
||||||
|
- `--dimming-factor` - Inactive elements have slight transparency. This can be between `0` (invisible) and `1` (normal), defaults to `0.7`
|
||||||
|
|
||||||
|
### Targeted Color Variables
|
||||||
|
|
||||||
|
You can target specific elements on the UI with these variables. All are optional, since by default, they inherit their values from above
|
||||||
|
|
||||||
|
- `--heading-text-color` - Text color for web page heading and sub-heading. Defaults to `--primary`
|
||||||
|
- `--nav-link-text-color` - The text color for links displayed in the navigation bar. Defaults to `--primary`
|
||||||
|
- `--nav-link-background-color` - The background color for links displayed in the navigation bar
|
||||||
|
- `--nav-link-text-color-hover` - The text color when a navigation bar link is hovered over. Defaults to `--primary`
|
||||||
|
- `--nav-link-background-color-hover` - The background color for nav bar links when hovered over
|
||||||
|
- `--nav-link-border-color` - The border color for nav bar links. Defaults to `transparent`
|
||||||
|
- `--nav-link-border-color-hover` - The border color for nav bar links when hovered over. Defaults to `--primary`
|
||||||
|
- `--search-container-background` - Background for the container containing the search bar. Defaults to `--background-darker`
|
||||||
|
- `--search-field-background` - Fill color for the search bar. Defaults to `--background`
|
||||||
|
- `--settings-background` - The background for the quick settings. Defaults to `--background`
|
||||||
|
- `--settings-text-color` - The text and icon color for quick settings. Defaults to `--primary`
|
||||||
|
- `--footer-text-color` - Color for text within the footer. Defaults to `--medium-grey`
|
||||||
|
- `--footer-text-color-link` - Color for any hyperlinks within the footer. Defaults to `--primary`
|
||||||
|
- `--item-text-color` - The text and icon color for items. Defaults to `--primary`
|
||||||
|
- `--item-group-outer-background` - The background color for the outer part of a section (including section head). Defaults to `--primary`
|
||||||
|
- `--item-group-background` - The background color for the inner part of item groups. Defaults to `#0b1021cc` (semi-transparent black)
|
||||||
|
- `--item-group-heading-text-color` - The text color for section headings. Defaults to `--item-group-background`;
|
||||||
|
- `--item-group-heading-text-color-hover` - The text color for section headings, when hovered. Defaults to `--background`
|
||||||
|
- `--config-code-background` - Background color for the JSON editor in the config menu. Defaults to `#fff` (white)
|
||||||
|
- `--config-code-color` - Text color for the non-highlighted code within the JSON editor. Defaults to `--background`
|
||||||
|
- `--config-settings-color` - The background for the config/ settings pop-up modal. Defaults to `--primary`
|
||||||
|
- `--config-settings-background` - The text color for text within the settings container. Defaults to `--background-darker`
|
||||||
|
- `--scroll-bar-color` - Color of the scroll bar thumb. Defaults to `--primary`
|
||||||
|
- `--scroll-bar-background` Color of the scroll bar blank space. Defaults to `--background-darker`
|
||||||
|
- `--highlight-background` Fill color for text highlighting. Defaults to `--primary`
|
||||||
|
- `--highlight-color` Text color for selected/ highlighted text. Defaults to `--background`
|
||||||
|
- `--toast-background` - Background color for the toast info popup. Defaults to `--primary`
|
||||||
|
- `--toast-color` - Text, icon and border color in the toast info popup. Defaults to `--background`
|
||||||
|
- `--welcome-popup-background` - Background for the info pop-up shown on first load. Defaults to `--background-darker`
|
||||||
|
- `--welcome-popup-text-color` - Text color for the welcome pop-up. Defaults to `--primary`
|
||||||
|
- `--side-bar-background` - Background color of the sidebar used in the workspace view. Defaults to `--background-darker`
|
||||||
|
- `--side-bar-color` - Color of icons and text within the sidebar. Defaults to `--primary`
|
||||||
|
- `--status-check-tooltip-background` - Background color for status check tooltips. Defaults to `--background-darker`
|
||||||
|
- `--status-check-tooltip-color` - Text color for the status check tooltips. Defaults to `--primary`
|
||||||
|
- `--code-editor-color` - Text color used within raw code editors. Defaults to `--black`
|
||||||
|
- `--code-editor-background` - Background color for raw code editors. Defaults to `--white`
|
||||||
|
- `--context-menu-color` - Text color for right-click context menu over items. Defaults to `--primary`
|
||||||
|
- `--context-menu-background` - Background color of right-click context menu. Defaults to `--background`
|
||||||
|
- `--context-menu-secondary-color` - Border and outline color for context menu. Defaults to `--background-darker`
|
||||||
|
|
||||||
|
### Non-Color Variables
|
||||||
|
|
||||||
|
- `--outline-color` - Used to outline focused or selected elements
|
||||||
|
- `--curve-factor-navbar` - The border radius of the navbar. Usually this is greater than `--curve-factor`
|
||||||
|
- `--scroll-bar-width` - Width of horizontal and vertical scroll bars. E.g. `8px`
|
||||||
|
- `--item-group-padding` - Inner padding of sections, determines the width of outline. E.g. `5px`
|
||||||
|
- `--item-shadow` - Shadow for items. E.g. `1px 1px 2px #130f23`
|
||||||
|
- `--item-hover-shadow` - Shadow for items when hovered over. E.g. `1px 2px 4px #373737`
|
||||||
|
- `--item-icon-transform` - A [transform](https://developer.mozilla.org/en-US/docs/Web/CSS/transform) property, to modify item icons. E.g. `drop-shadow(2px 4px 6px var(--transparent-50)) saturate(0.65)`
|
||||||
|
- `--item-icon-transform-hover` - Same as above, but applied when an item is hovered over. E.g. `drop-shadow(4px 8px 3px var(--transparent-50)) saturate(2)`
|
||||||
|
- `--item-group-shadow` - The shadow for an item group/ section. Defaults to `--item-shadow`
|
||||||
|
- `--settings-container-shadow` - A shadow property for the settings container. E.g. `none`
|
||||||
|
|
||||||
|
### Action Colors
|
||||||
|
|
||||||
|
These colors represent intent, and so are not often changed, but you can do so if you wish
|
||||||
|
|
||||||
|
- `--info` - Information color, usually blue / `#04e4f4`
|
||||||
|
- `--success` - Success color, usually green / `#20e253`
|
||||||
|
- `--warning` - Warning color, usually yellow / `#f6f000`
|
||||||
|
- `--danger` - Error/ danger color, usually red / `#f80363`
|
||||||
|
- `--neutral` - Neutral color, usually grey / `#272f4d`
|
||||||
|
- `--white` - Just white / `#fff`
|
||||||
|
- `--black` - Just black / `#000`
|
|
@ -0,0 +1,661 @@
|
||||||
|
# Troubleshooting
|
||||||
|
|
||||||
|
> _**This document contains common problems and their solutions.**_<br>
|
||||||
|
> Please ensure your issue isn't listed here, before opening a new ticket.
|
||||||
|
>
|
||||||
|
> _Found something not listed here? Consider adding it, to help other users._
|
||||||
|
|
||||||
|
## Contents
|
||||||
|
|
||||||
|
- [Config not saving](#config-not-saving)
|
||||||
|
- [Refused to Connect in Web Content View](#refused-to-connect-in-modal-or-workspace-view)
|
||||||
|
- [404 On Static Hosting](#404-on-static-hosting)
|
||||||
|
- [404 from Mobile Home Screen](#404-after-launch-from-mobile-home-screen)
|
||||||
|
- [Yarn Build or Run Error](#yarn-error)
|
||||||
|
- [Remote Config Not Loading](#remote-config-not-loading)
|
||||||
|
- [Heap limit Allocation failed](#ineffective-mark-compacts-near-heap-limit-allocation-failed)
|
||||||
|
- [Command failed with signal "SIGKILL"](#command-failed-with-signal-sigkill)
|
||||||
|
- [Auth Validation Error: "should be object"](#auth-validation-error-should-be-object)
|
||||||
|
- [App Not Starting After Update to 2.0.4](#app-not-starting-after-update-to-204)
|
||||||
|
- [Keycloak Redirect Error](#keycloak-redirect-error)
|
||||||
|
- [Docker Directory Error](#docker-directory)
|
||||||
|
- [Config not Saving on Vercel / Netlify / CDN](#user-content-config-not-saving-on-vercel--netlify--cdn)
|
||||||
|
- [Config Not Updating](#config-not-updating)
|
||||||
|
- [Config Still not Updating](#config-still-not-updating)
|
||||||
|
- [Styles and Assets not Updating](#styles-and-assets-not-updating)
|
||||||
|
- [DockerHub toomanyrequests](#dockerhub-toomanyrequests)
|
||||||
|
- [Config Validation Errors](#config-validation-errors)
|
||||||
|
- [Node Sass unsupported environment](#node-sass-does-not-yet-support-your-current-environment)
|
||||||
|
- [Unreachable Code Error](#unreachable-code-error)
|
||||||
|
- [Cannot find module './_baseValues'](#error-cannot-find-module-_basevalues)
|
||||||
|
- [Ngrok Invalid Host Headers](#invalid-host-header-while-running-through-ngrok)
|
||||||
|
- [Warnings in the Console during deploy](#warnings-in-the-console-during-deploy)
|
||||||
|
- [Docker Login Fails on Ubuntu](#docker-login-fails-on-ubuntu)
|
||||||
|
- [Status Checks Failing](#status-checks-failing)
|
||||||
|
- [Diagnosing Widget Errors](#widget-errors)
|
||||||
|
- [Fixing Widget CORS Errors](#widget-cors-errors)
|
||||||
|
- [Widget Shows Error Incorrectly](#widget-shows-error-incorrectly)
|
||||||
|
- [Weather Forecast Widget 401](#weather-forecast-widget-401)
|
||||||
|
- [Widget Displaying Inaccurate Data](#widget-displaying-inaccurate-data)
|
||||||
|
- [Font Awesome Icons not Displaying](#font-awesome-icons-not-displaying)
|
||||||
|
- [Copy to Clipboard not Working](#copy-to-clipboard-not-working)
|
||||||
|
- [Unsupported Digital Envelope Routines](#unsupported-digital-envelope-routines)
|
||||||
|
- [How to Reset Local Settings](#how-to-reset-local-settings)
|
||||||
|
- [How to make a bug report](#how-to-make-a-bug-report)
|
||||||
|
- [How-To Open Browser Console](#how-to-open-browser-console)
|
||||||
|
- [Git Contributions not Displaying](#git-contributions-not-displaying)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Config not saving
|
||||||
|
|
||||||
|
### Possible Issue 1: Unable to call save endpoint from CDN/static server
|
||||||
|
If you're running Dashy using a static hosting provider (like Vercel), then there is no Node server, and so the save config action will not work via the UI.
|
||||||
|
You'll instead need to copy the YAML after making your changes, and paste that into your `conf.yml` directly. If you've connected Vercel to git, then these changes will take effect automatically, once you commit your changes.
|
||||||
|
Look here for more information: [https://dashy.to/docs/deployment#deploy-to-cloud-service](https://dashy.to/docs/deployment#deploy-to-cloud-service)
|
||||||
|
|
||||||
|
If you're running on Netlify, there are some cloud functions which take care of all the server endpoints (like status checking), so these will work as expected.
|
||||||
|
|
||||||
|
See also [#1465](https://github.com/Lissy93/dashy/issues/1465)
|
||||||
|
|
||||||
|
### Possible Issue 2: Unable to save
|
||||||
|
In Docker, double check that the file isn't read-only, and that the container actually has permissions to modify it. You shouldn't really be running it as a root user, and I'm not sure if it will work if you do-
|
||||||
|
|
||||||
|
### Possible Issue 3: Saved but not updating
|
||||||
|
After saving, the frontend will recompile, which may take a couple seconds (or a bit longer on a Pi or low-powered device). If it doesn't recompile, you can manually trigger a re-build.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## `Refused to Connect` in Modal or Workspace View
|
||||||
|
|
||||||
|
This is not an issue with Dashy, but instead caused by the target app preventing direct access through embedded elements.
|
||||||
|
|
||||||
|
As defined in [RFC-7034](https://datatracker.ietf.org/doc/html/rfc7034), for any web content to be accessed through an embedded element, it must have the [`X-Frame-Options`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options) HTTP header set to `ALLOW`. If you are getting a `Refused to Connect` error then this header is set to `DENY` (or `SAMEORIGIN` and it's on a different host). Thankfully, for self-hosted services, it is easy to set these headers.
|
||||||
|
|
||||||
|
These settings are usually set in the config file for the web server that's hosting the target application, here are some examples of how to enable cross-origin access with common web servers:
|
||||||
|
|
||||||
|
### NGINX
|
||||||
|
|
||||||
|
In NGINX, you can use the [`add_header`](https://nginx.org/en/docs/http/ngx_http_headers_module.html) module within the app block.
|
||||||
|
|
||||||
|
```text
|
||||||
|
server {
|
||||||
|
...
|
||||||
|
add_header X-Frame-Options SAMEORIGIN always;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Then reload with `service nginx reload`
|
||||||
|
|
||||||
|
### Caddy
|
||||||
|
|
||||||
|
In Caddy, you can use the [`header`](https://caddyserver.com/docs/caddyfile/directives/header) directive.
|
||||||
|
|
||||||
|
```text
|
||||||
|
header {
|
||||||
|
X-Frame-Options SAMEORIGIN
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Apache
|
||||||
|
|
||||||
|
In Apache, you can use the [`mod_headers`](https://httpd.apache.org/docs/current/mod/mod_headers.html) module to set the `X-Frame-Options` in your config file. This file is usually located somewhere like `/etc/apache2/httpd.conf
|
||||||
|
|
||||||
|
```text
|
||||||
|
Header set X-Frame-Options: "ALLOW-FROM http://[dashy-location]/"
|
||||||
|
```
|
||||||
|
|
||||||
|
### LightHttpd
|
||||||
|
|
||||||
|
```text
|
||||||
|
Content-Security-Policy: frame-ancestors 'self' https://[dashy-location]/
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 404 On Static Hosting
|
||||||
|
|
||||||
|
If you're seeing Dashy's 404 page on initial load/ refresh, and then the main app when you go back to Home, then this is likely caused by the Vue router, and if so can be fixed in one of two ways.
|
||||||
|
|
||||||
|
The first solution is to switch the routing mode, from HTML5 `history` mode to `hash` mode, by setting `appConfig.routingMode` to `hash`.
|
||||||
|
|
||||||
|
If this works, but you wish to continue using HTML5 history mode, then a bit of extra [server configuration](/docs/management.md#web-server-configuration) is required. This is explained in more detaail in the [Vue Docs](https://router.vuejs.org/guide/essentials/history-mode.html). Once completed, you can then use `routingMode: history` again, for neater URLs.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 404 after Launch from Mobile Home Screen
|
||||||
|
|
||||||
|
Similar to the above issue, if you get a 404 after using iOS and Android's "Add to Home Screen" feature, then this is caused by Vue router.
|
||||||
|
It can be fixed by setting `appConfig.routingMode` to `hash`
|
||||||
|
|
||||||
|
See also: [#628](https://github.com/Lissy93/dashy/issues/628), [#762](https://github.com/Lissy93/dashy/issues/762)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 404 On Multi-Page Apps
|
||||||
|
|
||||||
|
Similar to above, if you get a 404 error when visiting a page directly on multi-page apps, then this can be fixed under `appConfig`, by setting `routingMode` to `hash`. Then rebuilding, and refreshing the page.
|
||||||
|
|
||||||
|
See also: [#670](https://github.com/Lissy93/dashy/issues/670), [#763](https://github.com/Lissy93/dashy/issues/763)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Yarn Error
|
||||||
|
|
||||||
|
For more info, see [Issue #1](https://github.com/Lissy93/dashy/issues/1)
|
||||||
|
|
||||||
|
First of all, check that you've got yarn installed correctly - see the [yarn installation docs](https://classic.yarnpkg.com/en/docs/install) for more info.
|
||||||
|
|
||||||
|
If you're getting an error about scenarios, then you've likely installed the wrong yarn... (you're [not](https://github.com/yarnpkg/yarn/issues/2821) the only one!). You can fix it by uninstalling, adding the correct repo, and reinstalling, for example, in Debian:
|
||||||
|
|
||||||
|
- `sudo apt remove yarn`
|
||||||
|
- `curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -`
|
||||||
|
- `echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list`
|
||||||
|
- `sudo apt update && sudo apt install yarn`
|
||||||
|
|
||||||
|
Alternatively, as a workaround, you have several options:
|
||||||
|
|
||||||
|
- Try using [NPM](https://www.npmjs.com/get-npm) instead: So clone, cd, then run `npm install`, `npm run build` and `npm start`
|
||||||
|
- Try using [Docker](https://www.docker.com/get-started) instead, and all of the system setup and dependencies will already be taken care of. So from within the directory, just run `docker build -t lissy93/dashy .` to build, and then use docker start to run the project, e.g: `docker run -it -p 8080:8080 lissy93/dashy` (see the [deploying docs](https://github.com/Lissy93/dashy/blob/master/docs/deployment.md#deploy-with-docker) for more info)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Remote Config Not Loading
|
||||||
|
|
||||||
|
If you've got a multi-page dashboard, and are hosting the additional config files yourself, then CORS rules will apply. A CORS error will look something like:
|
||||||
|
|
||||||
|
```text
|
||||||
|
Access to XMLHttpRequest at 'https://example.com/raw/my-config.yml' from origin 'http://dashy.local' has been blocked by CORS policy:
|
||||||
|
No 'Access-Control-Allow-Origin' header is present on the requested resource.
|
||||||
|
```
|
||||||
|
|
||||||
|
The solution is to add the appropriate headers onto the target server, to allow it to accept requests from the origin where you're running Dashy.
|
||||||
|
|
||||||
|
If it is a remote service, that you do not have admin access to, then another option is to proxy the request. Either host your own, or use a publicly accessible service, like [allorigins.win](https://allorigins.win), e.g: `https://api.allorigins.win/raw?url=https://pastebin.com/raw/4tZpaJV5`. For git-based services specifically, there's [raw.githack.com](https://raw.githack.com/)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Ineffective mark-compacts near heap limit Allocation failed
|
||||||
|
|
||||||
|
If you see an error message, similar to:
|
||||||
|
|
||||||
|
```text
|
||||||
|
<--- Last few GCs --->
|
||||||
|
|
||||||
|
[61:0x74533040] 229060 ms: Mark-sweep (reduce) 127.1 (236.9) -> 127.1 (137.4) MB, 5560.7 / 0.3 ms (average mu = 0.286, current mu = 0.011) allocation failure scavenge might not succeed
|
||||||
|
|
||||||
|
<--- JS stacktrace --->
|
||||||
|
|
||||||
|
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
|
||||||
|
```
|
||||||
|
|
||||||
|
This is likely caused by insufficient memory allocation to the container. When the container first starts up, or has to rebuild, the memory usage spikes, and if there isn't enough memory, it may terminate. This can be specified with, for example: `--memory=1024m`. For more info, see [Docker: Runtime options with Memory, CPUs, and GPUs](https://docs.docker.com/config/containers/resource_constraints/).
|
||||||
|
|
||||||
|
See also: [#380](https://github.com/Lissy93/dashy/issues/380), [#350](https://github.com/Lissy93/dashy/issues/350), [#297](https://github.com/Lissy93/dashy/issues/297), [#349](https://github.com/Lissy93/dashy/issues/349), [#510](https://github.com/Lissy93/dashy/issues/510), [#511](https://github.com/Lissy93/dashy/issues/511) and [#834](https://github.com/Lissy93/dashy/issues/834)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Command failed with signal "SIGKILL"
|
||||||
|
|
||||||
|
In Docker, this can be caused by not enough memory. When the container first starts up, or has to rebuild, the memory usage spikes, and so a larger allocation may be required. This can be specified with, for example: `--memory=1024m`. For more info, see [Docker: Runtime options with Memory, CPUs, and GPUs](https://docs.docker.com/config/containers/resource_constraints/)
|
||||||
|
|
||||||
|
See also [#624](https://github.com/Lissy93/dashy/issues/624)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Auth Validation Error: "should be object"
|
||||||
|
|
||||||
|
In V 1.6.5 an update was made that in the future will become a breaking change. You will need to update you config to reflect this before V 2.0.0 is released. In the meantime, your previous config will continue to function normally, but you will see a validation warning. The change means that the structure of the `appConfig.auth` object is now an object, which has a `users` property.
|
||||||
|
|
||||||
|
For more info, see [this announcement](https://github.com/Lissy93/dashy/discussions/177).
|
||||||
|
|
||||||
|
You can fix this by replacing:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
auth:
|
||||||
|
- user: xxx
|
||||||
|
hash: xxx
|
||||||
|
```
|
||||||
|
|
||||||
|
with
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
auth:
|
||||||
|
users:
|
||||||
|
- user: xxx
|
||||||
|
hash: xxx
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## App Not Starting After Update to 2.0.4
|
||||||
|
|
||||||
|
Version 2.0.4 introduced changes to how the config is read, and the app is build. If you were previously mounting `/public` as a volume, then this will over-write the build app, preventing it from starting. The solution is to just pass in the file(s) / sub-directories that you need. For example:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
volumes:
|
||||||
|
- /srv/dashy/conf.yml:/app/user-data/conf.yml
|
||||||
|
- /srv/dashy/item-icons:/app/public/item-icons
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Keycloak Redirect Error
|
||||||
|
|
||||||
|
Check the [browser's console output](#how-to-open-browser-console), if you've not set any headers, you will likely see a CORS error here, which would be the source of the issue.
|
||||||
|
|
||||||
|
You need to allow Dashy to make requests to Keycloak, and Keycloak to redirect to Dashy. The way you do this depends on how you're hosting these applications / which proxy you are using, and examples can be found in the [Management Docs](/docs/management.md#setting-headers).
|
||||||
|
|
||||||
|
For example, add the access control header to Keycloak, like:
|
||||||
|
|
||||||
|
`Access-Control-Allow-Origin [URL-of Dashy]`
|
||||||
|
|
||||||
|
Note that for requests that transport sensitive info like credentials, setting the accept header to a wildcard (`*`) is not allowed - see [MDN Docs](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#requests_with_credentials), so you will need to specify the actual URL.
|
||||||
|
|
||||||
|
You should also ensure that Keycloak is correctly configured, with a user, realm and application, and be sure that you have set a valid redirect URL in Keycloak ([screenshot](https://user-images.githubusercontent.com/1862727/148599768-db4ee4f8-72c5-402d-8f00-051d999e6267.png)).
|
||||||
|
|
||||||
|
For more details on how to set headers, see the [Example Headers](/docs/management.md#setting-headers) in the management docs, or reference the documentation for your proxy.
|
||||||
|
|
||||||
|
If you're running in Kubernetes, you will need to enable CORS ingress rules, see [docs](https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#enable-cors), e.g:
|
||||||
|
|
||||||
|
```text
|
||||||
|
nginx.ingress.kubernetes.io/cors-allow-origin: "https://dashy.example.com"
|
||||||
|
nginx.ingress.kubernetes.io/enable-cors: "true"
|
||||||
|
```
|
||||||
|
|
||||||
|
See also: #479, #409, #507, #491, #341, #520
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Docker Directory
|
||||||
|
|
||||||
|
```text
|
||||||
|
Error response from daemon: OCI runtime create failed: container_linux.go:380:
|
||||||
|
starting container process caused: process_linux.go:545: container init caused:
|
||||||
|
rootfs_linux.go:76: mounting "/home/ubuntu/my-conf.yml" to rootfs at
|
||||||
|
"/app/user-data/conf.yml" caused: mount through procfd: not a directory:
|
||||||
|
unknown: Are you trying to mount a directory onto a file (or vice-versa)?
|
||||||
|
Check if the specified host path exists and is the expected type.
|
||||||
|
```
|
||||||
|
|
||||||
|
If you get an error similar to the one above, you are mounting a directory to the config file's location, when a plain file is expected. Create a YAML file, (`touch my-conf.yml`), populate it with a sample config, then pass it as a volume: `-v ./my-local-conf.yml:/app/user-data/conf.yml`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Config not Saving on Vercel / Netlify / CDN
|
||||||
|
|
||||||
|
If you're running Dashy using a static hosting provider (like Vercel), then there is no Node server, and so the save config action will not work via the UI.
|
||||||
|
You'll instead need to copy the YAML after making your changes, and paste that into your `conf.yml` directly. If you've connected Vercel to git, then these changes will take effect automatically, once you commit your changes.
|
||||||
|
|
||||||
|
If you're running on Netlify, there are some cloud functions which take care of all the server endpoints (like status checking), so these will work as expected.
|
||||||
|
|
||||||
|
See also [#1465](https://github.com/Lissy93/dashy/issues/1465)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Config Not Updating
|
||||||
|
|
||||||
|
Dashy has the option to save settings and config locally, in browser storage. Anything here will take precedence over whatever is in your config file, sometimes with unintended consequences. If you've updated the config file manually, and are not seeing changes reflected in the UI, then try visiting the site in Incognito mode. If that works, then the solution is just to clear local storage. This can be done from the config menu, under "Clear Local Settings".
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Config Still not Updating
|
||||||
|
|
||||||
|
Sometimes your text editor updates files [inode](https://linuxhandbook.com/inode-linux/), meaning changes will not be picked up by the Docker container. This [article](https://medium.com/@jonsbun/why-need-to-be-careful-when-mounting-single-files-into-a-docker-container-4f929340834) explains things further.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Styles and Assets not Updating
|
||||||
|
|
||||||
|
If you find that your styles and other visual assets work when visiting `ip:port` by not `dashy.domain.com`, then this is usually caused by caching. In your browser, do a hard-refresh (<kbd>Ctrl</kbd> + <kbd>F5</kbd>). If you use Cloudflare, then you can clear the cache through the management console, or set the cache level to Bypass for certain files, under the Rules tab.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## DockerHub `toomanyrequests`
|
||||||
|
|
||||||
|
This situation relates to error messages similar to one of the following, returned when pulling, updating or running the Docker container from Docker Hub.
|
||||||
|
|
||||||
|
```text
|
||||||
|
Continuing execution. Pulling image lissy93/dashy:release-1.6.0
|
||||||
|
error pulling image configuration: toomanyrequests
|
||||||
|
```
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
```text
|
||||||
|
You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit
|
||||||
|
```
|
||||||
|
|
||||||
|
When DockerHub returns one of these errors, or a `429` status, that means you've hit your rate limit. This was [introduced](https://www.docker.com/blog/scaling-docker-to-serve-millions-more-developers-network-egress/) last year, and prevents unauthenticated or free users from running docker pull more than 100 times per 6 hours.
|
||||||
|
You can [check your rate limit status](https://www.docker.com/blog/checking-your-current-docker-pull-rate-limits-and-status/) by looking for the `ratelimit-remaining` header in any DockerHub responses.
|
||||||
|
|
||||||
|
### Solution 1 - Use an alternate container registry
|
||||||
|
|
||||||
|
- Dashy is also available through GHCR, which at present does not have any hard limits. Just use `docker pull ghcr.io/lissy93/dashy:latest` to fetch the image
|
||||||
|
- You can also build the image from source, by cloning the repo, and running `docker build -t dashy .` or use the pre-made docker compose
|
||||||
|
|
||||||
|
### Solution 2 - Increase your rate limits
|
||||||
|
|
||||||
|
- Logging in to DockerHub will increase your rate limit from 100 requests to 200 requests per 6 hour period
|
||||||
|
- Upgrading to a Pro for $5/month will increase your image requests to 5,000 per day, and any plans above have no rate limits
|
||||||
|
- Since rate limits are counted based on your IP address, proxying your requests, or using a VPN may work
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Config Validation Errors
|
||||||
|
|
||||||
|
The configuration file is validated against [Dashy's Schema](https://github.com/Lissy93/dashy/blob/master/src/utils/ConfigSchema.json) using AJV.
|
||||||
|
|
||||||
|
First, check that your syntax is valid, using [YAML Validator](https://codebeautify.org/yaml-validator/) or [JSON Validator](https://codebeautify.org/jsonvalidator). If the issue persists, then take a look at the [schema](https://github.com/Lissy93/dashy/blob/master/src/utils/ConfigSchema.json), and verify that the field you are trying to add/ modify matches the required format. You can also use [this tool](https://www.jsonschemavalidator.net/s/JFUj7X9J) to validate your JSON config against the schema, or run `yarn validate-config`.
|
||||||
|
|
||||||
|
If you're trying to use a recently released feature, and are getting a warning, this is likely because you've not yet updated the the current latest version of Dashy.
|
||||||
|
|
||||||
|
If the issue still persists, you should raise an issue.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Node Sass does not yet support your current environment
|
||||||
|
|
||||||
|
Caused by node-sass's binaries being built for a for a different architecture
|
||||||
|
To fix this, just run: `yarn rebuild node-sass`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Unreachable Code Error
|
||||||
|
|
||||||
|
An error similar to: `Fatal error in , line 0. Unreachable code, FailureMessage Object: 0xffe6c8ac. Illegal instruction (core dumped)`
|
||||||
|
Is related to a bug in a downstream package, see [nodejs/docker-node#1477](https://github.com/nodejs/docker-node/issues/1477).
|
||||||
|
Usually, updating your system and packages will resolve the issue.
|
||||||
|
|
||||||
|
See also: [#776](https://github.com/Lissy93/dashy/issues/776)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Error: Cannot find module './_baseValues'
|
||||||
|
|
||||||
|
Clearing the cache should fix this: `yarn cache clean`
|
||||||
|
If the issue persists, remove (`rm -rf node_modules\ yarn.lock`) and reinstall (`yarn`) node_modules
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Invalid Host Header while running through ngrok
|
||||||
|
|
||||||
|
Just add the [-host-header](https://ngrok.com/docs#http-host-header) flag, e.g. `ngrok http 8080 -host-header="localhost:8080"`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Warnings in the Console during deploy
|
||||||
|
|
||||||
|
Please acknowledge the difference between errors and warnings before raising an issue about messages in the console. It's not unusual to see warnings about a new version of a certain package being available, an asset bundle bing oversized or a service worker not yet having a cache. These shouldn't have any impact on the running application, so please don't raise issues about these unless it directly relates to a bug or issue you're experiencing. Errors on the other hand should not appear in the console, and they are worth looking into further.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Docker Login Fails on Ubuntu
|
||||||
|
|
||||||
|
Run `sudo apt install gnupg2 pass && gpg2 -k`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Status Checks Failing
|
||||||
|
|
||||||
|
If you're using status checks, and despite a given service being online, the check is displaying an error, there are a couple of things you can look at:
|
||||||
|
|
||||||
|
If your service requires requests to include any authorization in the headers, then use the `statusCheckHeaders` property, as described in the [docs](/docs/status-indicators.md#setting-custom-headers).
|
||||||
|
|
||||||
|
If you are still having issues, it may be because your target application is blocking requests from Dashy's IP. This is a [CORS error](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS), and can be fixed by setting the headers on your target app, to include:
|
||||||
|
|
||||||
|
```text
|
||||||
|
Access-Control-Allow-Origin: https://location-of-dashy/
|
||||||
|
Vary: Origin
|
||||||
|
```
|
||||||
|
|
||||||
|
If the URL you are checking has an unsigned certificate, or is not using HTTPS, then you may need to disable the rejection of insecure requests. This can be done by setting `statusCheckAllowInsecure` to true for a given item.
|
||||||
|
|
||||||
|
If your service is online, but responds with a status code that is not in the 2xx range, then you can use `statusCheckAcceptCodes` to set an accepted status code.
|
||||||
|
|
||||||
|
If you get an error, like `Service Unavailable: Server resulted in a fatal error`, even when it's definitely online, this is most likely caused by missing the protocol. Don't forget to include `https://` (or whatever protocol) before the URL, and ensure that if needed, you've specified the port.
|
||||||
|
|
||||||
|
Running Dashy in HOST network mode, instead of BRIDGE will allow status check access to other services in HOST mode. For more info, see [#445](https://github.com/Lissy93/dashy/discussions/445).
|
||||||
|
|
||||||
|
If you have firewall rules configured, then ensure that they don't prevent Dashy from making requests to the other services you are trying to access.
|
||||||
|
|
||||||
|
Currently, the status check needs a page to be rendered, so if this URL in your browser does not return anything, then status checks will not work. This may be modified in the future, but in the meantime, a fix would be to make your own status service, which just checks if your app responds with whatever code you'd like, and then return a 200 plus renders an arbitrary message. Then just point `statusCheckUrl` to your custom page.
|
||||||
|
|
||||||
|
For further troubleshooting, use an application like [Postman](https://postman.com) to diagnose the issue. Set the parameter to `GET`, and then make a call to: `https://[url-of-dashy]/status-check/?&url=[service-url]`. Where the service URL must have first been encoded (e.g. with `encodeURIComponent()` or [urlencoder.io](https://www.urlencoder.io/))
|
||||||
|
|
||||||
|
If you're serving Dashy though a CDN, instead of using the Node server or Docker image, then the Node endpoint that makes requests will not be available to you, and all requests will fail. A workaround for this may be implemented in the future, but in the meantime, your only option is to use the Docker or Node deployment method.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Widget Errors
|
||||||
|
|
||||||
|
### Find Error Message
|
||||||
|
|
||||||
|
If an error occurs when fetching or rendering results, you will see a short message in the UI. If that message doesn't adequately explain the problem, then you can [open the browser console](/docs/troubleshooting.md#how-to-open-browser-console) to see more details.
|
||||||
|
|
||||||
|
### Check Config
|
||||||
|
|
||||||
|
Before proceeding, ensure that if the widget requires auth your API is correct, and for custom widgets, double check that the URL and protocol is correct.
|
||||||
|
|
||||||
|
### Timeout Error
|
||||||
|
|
||||||
|
If the error message in the console includes: `Error: timeout of 500ms exceeded`, then your Glances endpoint is slower to respond than expected. You can fix this by [setting timeout](https://github.com/Lissy93/dashy/blob/master/docs/widgets.md#setting-timeout) to a larger value. This is done on each widget, with the `timeout` attribute, and is specified in ms. E.g. `timeout: 5000` would only fail if no response is returned within 5 seconds.
|
||||||
|
|
||||||
|
### CORS error
|
||||||
|
|
||||||
|
If the console message mentions to corss-origin blocking, then this is a CORS error, see: [Fixing Widget CORS Errors](#widget-cors-errors)
|
||||||
|
|
||||||
|
### More Info
|
||||||
|
|
||||||
|
If you're able to, you can find more information about why the request may be failing in the Dev Tools under the Network tab, and you can ensure your endpoint is correct and working using a tool like Postman.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Widget CORS Errors
|
||||||
|
|
||||||
|
The most common widget issue is a CORS error. This is a browser security mechanism which prevents the client-side app (Dashy) from from accessing resources on a remote origin, without that server's explicit permission (e.g. with headers like Access-Control-Allow-Origin). See the MDN Docs for more info: [Cross-Origin Resource Sharing](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS).
|
||||||
|
|
||||||
|
There are several ways to fix a CORS error:
|
||||||
|
|
||||||
|
### Option 1 - Ensure Correct Protocol
|
||||||
|
|
||||||
|
You will get a CORS error if you try and access a http service from a https source. So ensure that the URL you are requesting has the right protocol, and is correctly formatted.
|
||||||
|
|
||||||
|
### Option 2 - Set Headers
|
||||||
|
|
||||||
|
If you have control over the destination (e.g. for a self-hosted service), then you can simply apply the correct headers.
|
||||||
|
Add the `Access-Control-Allow-Origin` header, with the value of either `*` to allow requests from anywhere, or more securely, the host of where Dashy is served from. For example:
|
||||||
|
|
||||||
|
```text
|
||||||
|
Access-Control-Allow-Origin: https://url-of-dashy.local
|
||||||
|
```
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
```text
|
||||||
|
Access-Control-Allow-Origin: *
|
||||||
|
```
|
||||||
|
|
||||||
|
For more info on how to set headers, see: [Setting Headers](/docs/management.md#setting-headers) in the management docs
|
||||||
|
|
||||||
|
### Option 3 - Proxying Request
|
||||||
|
|
||||||
|
You can route requests through Dashy's built-in CORS proxy. Instructions and more details can be found [here](/docs/widgets.md#proxying-requests). If you don't have control over the target origin, and you are running Dashy either through Docker, with the Node server or on Netlify, then this solution will work for you.
|
||||||
|
|
||||||
|
Just add the `useProxy: true` option to the failing widget.
|
||||||
|
|
||||||
|
### Option 4 - Use a plugin
|
||||||
|
|
||||||
|
For testing purposes, you can use an addon, which will disable the CORS checks. You can get the Allow-CORS extension for [Chrome](https://chrome.google.com/webstore/detail/allow-cors-access-control/lhobafahddgcelffkeicbaginigeejlf?hl=en-US) or [Firefox](https://addons.mozilla.org/en-US/firefox/addon/access-control-allow-origin/), more details [here](https://mybrowseraddon.com/access-control-allow-origin.html)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Widget Shows Error Incorrectly
|
||||||
|
|
||||||
|
When there's an error fetching or displaying a widgets data, then it will be highlighted in yellow, and a message displayed on the UI.
|
||||||
|
|
||||||
|
In some instances, this is a false positive, and the widget is actually functioning correctly.
|
||||||
|
If this is the case, you can disable the UI error message of a given widget by setting: `ignoreErrors: true`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Weather Forecast Widget 401
|
||||||
|
|
||||||
|
A 401 error means your API key is invalid, it is not an issue with Dashy.
|
||||||
|
|
||||||
|
Usually this happens due to an error in your config. If you're unsure, copy and paste the [example](/docs/widgets.md#weather) config, replacing the API key with your own.
|
||||||
|
|
||||||
|
Check that `apiKey` is correctly specified, and nested within `options`. Ensure your input city is valid.
|
||||||
|
|
||||||
|
To test your API key, try making a request to `https://api.openweathermap.org/data/2.5/weather?q=London&appid=[your-api-key]`
|
||||||
|
|
||||||
|
If [Weather widget](/docs/widgets.md#weather-forecast) is working fine, but you are getting a `401` for the [Weather Forecast widget](/docs/widgets.md#weather-forecast), then this is also an OWM API key issue.
|
||||||
|
Since the forecasting API requires an upgraded plan. ULPT: You can get a free, premium API key by filling in [this form](https://home.openweathermap.org/students). It's a student plan, but there's no verification to check that you are still a student.
|
||||||
|
|
||||||
|
A future update will be pushed out, to use a free weather forecasting API.
|
||||||
|
|
||||||
|
See also: [#803](https://github.com/Lissy93/dashy/issues/803), [#789](https://github.com/Lissy93/dashy/issues/789), [#577](https://github.com/Lissy93/dashy/issues/577), [#621](https://github.com/Lissy93/dashy/issues/621), [#578](https://github.com/Lissy93/dashy/issues/578), [#806](https://github.com/Lissy93/dashy/discussions/806)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Widget Displaying Inaccurate Data
|
||||||
|
|
||||||
|
If any widget is not displaying the data you expect, first confirm that your config is correct, then try manually calling the API endpoint.
|
||||||
|
|
||||||
|
If the raw API output is correct, yet the widget is rendering incorrect results, then it is likely a bug, and a ticket should be raised. You can start to debug the issue, by looking at the widget's code ([here](https://github.com/Lissy93/dashy/tree/master/src/components/Widgets)), and the browser console + networking tab.
|
||||||
|
|
||||||
|
If the API itself is returning incorrect, incomplete or inaccurate data then an issue needs to be raised **with the API provider** (not Dashy!). You can find the API provider included within the widget docs, or for a full list see the [Privacy Docs](https://github.com/Lissy93/dashy/blob/master/docs/privacy.md#widgets).
|
||||||
|
|
||||||
|
See also: [#807](https://github.com/Lissy93/dashy/issues/807) (re, domain monitor)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Font Awesome Icons not Displaying
|
||||||
|
|
||||||
|
Usually, Font Awesome will be automatically enabled if one or more of your icons are using Font-Awesome. If this is not happening, then you can always manually enable (or disable) Font Awesome by setting: [`appConfig`](/docs/configuring.md#appconfig-optional).`enableFontAwesome` to `true`.
|
||||||
|
|
||||||
|
If you are trying to use a premium icon, then you must have a [Pro License](https://fontawesome.com/plans). You'll then need to specify your Pro plan API key under `appConfig.fontAwesomeKey`. You can find this key, by logging into your FA account, navigate to Account → [Kits](https://fontawesome.com/kits) → New Kit → Copy Kit Code. The code is a 10-digit alpha-numeric code, and is also visible within the new kit's URL, for example: `81e48ce079`.
|
||||||
|
|
||||||
|
<p align="center"><img src="https://i.ibb.co/hZ0D9vs/where-do-i-find-my-font-awesome-key.png" width="600" /></p>
|
||||||
|
|
||||||
|
Be sure that you're specifying the icon category and name correctly. You're icon should look be `[category] fa-[icon-name]`. The following categories are supported: `far` _(regular)_, `fas` _(solid)_, `fal`_(light)_, `fad` _(duo-tone)_ and `fab`_(brands)_. With the exception of brands, you'll usually want all your icons to be in from same category, so they look uniform.
|
||||||
|
|
||||||
|
Ensure the icon you are trying to use, is available within [FontAwesome Version 5](https://fontawesome.com/v5/search) (we've not yet upgraded to V6, as it works a little differently).
|
||||||
|
|
||||||
|
Examples: `fab fa-raspberry-pi`, `fas fa-database`, `fas fa-server`, `fas fa-ethernet`
|
||||||
|
|
||||||
|
Finally, check the [browser console](#how-to-open-browser-console) for any error messages, and raise a ticket if the issue persists.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Copy to Clipboard not Working
|
||||||
|
|
||||||
|
If the copy to clipboard feature (either under Config --> Export, or Item --> Copy URL) isn't functioning as expected, first check the browser console. If you see `TypeError: Cannot read properties of undefined (reading 'writeText')` then this feature is not supported by your browser.
|
||||||
|
The most common reason for this, is if you not running the app over HTTPS. Copying to the clipboard requires the app to be running in a secure origin / aka have valid HTTPS cert. You can read more about this [here](https://stackoverflow.com/a/71876238/979052).
|
||||||
|
|
||||||
|
As a workaround, you could either:
|
||||||
|
|
||||||
|
- Highlight the text and copy / <kbd>Ctrl</kbd> + <kbd>C</kbd>
|
||||||
|
- Or setup SSL - [here's a guide](https://github.com/Lissy93/dashy/blob/master/docs/management.md#ssl-certificates) on doing so
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Unsupported Digital Envelope Routines
|
||||||
|
|
||||||
|
If you're running on GitHub Codespaces, and seeing: `Error: error:0308010C:digital envelope routines::unsupported` when using Node 17+, it can be resolved by adding the `--openssl-legacy-provider` flag to your `NODE_OPTIONS` environmental variable.
|
||||||
|
For example:
|
||||||
|
|
||||||
|
```
|
||||||
|
export NODE_OPTIONS=--openssl-legacy-provider
|
||||||
|
```
|
||||||
|
|
||||||
|
This will be fixed once [webpack/webpack#17659](https://github.com/webpack/webpack/pull/17659) is merged.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## How to Reset Local Settings
|
||||||
|
|
||||||
|
Some settings are stored locally, in the browser's storage.
|
||||||
|
|
||||||
|
In some instances cached assets can prevent your settings from being updated, in which case you may wish to reset local data.
|
||||||
|
|
||||||
|
To clear all local data from the UI, head to the Config Menu, then click "Reset Local Settings", and Confirm when prompted.
|
||||||
|
This will not affect your config file. But be sure that you keep a backup of your config, if you've not written changes it to disk.
|
||||||
|
|
||||||
|
You can also view any and all data that Dashy is storing, using the developer tools. Open your browser's dev tools (usually <kbd>F12</kbd>), in Chromium head to the Application tab, or in Firefox go to the Storage tab. Select Local Storage, then scroll down the the URL Dashy is running on. You should now see all data being stored, and you can select and delete any fields you wish.
|
||||||
|
|
||||||
|
For a full list of all data that may be cached, see the [Privacy Docs](/docs/privacy.md#browser-storage).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## How to make a bug report
|
||||||
|
|
||||||
|
### Step 1 - Where to open issues
|
||||||
|
|
||||||
|
You will need a GitHub account in order to raise a ticket. You can then [click here](https://github.com/Lissy93/dashy/issues/new?assignees=lissy93&labels=%F0%9F%90%9B+Bug&template=bug.yml&title=%5BBUG%5D+%3Ctitle%3E) to open a new bug report.
|
||||||
|
|
||||||
|
### Step 2 - Checking it's not already covered
|
||||||
|
|
||||||
|
Before submitting, please check that:
|
||||||
|
|
||||||
|
- A similar ticket has not previously been opened
|
||||||
|
- The issue is not covered in the [troubleshooting guide](https://github.com/Lissy93/dashy/blob/master/docs/troubleshooting.md) or [docs](https://github.com/Lissy93/dashy/tree/master/docs#readme)
|
||||||
|
|
||||||
|
### Step 3 - Describe the Issue
|
||||||
|
|
||||||
|
Your ticket will likely be dealt with more effectively if you can explain the issue clearly, and provide all relevant supporting material.
|
||||||
|
|
||||||
|
Complete the fields, asking for your environment info and version of Dashy.
|
||||||
|
Then describe the issue, briefly explaining the steps to reproduce, expected outcome and actual outcome.
|
||||||
|
|
||||||
|
### Step 4 - Provide Supporting Info
|
||||||
|
|
||||||
|
Where relevant please also include:
|
||||||
|
|
||||||
|
- A screenshot of the issue
|
||||||
|
- The relevant parts of your config file
|
||||||
|
- Logs
|
||||||
|
- If client-side issue, then include the browser logs ([see how](#how-to-open-browser-console))
|
||||||
|
- If server-side / during deployment, include the terminal output
|
||||||
|
|
||||||
|
_Take care to redact any personal info, (like IP addresses, auth hashes or API keys)._
|
||||||
|
|
||||||
|
### Step 5 - Fix Released
|
||||||
|
|
||||||
|
A maintainer will aim to respond within 48 hours.
|
||||||
|
The timeframe for resolving your issue, will vary depending on severity of the bug and the complexity of the fix.
|
||||||
|
You will be notified on your ticket, when a fix has been released.
|
||||||
|
|
||||||
|
Finally, be sure to remain respectful to other users and project maintainers, in line with the [Contributor Covenant Code of Conduct](https://github.com/Lissy93/dashy/blob/master/.github/CODE_OF_CONDUCT.md#contributor-covenant-code-of-conduct).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## How-To Open Browser Console
|
||||||
|
|
||||||
|
When raising a bug, one crucial piece of info needed is the browser's console output. This will help the developer diagnose and fix the issue.
|
||||||
|
|
||||||
|
If you've been asked for this info, but are unsure where to find it, then it is under the "Console" tab, in the browsers developer tools, which can be opened with <kbd>F12</kbd>. You can right-click the console, and select Save As to download the log.
|
||||||
|
|
||||||
|
To open dev tools, and jump straight to the console:
|
||||||
|
|
||||||
|
- Win / Linux: <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>J</kbd>
|
||||||
|
- MacOS: <kbd>Cmd</kbd> + <kbd>Option</kbd> + <kbd>J</kbd>
|
||||||
|
|
||||||
|
For more detailed walk through, see [this article](https://support.shortpoint.com/support/solutions/articles/1000222881-save-browser-console-file).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Git Contributions not Displaying
|
||||||
|
|
||||||
|
If you've contributed to Dashy (or any other project), but your contributions are not showing up on your GH profile, or in Dashy's [Credits Page](https://github.com/Lissy93/dashy/blob/master/docs/credits.md), then this is likely a git config issue.
|
||||||
|
|
||||||
|
These statistics are generated using the username / email associated with commits. This info needs to be setup on your local machine using [`git config`](https://git-scm.com/docs/git-config).
|
||||||
|
|
||||||
|
Run the following commands (replacing name + email with your info):
|
||||||
|
|
||||||
|
- `git config --global user.name "John Doe"`
|
||||||
|
- `git config --global user.email johndoe@example.com`
|
||||||
|
|
||||||
|
For more info, see [Git First Time Setup Docs](https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup).
|
||||||
|
|
||||||
|
Note that only contributions to the master / main branch or a project are counted
|
|
@ -0,0 +1,47 @@
|
||||||
|
# Enables you to easily deploy a fork of Dashy to Netlify
|
||||||
|
# without the need to configure anything in admin UI
|
||||||
|
# Docs: https://www.netlify.com/docs/netlify-toml-reference/
|
||||||
|
|
||||||
|
# Essential site config
|
||||||
|
[build]
|
||||||
|
base = "/"
|
||||||
|
command = "yarn build"
|
||||||
|
publish = "dist"
|
||||||
|
functions = "services/serverless-functions"
|
||||||
|
|
||||||
|
# Environmental variables for build command
|
||||||
|
[build.environment]
|
||||||
|
NODE_VERSION = "20.11.1"
|
||||||
|
NODE_OPTIONS = "--openssl-legacy-provider"
|
||||||
|
YARN_FLAGS = "--ignore-engines"
|
||||||
|
|
||||||
|
# Redirect the Node endpoints to serverless functions
|
||||||
|
[[redirects]]
|
||||||
|
from = "/status-check"
|
||||||
|
to = "/.netlify/functions/cloud-status-check"
|
||||||
|
status = 301
|
||||||
|
force = true
|
||||||
|
[[redirects]]
|
||||||
|
from = "/config-manager/*"
|
||||||
|
to = "/.netlify/functions/not-supported"
|
||||||
|
status = 301
|
||||||
|
force = true
|
||||||
|
[[redirects]]
|
||||||
|
from = "/cors-proxy"
|
||||||
|
to = "/.netlify/functions/netlify-cors"
|
||||||
|
status = 301
|
||||||
|
force = true
|
||||||
|
|
||||||
|
# For router history mode, ensure pages land on index
|
||||||
|
[[redirects]]
|
||||||
|
from = "/*"
|
||||||
|
to = "/index.html"
|
||||||
|
status = 200
|
||||||
|
|
||||||
|
# Set any security headers here
|
||||||
|
[[headers]]
|
||||||
|
for = "/*"
|
||||||
|
[headers.values]
|
||||||
|
# Uncomment to enable Netlify user control. Requires premium plan.
|
||||||
|
# Basic-Auth = "someuser:somepassword anotheruser:anotherpassword"
|
||||||
|
|
|
@ -0,0 +1,111 @@
|
||||||
|
{
|
||||||
|
"name": "dashy",
|
||||||
|
"version": "3.1.1",
|
||||||
|
"license": "MIT",
|
||||||
|
"main": "server",
|
||||||
|
"author": "Alicia Sykes <alicia@omg.lol> (https://aliciasykes.com)",
|
||||||
|
"scripts": {
|
||||||
|
"start": "node server",
|
||||||
|
"dev": "NODE_OPTIONS=--openssl-legacy-provider vue-cli-service serve",
|
||||||
|
"build": "NODE_OPTIONS=--openssl-legacy-provider vue-cli-service build",
|
||||||
|
"lint": "vue-cli-service lint",
|
||||||
|
"pm2-start": "npx pm2 start server.js",
|
||||||
|
"build-watch": "vue-cli-service build --watch --mode production",
|
||||||
|
"build-and-start": "NODE_OPTIONS=--openssl-legacy-provider npm-run-all --parallel build start",
|
||||||
|
"validate-config": "node services/config-validator",
|
||||||
|
"health-check": "node services/healthcheck",
|
||||||
|
"dependency-audit": "npx improved-yarn-audit --ignore-dev-deps"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@babel/core": "^7.0.0",
|
||||||
|
"@formschema/native": "^2.0.0-beta.6",
|
||||||
|
"@sentry/tracing": "^7.102.1",
|
||||||
|
"@sentry/vue": "^7.102.1",
|
||||||
|
"ajv": "^8.10.0",
|
||||||
|
"axios": "^1.6.0",
|
||||||
|
"connect-history-api-fallback": "^1.6.0",
|
||||||
|
"crypto-js": "^4.2.0",
|
||||||
|
"express": "^4.17.2",
|
||||||
|
"express-basic-auth": "^1.2.1",
|
||||||
|
"frappe-charts": "^1.6.2",
|
||||||
|
"js-yaml": "^4.1.0",
|
||||||
|
"keycloak-js": "^20.0.3",
|
||||||
|
"oidc-client-ts": "^3.0.1",
|
||||||
|
"register-service-worker": "^1.7.2",
|
||||||
|
"remedial": "^1.0.8",
|
||||||
|
"rss-parser": "3.13.0",
|
||||||
|
"rsup-progress": "^3.2.0",
|
||||||
|
"simple-icons": "^12.2.0",
|
||||||
|
"v-jsoneditor": "^1.4.5",
|
||||||
|
"v-tooltip": "^2.1.3",
|
||||||
|
"vue": "^2.7.0",
|
||||||
|
"vue-i18n": "^8.27.2",
|
||||||
|
"vue-js-modal": "^2.0.1",
|
||||||
|
"vue-json-tree-view": "^2.1.6",
|
||||||
|
"vue-material-tabs": "0.1.5",
|
||||||
|
"vue-router": "^3.5.3",
|
||||||
|
"vue-select": "^3.20.2",
|
||||||
|
"vue-swatches": "^2.1.1",
|
||||||
|
"vue-toasted": "^1.1.28",
|
||||||
|
"vuex": "^3.6.2"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@babel/preset-env": "^7.17.10",
|
||||||
|
"@vue/cli-plugin-babel": "^4.5.15",
|
||||||
|
"@vue/cli-plugin-eslint": "^4.5.15",
|
||||||
|
"@vue/cli-plugin-pwa": "^4.5.15",
|
||||||
|
"@vue/cli-plugin-typescript": "^5.0.8",
|
||||||
|
"@vue/cli-service": "^4.5.19",
|
||||||
|
"@vue/eslint-config-standard": "^4.0.0",
|
||||||
|
"babel-eslint": "^10.0.1",
|
||||||
|
"copy-webpack-plugin": "6.4.0",
|
||||||
|
"eslint": "^6.8.0",
|
||||||
|
"eslint-config-airbnb": "^18.0.1",
|
||||||
|
"eslint-plugin-vue": "^7.9.0",
|
||||||
|
"npm-run-all": "^4.1.5",
|
||||||
|
"sass": "^1.38.0",
|
||||||
|
"sass-loader": "^7.1.0",
|
||||||
|
"typescript": "^5.4.4",
|
||||||
|
"vue-cli-plugin-yaml": "^1.0.2",
|
||||||
|
"vue-svg-loader": "^0.16.0",
|
||||||
|
"vue-template-compiler": "^2.7.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=16.0.0 <21.6.2"
|
||||||
|
},
|
||||||
|
"eslintConfig": {
|
||||||
|
"root": true,
|
||||||
|
"env": {
|
||||||
|
"node": true
|
||||||
|
},
|
||||||
|
"extends": [
|
||||||
|
"plugin:vue/essential",
|
||||||
|
"@vue/standard",
|
||||||
|
"airbnb-base"
|
||||||
|
],
|
||||||
|
"rules": {
|
||||||
|
"import/no-unresolved": "off",
|
||||||
|
"import/extensions": "off",
|
||||||
|
"arrow-parens": 0,
|
||||||
|
"no-else-return": 0
|
||||||
|
},
|
||||||
|
"parserOptions": {
|
||||||
|
"parser": "babel-eslint"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"babel": {
|
||||||
|
"presets": [
|
||||||
|
"@vue/app",
|
||||||
|
"@babel/preset-env"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"postcss": {
|
||||||
|
"plugins": {
|
||||||
|
"autoprefixer": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"browserslist": [
|
||||||
|
"> 1%",
|
||||||
|
"last 2 versions"
|
||||||
|
]
|
||||||
|
}
|
After Width: | Height: | Size: 15 KiB |