Add HTTPS port to echoheaders

This commit is contained in:
Nick Sardo 2018-02-14 13:24:38 -08:00
parent 5101e74347
commit 665985921b
6 changed files with 29 additions and 3 deletions

View file

@ -43,6 +43,7 @@ Request Information:
real path={{ngx.var.request_uri}}
query={{ngx.var.query_string or ""}}
request_version={{ngx.req.http_version()}}
request_scheme={{ngx.var.scheme}}
request_uri={{ngx.var.scheme.."://"..ngx.var.host..":"..ngx.var.server_port..ngx.var.request_uri}}
Request Headers:
@ -60,6 +61,10 @@ Request Body:
# basically instructs to create an individual listening socket for each worker process (using the SO_REUSEPORT
# socket option), allowing a kernel to distribute incoming connections between worker processes.
listen 8080 default_server reuseport;
listen 8443 default_server ssl reuseport;
ssl_certificate /certs/certificate.crt;
ssl_certificate_key /certs/privateKey.key;
# Replace '_' with your hostname.
server_name _;