diff --git a/.gitignore b/.gitignore index e419b17..7e741f7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ *.swp +tmp/ +.vagrant ### Linux template *~ diff --git a/.vagrant/machines/default/libvirt/created_networks b/.vagrant/machines/default/libvirt/created_networks index 7e056e8..a1f058e 100644 --- a/.vagrant/machines/default/libvirt/created_networks +++ b/.vagrant/machines/default/libvirt/created_networks @@ -1 +1,3 @@ 5533801d-70e3-4c21-9942-82d20930c789 +5533801d-70e3-4c21-9942-82d20930c789 +5533801d-70e3-4c21-9942-82d20930c789 diff --git a/tmp/main b/tmp/main deleted file mode 100755 index 81c1427..0000000 Binary files a/tmp/main and /dev/null differ diff --git a/web/router.go b/web/router.go index eb0552b..bfd4faa 100644 --- a/web/router.go +++ b/web/router.go @@ -35,7 +35,8 @@ func setupRouter() *gin.Engine { router.Use(gin.Recovery()) router.Use(sessions.Sessions("session", store)) router.Use(urlLog()) - router.Any("/", containerProxy) + router.Use(containerProxy) + // router.Any("/", containerProxy) return router } @@ -83,7 +84,7 @@ func containerProxy(c *gin.Context) { c.Abort() } // Hack to wait for Container to start up and get assigned an IP - time.Sleep(1 * time.Second) + time.Sleep(3 * time.Second) ctip, err := pods.GetContainerIP(ct) if err != nil {