mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-02-17 09:05:56 +00:00
add IPv6 Support for NGINX reverse proxy
parent
637a82bf7c
commit
24f0fd299b
1 changed files with 4 additions and 2 deletions
|
@ -26,6 +26,7 @@ With SSL:
|
||||||
```nginx
|
```nginx
|
||||||
server {
|
server {
|
||||||
listen 443 ssl http2;
|
listen 443 ssl http2;
|
||||||
|
# Remove '#' in the next line to enable IPv6
|
||||||
# listen [::]:443 ssl http2;
|
# listen [::]:443 ssl http2;
|
||||||
server_name sub.domain.com;
|
server_name sub.domain.com;
|
||||||
ssl_certificate /path/to/ssl/cert/crt;
|
ssl_certificate /path/to/ssl/cert/crt;
|
||||||
|
@ -47,6 +48,7 @@ Without SSL:
|
||||||
```nginx
|
```nginx
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
|
# Remove '#' in the next line to enable IPv6
|
||||||
# listen [::]:80;
|
# listen [::]:80;
|
||||||
server_name sub.domain.com;
|
server_name sub.domain.com;
|
||||||
location / {
|
location / {
|
||||||
|
|
Loading…
Add table
Reference in a new issue