|
@@ -30,6 +30,7 @@ func init() {
|
|
|
}
|
|
|
|
|
|
func main() {
|
|
|
+
|
|
|
http.Handle("/static/", http.StripPrefix(
|
|
|
"/static/",
|
|
|
handleFileServer(http.Dir(PATH_STATIC))),
|
|
@@ -102,10 +103,11 @@ func main() {
|
|
|
http.HandleFunc("/wekan", wekanRedirect)
|
|
|
http.HandleFunc("/test/", testPage) // testing token
|
|
|
// HTTP pages handling end
|
|
|
-
|
|
|
+ port := os.Args[1]
|
|
|
api.PrintConsole("Server is listening")
|
|
|
+ fmt.Println(port)
|
|
|
|
|
|
- http.ListenAndServe(":80", nil)
|
|
|
+ http.ListenAndServe(":" + port, nil)
|
|
|
}
|
|
|
|
|
|
func wekanRedirect(w http.ResponseWriter, r *http.Request){
|