IPv6 support for Woodpecker agents
-
Currently the Woodpecker Server gRPC Service is only reachable via IPv4, but my server would also allow IPv6 - if the nginx config within the woodpecker container would allow it.
Current nginx config at /app/pkg/grpc-nginx.conf looks like this:
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent"'; server { listen 9090 ssl http2; ssl_certificate /etc/certs/tls_cert.pem; ssl_certificate_key /etc/certs/tls_key.pem; # https://www.nginx.com/blog/deploying-nginx-plus-as-an-api-gateway-part-3-publishing-grpc-services/#Responding-to-Errors include conf.d/errors.grpc_conf; default_type application/grpc; location / { grpc_pass grpc://127.0.0.1:9000; proxy_request_buffering off; proxy_buffering off; proxy_send_timeout 600s; proxy_read_timeout 600s; grpc_send_timeout 600s; grpc_read_timeout 600s; } }The
listen 9090 ssl http2;directive is fine for IPv4. Addinglisten [::]:9090 ssl http2;would also allow IPv6 connectivity - I guess.Hence:
server { listen 9090 ssl http2; listen [::]:9090 ssl http2; [...]
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login