diff --git a/image/spindle/wheezy-stage4 b/image/spindle/wheezy-stage4 index 53f4305a..b37c1792 100755 --- a/image/spindle/wheezy-stage4 +++ b/image/spindle/wheezy-stage4 @@ -37,8 +37,14 @@ setup_stratux() { echo "**** STRATUX SETUP *****" ssh_in_to_qemu chroot /mnt sh -l -ex - <<\EOF -#general -apt-get install -y screen + +#http server +apt-get install -y lighttpd +ln -s /var/log /var/www/logs +makedir -p /var/logs/stratux +chmod o+x /var/logs/stratux +echo 'dir-listing.activate = "enable"' >> /etc/lighttpd/lighttpd.conf +echo 'server.follow-symlink = "enable"' >> /etc/lighttpd/lighttpd.conf #wifi apt-get install -y hostapd isc-dhcp-server #troubleshooting diff --git a/main/gen_gdl90.go b/main/gen_gdl90.go index 675935c1..b69ff372 100644 --- a/main/gen_gdl90.go +++ b/main/gen_gdl90.go @@ -38,7 +38,7 @@ import ( const ( configLocation = "/etc/stratux.conf" indexFilename = "/var/log/stratux/LOGINDEX" - managementAddr = ":80" + managementAddr = ":8080" debugLog = "/var/log/stratux.log" maxDatagramSize = 8192 maxUserMsgQueueSize = 25000 // About 10MB per port per connected client. diff --git a/main/managementinterface.go b/main/managementinterface.go index bfe7cf95..a4c59628 100644 --- a/main/managementinterface.go +++ b/main/managementinterface.go @@ -310,7 +310,7 @@ func managementInterface() { weatherUpdate = NewUIBroadcaster() trafficUpdate = NewUIBroadcaster() - http.HandleFunc("/", defaultServer) + // http.HandleFunc("/", defaultServer) http.Handle("/logs/", http.StripPrefix("/logs/", http.FileServer(http.Dir("/var/log")))) http.HandleFunc("/status", func(w http.ResponseWriter, req *http.Request) { diff --git a/web/js/main.js b/web/js/main.js index d9fafd22..a57cfeea 100755 --- a/web/js/main.js +++ b/web/js/main.js @@ -1,5 +1,5 @@ // application constants -var URL_HOST_BASE = window.location.hostname; +var URL_HOST_BASE = window.location.hostname+":8080"; var URL_SETTINGS_GET = "http://" + URL_HOST_BASE + "/getSettings"; var URL_SETTINGS_SET = "http://" + URL_HOST_BASE + "/setSettings"; var URL_GPS_GET = "http://" + URL_HOST_BASE + "/getSituation";