Compare commits

..

No commits in common. "827d42f3a619dcdb3fe702027eb3b0c7c5ac9f86" and "b172e10ccd46bf4298ee93bcb4bd13de28c845bb" have entirely different histories.

2 changed files with 1 additions and 5 deletions

View File

@ -8,10 +8,6 @@ export class EventsController {
private static clients: { id: string; res: Response }[] = [] private static clients: { id: string; res: Response }[] = []
static async eventsHandler(req: Request, res: Response) { static async eventsHandler(req: Request, res: Response) {
/*
If the server is behind a nginx reverse proxy, use the following configuration:
proxy_read_timeout 24h;
*/
const headers = { const headers = {
'Content-Type': 'text/event-stream', 'Content-Type': 'text/event-stream',
Connection: 'keep-alive', Connection: 'keep-alive',

View File

@ -19,7 +19,7 @@ class PrinterStatusController {
static async status(req: Request, res: Response) { static async status(req: Request, res: Response) {
const { printerId } = req.params const { printerId } = req.params
const { days = 360 } = req.query const { days = 180 } = req.query
const gte = new Date(Date.now() - 1000 * 60 * 60 * 24 * Number(days)) const gte = new Date(Date.now() - 1000 * 60 * 60 * 24 * Number(days))