Commit Graph

7 Commits

Author SHA1 Message Date
Trim21 5ff9cddead feat: new args --disable-rate-limit (#737) 2024-04-29 06:24:23 +08:00
Scratch 9fabf414fe server: remove port requirement, permit running on paths (#680) 2023-11-29 07:34:42 +00:00
Jesse Chan abf99ba52b shared: schema: explicitly use "strictObject" 2021-05-20 23:17:53 +08:00
Jesse Chan 6c858dfc0e config: move floodServerProxy to client DevServer script 2021-01-30 19:19:24 +08:00
Jesse Chan 559ecaa0d8 server: allow Flood not to serve static assets 2020-12-10 23:48:58 +08:00
Jesse Chan ca9890a69c schema: config: make floodServerProxy and ssl properties optional 2020-11-14 15:31:59 +08:00
Jesse Chan ed98e210f4 server: schema validate configurations
Unfortunately there are still many people who prefer static config
file. As such, schema validate the configurations to ensure that
the failure happens loud and early when the config.js is broken.

Also enforces that the length of secret must be larger than 30 as
the JWT secret can be brute forced locally without interaction with
the server.

This ensures that we always have proper configurations and avoids
unnecessary and bad defensive programming practices.
2020-11-14 15:20:23 +08:00