feat(proxy): Implement reverse proxy with path transformation
Add reverse proxy functionality that routes requests based on host headers and transforms paths by removing configured prefixes. Includes comprehensive documentation and configuration files. - Add reverse proxy with host-based routing - Implement path transformation and URL rewriting - Add YAML-based configuration for targets and endpoints - Include PostgreSQL integration with GORM models - Add comprehensive documentation and README - Add Docker configuration for deployment
This commit is contained in:
23
Dockerfile
Normal file
23
Dockerfile
Normal file
@@ -0,0 +1,23 @@
|
||||
FROM golang:alpine AS builder
|
||||
|
||||
LABEL org.opencontainers.image.source=https://git.secnex.io/secnex/gogwapi
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY go.mod ./
|
||||
|
||||
RUN go mod download && go mod verify
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN go build -o gogwapi main.go
|
||||
|
||||
FROM alpine:latest AS runner
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=builder /app/gogwapi .
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["./gogwapi"]
|
||||
Reference in New Issue
Block a user