mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-29 03:46:25 -06:00
Update nginx.conf
extend example nginx config to listen on IPv6 addresses as well as IPv4.
This commit is contained in:
parent
c585175214
commit
33f342d35d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user