1
Fork 0
mirror of https://github.com/diced/zipline.git synced 2025-04-11 23:31:17 -05:00
This commit is contained in:
diced 2025-02-02 17:11:39 -08:00
parent 321366ca86
commit afbda50a21
No known key found for this signature in database
GPG key ID: 370BD1BA142842D1
2 changed files with 6 additions and 4 deletions

4
.gitignore vendored
View file

@ -43,4 +43,6 @@ next-env.d.ts
.eslintcache
# zipline
uploads*/
uploads*/
*.crt
*.key

View file

@ -19,7 +19,7 @@ import { fastifyRateLimit } from '@fastify/rate-limit';
import { fastifySensible } from '@fastify/sensible';
import { fastifyStatic } from '@fastify/static';
import fastify from 'fastify';
import { mkdir } from 'fs/promises';
import { mkdir, readFile } from 'fs/promises';
import ms from 'ms';
import { parse } from 'url';
import { version } from '../../package.json';
@ -69,8 +69,8 @@ async function main() {
ignoreTrailingSlash: true,
https: notNull(config.ssl.key, config.ssl.cert)
? {
key: config.ssl.key!,
cert: config.ssl.cert!,
key: await readFile(config.ssl.key!, 'utf8'),
cert: await readFile(config.ssl.cert!, 'utf8'),
}
: null,
});