mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-16 04:02:52 -06:00
Closes #6702: Update reference nginx config to support IPv6
This commit is contained in:
parent
78e282d406
commit
72aaf76cf4
@ -1,5 +1,5 @@
|
|||||||
server {
|
server {
|
||||||
listen 443 ssl;
|
listen [::]:443 ssl ipv6only=off;
|
||||||
|
|
||||||
# CHANGE THIS TO YOUR SERVER'S NAME
|
# CHANGE THIS TO YOUR SERVER'S NAME
|
||||||
server_name netbox.example.com;
|
server_name netbox.example.com;
|
||||||
@ -23,7 +23,7 @@ server {
|
|||||||
|
|
||||||
server {
|
server {
|
||||||
# Redirect HTTP traffic to HTTPS
|
# Redirect HTTP traffic to HTTPS
|
||||||
listen 80;
|
listen [::]:80 ipv6only=off;
|
||||||
server_name _;
|
server_name _;
|
||||||
return 301 https://$host$request_uri;
|
return 301 https://$host$request_uri;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user