Skip to content

Instantly share code, notes, and snippets.

@steinnes

steinnes/nginx.conf

Created Dec 30, 2016
Embed
What would you like to do?
nginx config to listen on IPv6 and proxy
user www-data;
worker_processes auto;
pid /run/nginx.pid;
events {
worker_connections 768;
# multi_accept on;
}
stream {
server {
listen [::]:443 ipv6only=on;
proxy_buffer_size 16k;
proxy_pass your.host-which-may-be-ipv4.com:443;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment