Merge pull request #23 from mabasic/patch-1

Instructs Nginx to listen on both IPv6 and IPv4
This commit is contained in:
Uku Taht 2020-12-07 11:25:45 +02:00 committed by GitHub
commit 11f3867b70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,9 @@ server {
# replace example.com with your domain name # replace example.com with your domain name
server_name example.com; server_name example.com;
listen 80;
listen [::]:80;
location / { location / {
proxy_pass http://127.0.0.1:8000; proxy_pass http://127.0.0.1:8000;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;