mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Updated elb ping url
This commit is contained in:
@@ -18,6 +18,7 @@ This is just a simple prototype. To get to production would need:
|
||||
|
||||
- start router.go on remote server (there's a test project on SD already:
|
||||
- http://www.simpledeployer.com/projects/ea129e74-52fa-11e2-a91a-12313d008ea2/servers
|
||||
- this is on aws+sandbox@iron.io account
|
||||
- go build ./src/router; sudo ./router
|
||||
- iron_worker upload -e staging --project-id 51034bc3c2e603384b00a092 --host routertest.irondns.info sinatra
|
||||
- visit http://routertest.iron.io (or ruby client.rb)
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
"logging": {
|
||||
"to": "papertrail",
|
||||
"level": "debug",
|
||||
"prefix": "router"
|
||||
"prefix": "router_staging"
|
||||
},
|
||||
"mongo_auth": {
|
||||
"database": "ironworker",
|
||||
|
||||
@@ -126,10 +126,11 @@ func main() {
|
||||
|
||||
s := r.Host("router.irondns.info").Subrouter()
|
||||
s.Handle("/1/projects/{project_id:[0-9a-fA-F]{24}}/register", &common.AuthHandler{&Register{}, ironAuth})
|
||||
s.HandleFunc("/ping", Ping) // for ELB health check
|
||||
s.HandleFunc("/ping", Ping)
|
||||
s.Handle("/addworker", &WorkerHandler{})
|
||||
s.HandleFunc("/", Ping)
|
||||
|
||||
r.HandleFunc("/elb-ping-router", Ping) // for ELB health check
|
||||
// Now for everyone else:
|
||||
r.HandleFunc("/", ProxyFunc)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user