aboutsummaryrefslogtreecommitdiff
path: root/src/server.ml
AgeCommit message (Collapse)Author
2020-12-30server: cleanupv0.2.0Alban Gruin
Remove the wildcard `open Lwt' and replace it with `open Lwt.Infix'. Signed-off-by: Alban Gruin <alban@pa1ch.fr>
2020-12-30ics: print the timezone name in the ICS fileAlban Gruin
Add the correct timezone in generated ICS files. The timezone is fetched from /etc/timezone. Even though this is not standard, if a tool needs it, it should be able to understand it correctly. Signed-off-by: Alban Gruin <alban@pa1ch.fr>
2020-12-30ucs: properly remove the unix socket when a signal is receivedAlban Gruin
When using a unix socket to serve µCS, the file would not be removed when the server was shut down. Teach µCS to catch sigints and sigterms, and call unlink on the socket if it exists. Signed-off-by: Alban Gruin <alban@pa1ch.fr>
2020-09-13server: set the range to fetch to a year and a monthAlban Gruin
To fetch all interesting courses, the start date is set to a month before today, and the end date is set to a year after today. This should be enough for our iCalendar files. Signed-off-by: Alban Gruin <alban@pa1ch.fr>
2020-09-13ucs: move the server to its own moduleAlban Gruin
Signed-off-by: Alban Gruin <alban@pa1ch.fr>