Commit Graph

9 Commits

Author SHA1 Message Date
Trim21
2a0d29c1f5 style: add new rule for imports (#785) 2024-08-13 22:31:39 +00:00
Jesse Chan
5afa79b274 config.cli: migrate to TypeScript 2021-01-30 19:11:28 +08:00
Jesse Chan
559ecaa0d8 server: allow Flood not to serve static assets 2020-12-10 23:48:58 +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
Jesse Chan
aa5339d9bd server: ensure WebAssembly support early in the process 2020-11-12 11:43:53 +08:00
Jesse Chan
43b2d8fbbf server: services: migrate to TypeScript 2020-09-27 22:27:14 +08:00
Jesse Chan
80b8ad2cc5 server: use NCC to bundle server into a single file
This allows us to be dependency-free in production.

Caveats:

  - NCC can't handle WASM. Thus, we have to remove WASM files inside
    argon2-browser before build to force JS.

  - Duplicate geoip databases inside dist/data and dist. We have to
    remove dist/data after build.
2020-09-21 15:24:00 +08:00
Jesse Chan
aaf873d9fa dependencies: bump (major) 2020-09-18 00:04:57 +08:00
Jesse Chan
13480c9bab server: initial support for TypeScript 2020-09-16 20:51:08 +08:00