🐛 Bug fixes on consul config

This commit is contained in:
LittleSheep 2024-06-16 23:33:02 +08:00
parent 69fdee72f5
commit 80ee964afa
3 changed files with 6 additions and 7 deletions

3
.idea/workspace.xml generated
View File

@ -5,7 +5,8 @@
</component>
<component name="ChangeListManager">
<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>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />

View File

@ -65,11 +65,9 @@ func main() {
go server.Listen()
// Grpc Server
go func() {
if err := grpc.StartGrpc(); err != nil {
log.Fatal().Err(err).Msg("An message occurred when starting grpc server.")
}
}()
// Configure timed tasks
quartz := cron.New(cron.WithLogger(cron.VerbosePrintfLogger(&log.Logger)))

View File

@ -22,7 +22,7 @@ print_routes = false
[consul]
addr = "127.0.0.1:8500"
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]
endpoint = "http://localhost:8443"