mirror of
https://github.com/netbirdio/docs.git
synced 2026-08-24 16:51:26 +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 {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name netbird.example.com;
|
||||
location / {
|
||||
return 301 https://$host$request_uri;
|
||||
@@ -934,6 +935,7 @@ server {
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
server_name netbird.example.com;
|
||||
|
||||
ssl_certificate /path/to/fullchain.pem;
|
||||
|
||||
Reference in New Issue
Block a user