2022-05-03 10:57:20 +00:00
|
|
|
const defaultPrehandler = async function (req, rep) { }
|
|
|
|
|
2022-05-02 15:12:46 +00:00
|
|
|
export const config = {
|
|
|
|
database: {
|
2022-05-03 10:57:20 +00:00
|
|
|
url: 'mongodb://localhost:27017/yggdrasil?readPreference=primary&appname=MongoDB%20Compass&directConnection=true&ssl=false',
|
2022-05-02 15:12:46 +00:00
|
|
|
},
|
|
|
|
server: {
|
|
|
|
port: 3000,
|
|
|
|
url: '',
|
|
|
|
},
|
|
|
|
signing: {
|
|
|
|
public: '/path/to/public.pem',
|
|
|
|
private: '/path/to/private.key'
|
2022-05-03 10:57:20 +00:00
|
|
|
},
|
|
|
|
custom: {
|
|
|
|
overridePrehandler: (url) => {
|
|
|
|
return defaultPrehandler
|
|
|
|
},
|
|
|
|
preHooks: (fastify) => {},
|
|
|
|
preRouting: (fastify) => {},
|
|
|
|
postRouting: (fastify) => {},
|
2022-05-02 15:12:46 +00:00
|
|
|
}
|
2022-05-03 10:57:20 +00:00
|
|
|
}
|