🐛 Bug fixes on consul config
This commit is contained in:
parent
69fdee72f5
commit
80ee964afa
@ -5,7 +5,8 @@
|
|||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="3fefb2c4-b6f9-466b-a523-53352e8d6f95" name="更改" comment=":sparkles: Consul registration">
|
<list default="true" id="3fefb2c4-b6f9-466b-a523-53352e8d6f95" name="更改" comment=":sparkles: Consul registration">
|
||||||
<change beforePath="$PROJECT_DIR$/Dockerfile" beforeDir="false" afterPath="$PROJECT_DIR$/Dockerfile" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/pkg/main.go" beforeDir="false" afterPath="$PROJECT_DIR$/pkg/main.go" afterDir="false" />
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
|
@ -65,11 +65,9 @@ func main() {
|
|||||||
go server.Listen()
|
go server.Listen()
|
||||||
|
|
||||||
// Grpc Server
|
// Grpc Server
|
||||||
go func() {
|
|
||||||
if err := grpc.StartGrpc(); err != nil {
|
if err := grpc.StartGrpc(); err != nil {
|
||||||
log.Fatal().Err(err).Msg("An message occurred when starting grpc server.")
|
log.Fatal().Err(err).Msg("An message occurred when starting grpc server.")
|
||||||
}
|
}
|
||||||
}()
|
|
||||||
|
|
||||||
// Configure timed tasks
|
// Configure timed tasks
|
||||||
quartz := cron.New(cron.WithLogger(cron.VerbosePrintfLogger(&log.Logger)))
|
quartz := cron.New(cron.WithLogger(cron.VerbosePrintfLogger(&log.Logger)))
|
||||||
|
@ -22,7 +22,7 @@ print_routes = false
|
|||||||
[consul]
|
[consul]
|
||||||
addr = "127.0.0.1:8500"
|
addr = "127.0.0.1:8500"
|
||||||
srv_serve = "127.0.0.1:8444"
|
srv_serve = "127.0.0.1:8444"
|
||||||
srv_http = "http://192.168.50.83:8444" # Uses host LAN ip so that can accessed by consul in the container
|
srv_http = "http://192.168.50.83:8444"
|
||||||
|
|
||||||
[paperclip]
|
[paperclip]
|
||||||
endpoint = "http://localhost:8443"
|
endpoint = "http://localhost:8443"
|
||||||
|
Loading…
Reference in New Issue
Block a user