Skip to content

Commit

Permalink
App default listens on 0.0.0.0:8721
Browse files Browse the repository at this point in the history
  • Loading branch information
livid committed May 4, 2023
1 parent b6c08e5 commit 3d4cf51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/App/configure.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import Vapor
public func configure(_ app: Application) throws {
// uncomment to serve files from /Public folder
// app.middleware.use(FileMiddleware(publicDirectory: app.directory.publicDirectory))
app.http.server.configuration.hostname = "0.0.0.0"
app.http.server.configuration.port = 8721

// register routes
try routes(app)
Expand Down

0 comments on commit 3d4cf51

Please sign in to comment.