mirror of
https://github.com/donl/gPanel.git
synced 2026-05-26 06:12:20 -06:00
24 lines
586 B
Go
24 lines
586 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"net/http"
|
|
|
|
"github.com/Ennovar/gPanel/private_server/routing"
|
|
"github.com/Ennovar/gPanel/public_server/routing"
|
|
)
|
|
|
|
func main() {
|
|
private := privateRouting.NewPrivateHost()
|
|
public := publicRouting.NewPublicWeb()
|
|
|
|
log.Printf("To Exit: CTRL+C")
|
|
|
|
go func() {
|
|
log.Print("Listening (private) on localhost:2082, serving out of the private/ directory...")
|
|
http.ListenAndServe("localhost:2082", &private)
|
|
}()
|
|
|
|
log.Print("Listening (public) on localhost:3000, serving out of the public/ directory...")
|
|
http.ListenAndServe("localhost:3000", &public)
|
|
}
|