Skip to content

Sample code for integrating labstack echo microservice with netflix eureka and zuul with spring boot oauth2 as the security handler

Notifications You must be signed in to change notification settings

jovint/go-echo-eureka-zuul-oauth2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

go-echo-eureka-zuul-oauth2

Sample code for integrating labstack echo microservice with netflix eureka and zuul with spring boot oauth2 as the security handler

To add new service to Eureka use the following format

    http://host:port/eureka/apps/{{service-name}}
    {
        "instance": {
            "hostName": "{{hostname/ip}}", 
            "app": "{{service-name}}",
            "vipAddress": "{{service-name}}",
            "secureVipAddress": "{{service-name}}",
            "ipAddr": "{{ip-address}}",
            "status": "STARTING",
            "port": {"$": "{{http-port}}", "@enabled": "true"},
            "securePort": {"$": "{{https-port}}", "@enabled": "false"},
            "healthCheckUrl": "http://{{hostname/ip}}:{{http-port}}/healthcheck",
            "statusPageUrl": "http://{{hostname/ip}}:{{http-port}}/healthcheck",
            "homePageUrl": "http://{{hostname/ip}}:{{http-port}}",
            "dataCenterInfo": {
                "@class": "com.netflix.appinfo.InstanceInfo$DefaultDataCenterInfo", 
                "name": "MyOwn"
            }
        }
    }

I used following configuration

    {
        "instance": {
            "hostName": "192.168.0.104", 
            "app": "goUserService",
            "vipAddress": "goUserService",
            "secureVipAddress": "goUserService",
            "ipAddr": "192.168.0.104",
            "status": "STARTING",
            "port": {"$": "1323", "@enabled": "true"},
            "securePort": {"$": "8443", "@enabled": "false"},
            "healthCheckUrl": "http://192.168.0.104:1323/healthcheck",
            "statusPageUrl": "http://192.168.0.104:1323/healthcheck",
            "homePageUrl": "http://192.168.0.104:1323",
            "dataCenterInfo": {
                "@class": "com.netflix.appinfo.InstanceInfo$DefaultDataCenterInfo", 
                "name": "MyOwn"
            }
        }
    }

About

Sample code for integrating labstack echo microservice with netflix eureka and zuul with spring boot oauth2 as the security handler

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages