Add docs on Nginx with IPv6 listen for certbot to work (#10473)
kalle (jag) committed
Apr 14, 2021 at 18:52 UTC
c1866febbde93a8ebe892d8a81d296f3d30a9bb9
2 files changed
+14
-6
docs/Running-behind-nginx.md
+12
-6
@@ -53,6 +53,8 @@ upstream backend {
53
server {
54
# nginx listens to this
55
listen 80;
56
+ # uncomment the line if you want nginx to listen on IPv6 address
57
+ #listen [::]:80;
58
59
# the virtual host name of this
60
server_name netdata.example.com;
@@ -82,16 +84,18 @@ upstream netdata {
84
}
85
86
server {
85
- listen 80;
87
+ listen 80;
88
+ # uncomment the line if you want nginx to listen on IPv6 address
89
+ #listen [::]:80;
90
87
- # the virtual host name of this subfolder should be exposed
88
- #server_name netdata.example.com;
91
+ # the virtual host name of this subfolder should be exposed
92
+ #server_name netdata.example.com;
93
90
- location = /netdata {
94
+ location = /netdata {
95
return 301 /netdata/;
92
- }
96
+ }
97
94
- location ~ /netdata/(?<ndpath>.*) {
98
+ location ~ /netdata/(?<ndpath>.*) {
99
proxy_redirect off;
100
proxy_set_header Host $host;
101
@@ -127,6 +131,8 @@ upstream backend-server2 {
131
132
server {
133
listen 80;
134
+ # uncomment the line if you want nginx to listen on IPv6 address
135
+ #listen [::]:80;
136
137
# the virtual host name of this subfolder should be exposed
138
#server_name netdata.example.com;
docs/guides/step-by-step/step-10.md
+2
@@ -104,6 +104,8 @@ upstream backend {
104
105
server {
106
listen 80;
107
+ # uncomment the line if you want nginx to listen on IPv6 address
108
+ #listen [::]:80;
109
110
# Change `example.com` to match your domain name.
111
server_name netdata.example.com;