mirror of
https://github.com/netbirdio/docs.git
synced 2026-10-05 13:19:05 +02:00
nginx config: listen on ipv6 as well (#604)
Without this change, nginx will not consider this server configuration for traffic received over ipv6.
This commit is contained in:
@@ -926,6 +926,7 @@ upstream netbird_relay {
|
|||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
server_name netbird.example.com;
|
server_name netbird.example.com;
|
||||||
location / {
|
location / {
|
||||||
return 301 https://$host$request_uri;
|
return 301 https://$host$request_uri;
|
||||||
@@ -934,6 +935,7 @@ server {
|
|||||||
|
|
||||||
server {
|
server {
|
||||||
listen 443 ssl http2;
|
listen 443 ssl http2;
|
||||||
|
listen [::]:443 ssl http2;
|
||||||
server_name netbird.example.com;
|
server_name netbird.example.com;
|
||||||
|
|
||||||
ssl_certificate /path/to/fullchain.pem;
|
ssl_certificate /path/to/fullchain.pem;
|
||||||
|
|||||||
Reference in New Issue
Block a user