mirror of
https://github.com/diced/zipline.git
synced 2025-04-11 23:31:17 -05:00
fix: ssl
This commit is contained in:
parent
321366ca86
commit
afbda50a21
2 changed files with 6 additions and 4 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -43,4 +43,6 @@ next-env.d.ts
|
|||
.eslintcache
|
||||
|
||||
# zipline
|
||||
uploads*/
|
||||
uploads*/
|
||||
*.crt
|
||||
*.key
|
|
@ -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,
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue