Skip to content

Commit

Permalink
add standardHostname to root app
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Dec 9, 2024
1 parent 4cc74ea commit ab70f07
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,17 @@ import { routerWithMongodb } from "@hs/homeserver/src/plugins/mongodb";
import { config } from "./config";
import { db } from "./mongo";

new Elysia()
new Elysia({
handler: {
standardHostname: false,
},
})
.decorate("config", config)
.use(routerWithMongodb(db))
.use(app)
.use(fakeEndpoints)
.listen(config.port, (context) => {
console.log(
`🦊 Elysia is running at http://${context.hostname}:${context.port}`,
`🦊 Homeserver is running at http://${context.hostname}:${context.port}`,
);
});

0 comments on commit ab70f07

Please sign in to comment.