From 3c20fd9fd7bd8f78f46930c9191b2a1c035b180f Mon Sep 17 00:00:00 2001 From: Bagas Hizbullah Date: Sat, 23 Sep 2023 23:03:00 +0700 Subject: [PATCH] fix(deploy): update docs host to 0.0.0.0 --- cmd/http/main.go | 2 +- docs/docs.go | 2 +- docs/swagger.json | 2 +- docs/swagger.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/http/main.go b/cmd/http/main.go index 1ba4750..bd699a0 100644 --- a/cmd/http/main.go +++ b/cmd/http/main.go @@ -49,7 +49,7 @@ func init() { // @license.name MIT // @license.url https://github.com/bagashiz/go-pos/blob/main/LICENSE // -// @host localhost:8080 +// @host 0.0.0.0:8080 // @BasePath /v1 // @schemes http https // diff --git a/docs/docs.go b/docs/docs.go index 44f0746..5ae587d 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -2058,7 +2058,7 @@ const docTemplate = `{ // SwaggerInfo holds exported Swagger Info so clients can modify it var SwaggerInfo = &swag.Spec{ Version: "1.0", - Host: "localhost:8080", + Host: "0.0.0.0:8080", BasePath: "/v1", Schemes: []string{"http", "https"}, Title: "Go POS (Point of Sale) API", diff --git a/docs/swagger.json b/docs/swagger.json index a220089..af6d537 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -18,7 +18,7 @@ }, "version": "1.0" }, - "host": "localhost:8080", + "host": "0.0.0.0:8080", "basePath": "/v1", "paths": { "/categories": { diff --git a/docs/swagger.yaml b/docs/swagger.yaml index dec182a..107b91e 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -388,7 +388,7 @@ definitions: example: "1970-01-01T00:00:00Z" type: string type: object -host: localhost:8080 +host: 0.0.0.0:8080 info: contact: email: bagash.office@simplelogin.com