3d25010d3c
Merge pull request 'enchant-workflow-and-auth' ( #1 ) from enchant-betterworkflow into main
...
Reviewed-on: meb/server-architecture#1
2026-04-21 20:39:10 +00:00
Giuseppe Raffa
924c2b5367
refactor: implement centralized auth middleware and standardize cross-subdomain session management
2026-04-21 22:17:48 +02:00
Giuseppe Raffa
69012029ad
refactor: clean up code and improve error handling in authentication and database modules
2026-04-21 20:47:32 +02:00
Giuseppe Raffa
5433529ffd
fix: fixed erroneaus endpoints uses
2026-04-21 20:33:12 +02:00
Giuseppe Raffa
e43c330594
tempfix: added some debug console logs for easiest debug
2026-04-21 20:27:44 +02:00
Giuseppe Raffa
974cbe93cd
fix: additional fix for auth login flow and auth web pages and database
...
connection.
2026-04-21 20:08:59 +02:00
Giuseppe Raffa
c8668920a6
fix: error in auth login, added basic font and more resources
2026-04-21 19:53:02 +02:00
Giuseppe Raffa
9e6bb26a2c
fix: update sessionBucket to use 'boat' and refine session query logic
2026-04-18 12:57:03 +02:00
Giuseppe Raffa
ba0dbe6baf
feat+fix: changed the primary data source for the data analysis and added the relative card in the dashboard page.
2026-04-18 12:43:50 +02:00
Giuseppe Raffa
b6c2a7e904
Add initial KioskCore and API endpoint for data analysis
...
- Created a new CSS file for kiosk styles, defining variables, typography, and layout for cards and toolbars.
- Implemented new routes for data anlaysis page
2026-04-18 12:32:32 +02:00
Giuseppe Raffa
ef62bb5da0
fix: update database configuration to include default values for user, password, host, and port
2026-04-16 15:42:31 +02:00
Giuseppe Raffa
981f498eb7
feat: update session handling and add session history endpoint
2026-04-16 15:37:10 +02:00
Giuseppe Raffa
5912c00a82
refactor: remove rules endpoint and related logic
...
- Deleted the rules routes and associated logic from the API.
- Removed rules-related functionality from params.sensor.js.
- Updated dashboard and rulesets HTML to remove references to rulesets.
- Removed force update button and related functionality from rulesets page.
- Cleaned up styles related to the force update button.
- Removed unused WebSocket client example.
- Updated realtime server to eliminate rules pushing logic.
- Refactored WebSocket handler to streamline data processing.
2026-04-16 14:27:27 +02:00
Giuseppe Raffa
edd7226966
feat: add support for later forecasts and implement force update functionality for rules
2026-04-16 08:14:10 +02:00
Giuseppe Raffa
c0be21a718
fix: update database queries to use 'active' instead of 'is_active' for consistency
2026-04-16 00:18:49 +02:00
Giuseppe Raffa
370f911063
feat: implement CORS support and update API_URL in environment configuration
2026-04-15 23:40:08 +02:00
Giuseppe Raffa
b4182c5c94
fix: remove unnecessary volume mapping for node_modules in docker-compose
2026-04-15 23:15:12 +02:00
Giuseppe Raffa
3094c06467
Add Rulesets page with HTML structure and CSS styles
...
- Created a new HTML file for the Rulesets page, including a header, toolbar, rules grid, and rule detail popup.
- Implemented JavaScript functionality for loading, filtering, sorting, and managing rules.
- Added CSS styles for the layout, components, and responsive design of the Rulesets page.
2026-04-15 08:06:29 +02:00
Giuseppe Raffa
c9402de2e4
fix: update exposed port in Dockerfile from 3002 to 3000
2026-04-14 20:20:28 +02:00
Giuseppe Raffa
bf66845528
feat: add CORS support and enhance session routes for better sensor management
2026-04-14 19:39:26 +02:00
Giuseppe Raffa
137c6131c3
feat: implement WebSocket server for real-time sensor data handling and add sensor status update routes
2026-04-14 19:05:37 +02:00
Giuseppe Raffa
a34048ae6b
fix: update sensors route to correctly pass database name to query function
2026-04-14 18:13:07 +02:00
Giuseppe Raffa
81e6e1960d
fix: refactor database connection configuration to use baseConfig
2026-04-14 18:10:03 +02:00
Giuseppe Raffa
59f7135b61
debug: adds a debug log to fix password environment variable problem
2026-04-14 18:09:08 +02:00
Giuseppe Raffa
d17c78f42a
fix: correct database password environment variable reference
2026-04-14 17:59:53 +02:00
Giuseppe Raffa
ea4af13840
fix: correct database password environment variable reference
2026-04-14 17:58:42 +02:00
Giuseppe Raffa
a19c6988f4
fix: update database password environment variable and correct sensors database name
2026-04-14 17:57:55 +02:00
Giuseppe Raffa
2bbc5e0320
feat: add database configuration logging for improved visibility
2026-04-14 17:55:55 +02:00
Giuseppe Raffa
b6b1ed7a2b
feat: implement sensor connection endpoint and add pending tokens route
2026-04-14 17:45:40 +02:00
Giuseppe Raffa
a79ab2af38
feat: add Redis integration, enhanced health checks and fixed an error in the database core
2026-04-14 17:11:24 +02:00
Giuseppe Raffa
d79c12b6e9
feat: implement sensor connection and health check endpoints
2026-04-14 17:05:24 +02:00
Giuseppe Raffa
c478f5c13c
reset: removed the old code to start from scratch
2026-04-14 15:56:24 +02:00
Giuseppe Raffa
c597d4a414
fix: refactor verifyClient to use promise instead of async/await for token validation
2026-04-14 15:49:22 +02:00
Giuseppe Raffa
82310a521f
fix: add logging for URL and token in WebSocket client verification
2026-04-14 15:47:40 +02:00
Giuseppe Raffa
73675ddfff
fix: update load balancer port for realtime service from 3002 to 3000
2026-04-14 15:29:46 +02:00
Giuseppe Raffa
40dd392696
fix: change network configuration to external for public and private networks
2026-04-14 15:17:09 +02:00
Giuseppe Raffa
32de4b1441
fix: update database name in connection pool configuration
2026-04-14 15:11:13 +02:00
Giuseppe Raffa
8fe514ed14
fix: add missing password configuration for Redis clients
2026-04-14 15:09:31 +02:00
Giuseppe Raffa
8b5937fa19
refactor: update WebSocket server setup and improve session handling
2026-04-14 15:04:10 +02:00
Giuseppe Raffa
ccd6143253
fix: update form action URL for login to include API path
2026-04-14 13:50:50 +02:00
Giuseppe Raffa
acb6b39dcf
feat: add password configuration for Redis connection and update environment variables for Redis configuration
2026-04-14 13:27:22 +02:00
Giuseppe Raffa
1044837080
feat: configure realtime services and update environment variables
2026-04-14 13:23:26 +02:00
Giuseppe Raffa
0ae64d0c5b
feat: update database configuration to use USERS_DB environment variable
2026-04-14 13:13:24 +02:00
Giuseppe Raffa
3032dbcc96
feat: enhance InfluxDB health check logging with detailed error information
2026-04-14 12:54:25 +02:00
Giuseppe Raffa
e13bbe3d02
feat: update logging to display InfluxDB token in initialization message
2026-04-14 12:37:34 +02:00
Giuseppe Raffa
063fccfaea
feat: add logging for health check results and PostgreSQL connection status
2026-04-14 12:33:35 +02:00
Giuseppe Raffa
e003770187
feat: add connection check logging for PostgreSQL pools
2026-04-14 12:31:12 +02:00
Giuseppe Raffa
1ef9160361
feat: update PostgreSQL configuration to use environment variables consistently
2026-04-14 12:29:09 +02:00
Giuseppe Raffa
dcf1c47328
feat: add logging for InfluxDB client initialization and PostgreSQL client acquisition
2026-04-14 12:25:31 +02:00
Giuseppe Raffa
7d61d6361c
feat: update Traefik router entrypoint to use websecure for API service
2026-04-14 12:22:06 +02:00