Update nginx.conf

extend example nginx config to listen on IPv6 addresses as well as IPv4.
This commit is contained in:
Aaron 2021-07-06 21:30:40 -05:00 committed by GitHub
parent c585175214
commit 33f342d35d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
server {
listen 443 ssl;
listen [::]:443 ssl;
# CHANGE THIS TO YOUR SERVER'S NAME
server_name netbox.example.com;
@ -24,6 +25,7 @@ server {
server {
# Redirect HTTP traffic to HTTPS
listen 80;
listen [::]:80;
server_name _;
return 301 https://$host$request_uri;
}