mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-06-18 10:06:26 +00:00
Support for dynamic ip ranges from urls
- Adds ipranges command to fetch ip ranges from Cloudfront and Cloudflare - Write the ipranges file on docker start - Support disabling ipv4 as well as ipv6 now - Prevent disabling both
This commit is contained in:
@ -20,15 +20,24 @@ case ${TARGETPLATFORM:-} in
|
||||
;;
|
||||
esac
|
||||
|
||||
echo -e "${BLUE}❯ ${CYAN}Building binary for ${YELLOW}${GOARCH} (${TARGETPLATFORM:-})${RESET}"
|
||||
echo -e "${BLUE}❯ ${CYAN}Building binaries for ${YELLOW}${GOARCH} (${TARGETPLATFORM:-})${RESET}"
|
||||
|
||||
# server
|
||||
go build \
|
||||
-buildvcs=false \
|
||||
-ldflags "-w -s -X main.commit=${BUILD_COMMIT:-notset} -X main.version=${BUILD_VERSION} -X main.sentryDSN=${SENTRY_DSN:-}" \
|
||||
-o "${1:-/dist/server}" \
|
||||
./cmd/server
|
||||
|
||||
# test binary
|
||||
/dist/server --version
|
||||
# ipranges
|
||||
go build \
|
||||
-buildvcs=false \
|
||||
-ldflags "-w -s -X main.commit=${BUILD_COMMIT:-notset} -X main.version=${BUILD_VERSION} -X main.sentryDSN=${SENTRY_DSN:-}" \
|
||||
-o "${1:-/dist/ipranges}" \
|
||||
./cmd/ipranges
|
||||
|
||||
echo -e "${BLUE}❯ ${CYAN}Build binary complete${RESET}"
|
||||
# test binaries
|
||||
/dist/server --version
|
||||
/dist/ipranges --version
|
||||
|
||||
echo -e "${BLUE}❯ ${CYAN}Build binaries complete${RESET}"
|
||||
|
Reference in New Issue
Block a user