mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
server.ts types
This commit is contained in:
parent
ebddfa7df4
commit
fcf92ea6e6
@ -87,12 +87,12 @@ const createServer = (options) => {
|
||||
app.use(
|
||||
helmet(
|
||||
(CONFIG.DEBUG && { contentSecurityPolicy: false, crossOriginEmbedderPolicy: false }) || {},
|
||||
),
|
||||
) as any,
|
||||
)
|
||||
app.use('/.well-known/', webfinger())
|
||||
app.use(express.static('public'))
|
||||
app.use(bodyParser.json({ limit: '10mb' }))
|
||||
app.use(bodyParser.urlencoded({ limit: '10mb', extended: true }))
|
||||
app.use(bodyParser.json({ limit: '10mb' }) as any)
|
||||
app.use(bodyParser.urlencoded({ limit: '10mb', extended: true }) as any)
|
||||
app.use(graphqlUploadExpress())
|
||||
server.applyMiddleware({ app, path: '/' })
|
||||
const httpServer = http.createServer(app)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user