Added simple example to nginx for further services (#1766)

This commit is contained in:
Patrick Kishino 2021-03-16 08:33:33 +09:00 committed by GitHub
parent 80803855be
commit cd5ce7b745
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,6 +21,18 @@ http {
proxy_http_version 1.1;
proxy_set_header Connection "";
}
# Add extra locations for other services
# location /<service-name> {
# proxy_pass http://<service-host>:<port>;
# proxy_set_header Host $http_host;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header X-Forwarded-Proto $scheme;
# # HTTP 1.1 support
# proxy_http_version 1.1;
# proxy_set_header Connection "";
# }
}
}