Skip to content

i tried to https to http reverse proxy. then fail #420

Open
@uk-taniyama

Description

@uk-taniyama

export-url : https://export.example.com/api/v1
go-api-url : http://app.example.com/api/v1

Server-URL:
NG : https://export.example.com/api/v1
NG : /api/v1 -> fail

So, i change to swagger data.
Send to client

	swagger.Servers = openapi3.Servers{
		{URL: "/api/v1"},
	}

send to validate middleware.

        // remove servers and  rewrite from relative-path to absolute-path
	swagger.Servers = openapi3.Servers{}
	paths := openapi3.Paths{}
	for k, v := range swagger.Paths {
		paths[path.Join(basePath, k)] = v
	}
	swagger.Paths = paths

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions