fixed fee direction
This commit is contained in:
@@ -31,10 +31,10 @@
|
||||
reverse_proxy dev-notification:8081
|
||||
}
|
||||
|
||||
# Monetix callbacks -> mntx gateway
|
||||
# Aurora callbacks -> aurora gateway
|
||||
handle /gateway/m/* {
|
||||
rewrite * /monetix/callback
|
||||
reverse_proxy dev-mntx-gateway:8084
|
||||
rewrite * /aurora/callback
|
||||
reverse_proxy dev-aurora-gateway:8084
|
||||
header Cache-Control "no-cache, no-store, must-revalidate"
|
||||
}
|
||||
|
||||
|
||||
36
ci/dev/aurora-gateway.dockerfile
Normal file
36
ci/dev/aurora-gateway.dockerfile
Normal file
@@ -0,0 +1,36 @@
|
||||
# Development Dockerfile for aurora-gateway Service with Air hot reload
|
||||
|
||||
FROM golang:alpine AS builder
|
||||
|
||||
RUN apk add --no-cache bash git build-base protoc protobuf-dev && \
|
||||
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest && \
|
||||
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest && \
|
||||
go install github.com/air-verse/air@latest
|
||||
|
||||
WORKDIR /src
|
||||
|
||||
COPY api/proto ./api/proto
|
||||
COPY api/pkg ./api/pkg
|
||||
COPY api/gateway/common ./api/gateway/common
|
||||
COPY ci/scripts/proto/generate.sh ./ci/scripts/proto/
|
||||
RUN bash ci/scripts/proto/generate.sh
|
||||
|
||||
# Runtime stage for development with Air
|
||||
FROM golang:alpine
|
||||
|
||||
RUN apk add --no-cache bash git build-base && \
|
||||
go install github.com/air-verse/air@latest
|
||||
|
||||
WORKDIR /src
|
||||
|
||||
# Copy generated proto and pkg from builder
|
||||
COPY --from=builder /src/api/proto ./api/proto
|
||||
COPY --from=builder /src/api/pkg ./api/pkg
|
||||
COPY --from=builder /src/api/gateway/common ./api/gateway/common
|
||||
|
||||
# Source code will be mounted at runtime
|
||||
WORKDIR /src/api/gateway/aurora
|
||||
|
||||
EXPOSE 50075 9405 8084
|
||||
|
||||
CMD ["air", "-c", ".air.toml", "--", "-config.file", "/app/config.yml", "-debug"]
|
||||
Reference in New Issue
Block a user