Skip to content

Instantly share code, notes, and snippets.

@steinnes
Created December 30, 2016 13:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steinnes/c6f0073485593c05fee51a123eadab91 to your computer and use it in GitHub Desktop.
Save steinnes/c6f0073485593c05fee51a123eadab91 to your computer and use it in GitHub Desktop.
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