84 Commits

Author SHA1 Message Date
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
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
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
Thomas Dissert
b658d94adc Fixed comment describing healthcheck 2022-10-28 09:43:38 +02:00
Alicia Sykes
bd759d63fd ️ Moves host variable below imports 2022-07-07 18:05:34 +01:00
flechaig
b4db66f339 Allow specifying a host on which to listen even with SSL
Allow specifying a host on which to listen even with SSL
Grab the IP address from the HOST environment variable and use it to bind the SSL server.
Default to 0.0.0.0
IPv6 compliant.
2022-07-07 17:05:47 +02:00
Marcell Fülöp
91d4fd55c0 🩹 Ensure stat finished before startSSLServer()
The two chained stat() promises may not have finished by the time
`enableSSL` is evaluated in case of a slow file system (e.g. on a
Raspberry Pi where the only block device is an SD card).
2022-06-24 19:36:00 +00:00
Alicia Sykes
8c15ab4c84 🔐 Adds local path checking 2022-05-01 22:26:55 +01:00
Alicia Sykes
5ab619f195 Adds a parameter to specify which config file to edit 2022-04-24 16:02:14 +01:00
Alicia Sykes
4932a86f3c 🚨 Removes rougue console.log (#581) 2022-04-03 16:04:01 +01:00
Alicia Sykes
4779434924 Adds backend support for status check redirects (Re: #494) 2022-03-13 21:58:40 +00:00
aterox
a4e5402e5a Fix always true accident 2022-03-07 06:11:06 -05:00
aterox
6ee5286ebf Add redirection from http to https 2022-03-07 05:54:45 -05:00
aterox
50acc0f711 No longer requires a rebuild 2022-03-06 03:34:05 -05:00
aterox
6553f1463d No longer needed 2022-03-06 03:02:41 -05:00