 
 
         let server = HTTPServer()
-        server.serverAddress = "localhost"
-        server.serverPort = 8080
+        server.serverAddress = serverConfig.address
+        server.serverPort = serverConfig.port
         server.addRoutes(routes)
         server.documentRoot = "./webroot" // Setting the document root will add a default URL route which permits static files to be served from within.
 

import SwiftGD

class SiteMain {
    struct DBConfig {
        var host: String
        var user: String
        var password: String
        var dbname: String
        var tablePrefix: String
    }

    typealias PageHandler = (SessionInfo?, HTTPRequest, HTTPResponse) -> SiteResponse

        }
    }

    var databaseConfig: DatabaseConfig
    var serverConfig: ServerConfig
    var siteConfig: SiteConfig
    var routes: Routes
    var controller: SiteController

