-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: TLS and extend FileServer OpenAPI
- Enable TLS on the HTTP Server correctly - Nest FileServer OpenAPI under /api/*filepath - Add JSON OpenAPI version - Update the mocks to fix Signed-off-by: Enrique Lacal <[email protected]>
- Loading branch information
Showing
27 changed files
with
1,971 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ TESTED_INTERNALS := $(shell go list ./internal/... | grep -v test | grep -v kafk | |
TESTED_CMD := $(shell go list ./cmd/...) | ||
COVERPKG_INTERNALS = $(shell go list ./internal/... | grep -v test | grep -v kafka | tr "\n" ",") | ||
COVERPKG_CMD = $(shell go list ./cmd/... | tr "\n" ",") | ||
# Expect that FireFly compiles with CGO disabled | ||
# Expect that FireFly-FabConnect compiles with CGO disabled | ||
CGO_ENABLED=0 | ||
GOGC=30 | ||
.DELETE_ON_ERROR: | ||
|
@@ -20,13 +20,13 @@ lint: ${LINT} | |
GOGC=20 $(LINT) run -v --timeout 5m | ||
${LINT}: | ||
$(VGO) install github.com/golangci/golangci-lint/cmd/[email protected] | ||
firefly-nocgo: ${GOFILES} | ||
firefly-fabconnect-nocgo: ${GOFILES} | ||
CGO_ENABLED=0 $(VGO) build -o ${BINARY_NAME}-nocgo -ldflags "-X main.buildDate=`date -u +\"%Y-%m-%dT%H:%M:%SZ\"` -X main.buildVersion=$(BUILD_VERSION)" -tags=prod -tags=prod -v | ||
firefly: ${GOFILES} | ||
firefly-fabconnect: ${GOFILES} | ||
$(VGO) build -o ${BINARY_NAME} -ldflags "-X main.buildDate=`date -u +\"%Y-%m-%dT%H:%M:%SZ\"` -X main.buildVersion=$(BUILD_VERSION)" -tags=prod -tags=prod -v | ||
go-mod-tidy: .ALWAYS | ||
go mod tidy | ||
build: firefly-nocgo firefly | ||
build: firefly-fabconnect-nocgo firefly-fabconnect | ||
.ALWAYS: ; | ||
clean: | ||
$(VGO) clean | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.