Commit Graph

96 Commits

Author SHA1 Message Date
Alicia Sykes
19bd665d2a 🩺 Updates healthz endpoint usage 2026-05-02 19:10:05 +01:00
Alicia Sykes
5fdf50ceb5 🥅 Catch + pass down any upstream/API errors 2026-04-29 17:10:46 +01:00
Alicia Sykes
c43712550a Adds option to disable config backups on save
By default, everything functions the same. But if the `DISABLE_CONFIG_BACKUPS` env var is set, then when the user saves the config to disk (via UI, calling the save-config endpoint), then the previous config will not get coppied/backedup to the BACKUP_DIR (user-data/config-backups) anymore. Also added docs for this change. This option might be useful on file systems with restricted permissions (if /app/user-data/config-backups doesn't have create/write access), or when the user just doesn't want a ton of backup files for every single litttle config change.
2026-04-29 07:51:10 +01:00
Alicia Sykes
31a1cbf278 🦖 Adds env var parsing for backward compatibility widget tokens 2026-04-26 15:36:40 +01:00
Alicia Sykes
ee099aa3a7 💥 Removes all in-app rebuild functionality 2026-04-26 14:33:16 +01:00
Alicia Sykes
acbb069b2a 🩹 Semver fix for update checker 2026-04-25 17:51:05 +01:00
Alicia Sykes
381dcf7410 Removes connect-history-api-fallback dep 2026-04-25 00:01:51 +01:00
Alicia Sykes
ba0c967c01 🚚 Updates util imports 2026-04-19 12:21:48 +01:00
Alicia Sykes
201d83fb3c 🎨 Resolves style regressions 2026-04-17 21:13:59 +01:00
Alicia Sykes
8bf2f8e02d 🔄️ Merge branch 'master' of github.com:lissy93/dashy into migration/vue3-upgrade 2026-04-13 14:52:49 +01:00
Alicia Sykes
aceb4ee47e 🩹 Small fix to prevent harmless error when no user 2026-04-12 19:07:00 +01:00
Alicia Sykes
6d1ad131cd 🔐 Implements max response size safeguard 2026-04-12 19:05:57 +01:00
Alicia Sykes
2bbac3be69 🚚 Move express app out of server.js 2026-04-12 19:02:49 +01:00
Alicia Sykes
92aa1ba00b Adds timeout to status check 2026-04-12 17:02:20 +01:00
Alicia Sykes
0c09a81245 🔐 Restrict host and prototocol for cors proxy 2026-04-12 09:47:02 +01:00
Alicia Sykes
be9b6b1269 Robustness improvments to cors-proxy
Adds a timeout to prevent ever lasting requests, surrounds JSON parse with try catch when header missing uses a 400 status code instead of 500 and fixes the error messaging for this
2026-04-11 20:52:16 +01:00
Alicia Sykes
21491bbe22 ️ Robustness improvments for save-config endpoint
Deeper path validation, collision protection for backups, fixes missing
config field crash, adds check for file size, improved security of
filename allow regex
2026-04-11 20:35:02 +01:00
Alicia Sykes
0509269e1e 🐛 Fixes container crash on save-config (#1935, #1945) 2026-04-11 20:35:02 +01:00
Alicia Sykes
f1f5718dd2 🥅 Properly catch/handle server errs, without circular crash 2026-04-10 16:10:28 +01:00
Alicia Sykes
a4af19ffcb 🐛 Fixes CORS proxy crash when error json has circular dependency 2026-04-09 21:00:00 +01:00
Alicia Sykes
d56b045e6d 🔀 Merge pull request #1827 from dintho/patch-1
Adjusting SSL Portion of HealthCheck
2026-04-08 09:26:31 +01:00
Alicia Sykes
a85fd0ab45 🔂 Merge branch 'master' of github.com:lissy93/dashy into migration/vue3-upgrade 2026-04-07 10:55:22 +01:00
Alicia Sykes
c07f3dc810 🥅 Handle null headers 2026-03-31 22:20:29 +01:00
Alicia Sykes
63952fb030 🚚 Replace instances of Axios with new request handlers across everywhere 2026-03-31 21:31:57 +01:00
Alicia Sykes
47078a4f48 Creates server-side request wrapper instead of axios 2026-03-31 21:24:49 +01:00
Alicia Sykes
d4f1d7ff84 🚚 Vue 3 compatibility fixes
transition class names (-enter → -enter-from), ::v-deep → :deep(), $router.currentRoute → $route, removed duplicate proxyReqEndpoint overrides that shadow the mixin

Plus some error handling and robustness improvments to global error handler, try-catch on all JSON.parse/yaml.load from localStorage/config, null-checks on DOM lookups, .catch() on unhandled axios promises, sanitized v-html in Footer

And removes stake weback and vue cli cleanup of crap.
2026-03-29 18:34:57 +01:00
Webysther Sperandio
a5b1c47785 Update rebuild-app.js set GC 2025-03-27 09:48:48 +01:00
dintho
a130d6c9e6 Adjusting SSL Portion of HealthCheck
I ran into a issue running dashy in a podman oci container with the default value for public & private key paths  not being set the same way in healthcheck.js vs ssl-server.js

This difference was allowing SSL to start causing the healthcheck to get a 302 redirect to https .

This change adds in the same default path vars and i am going to say similar behavior that ssl-server.js uses. i tried to match the same style as the existing code between the two files

another alternative is to set `SSL_PUB_KEY_PATH` and `SSL_PRIV_KEY_PATH` in the compose file as env vars 

but after seeing #843 which lead me #768 and then finding  
#1410

ill be honest this probably solves #843 and #1410  i dont think this totally solved #768  tbh.  i had a hard time following that thread
2025-03-10 17:03:48 -06:00
Alicia Sykes
ff13552c96 🚑 Rever param change in cors-proxy.js 2024-08-17 15:42:15 +01:00
conlan0
78ea929c93 🩹 Send request body as data instead of json 2024-07-25 15:25:58 -04:00
Alicia Sykes
db9d7e362d 🛂 Remove page reload on auth failure (#981) 2024-04-28 20:00:17 +01:00
Alicia Sykes
27f10d76db 🦺 Update schema validation, disable strict for multi options 2024-04-28 15:05:53 +01:00
Alicia Sykes
f295958c44 Put config backups in own directory 2024-04-21 14:45:52 +01:00
Alicia Sykes
bbb9ce7272 Better spacing in print-message service 2024-04-13 14:06:33 +01:00
Alicia Sykes
e1a95405c1 🗑 Remove watch-for-changes script, no longer needed 2024-04-13 12:42:51 +01:00
Alicia Sykes
4d851b6e86 Lint and port update 2024-04-13 12:35:21 +01:00
Alicia Sykes
b66ce53669 📡 Make user-data directory configurable 2024-04-10 22:59:35 +01:00
Alicia Sykes
18e2338735 🚨 Fix linter warning 2024-04-08 20:36:35 +01:00
Alicia Sykes
fd45aa6bd1 🚚 Update path to config file 2024-04-08 20:36:00 +01:00
Alicia Sykes
041e5d8c28 🔂 Merge master into branch 2024-03-30 21:35:46 +00:00
Alicia Sykes
147016278a Auto-rebuild script done, with debounce and term logging 2024-03-04 21:29:53 +00:00
Alicia Sykes
1f6bb48463 Implement debounce, to stop dup rebuild when file meta changes in Linux 2024-03-04 20:21:33 +00:00
Alicia Sykes
a6a2ee232a 🧱 Writes script to watch for changes and trigger re-build 2024-03-04 20:07:34 +00:00
Todd E Johnson
821ed3433b Add Proxy IP check for header security 2023-11-24 00:11:04 -06:00
Todd E Johnson
27dfe6219a Make userHeader pull from config 2023-11-23 00:02:08 -06:00
Todd E Johnson
4aa34f66dc WIP: Attempt at adding header auth. Ignore Settings #981 2023-11-17 00:00:48 -06:00
Stavros Kois
2839821ab1 Fix healthcheck.js without ssl 2023-11-13 19:12:38 +02:00
rokiden
00bc03f257 Added BACKUP_DIR env 2023-09-22 20:27:31 +06:00
rtm516
3c5177dd70 Update health-check to support SSL properly 2023-01-21 16:36:49 +00:00
Thomas Dissert
5d11c58ac4 fixed the comment a bit more 2022-10-28 09:55:54 +02:00