Files
lincodex/deploy/edge/nginx/00-default.conf.template

28 lines
1003 B
Plaintext

# Catch-all for requests whose Host is not a served name, on the one address
# this edge uses. It keeps unknown names away from the application and
# stops the TLS handshake without presenting a certificate.
#
# Rendered from deploy/edge/nginx/00-default.conf.template. Do not edit the
# installed copy; change the template and render again.
# Access log without the query string: $uri never contains it, so values
# such as email addresses or tokens in a query are not written to the log.
log_format lincodex '$remote_addr [$time_local] "$request_method $uri" '
'$status $body_bytes_sent rt=$request_time '
'urt=$upstream_response_time id=$request_id';
server {
listen {{EDGE_LISTEN_IP}}:80 default_server;
server_name _;
server_tokens off;
# 444 closes the connection without a response.
return 444;
}
server {
listen {{EDGE_LISTEN_IP}}:443 ssl default_server;
server_name _;
server_tokens off;
ssl_reject_handshake on;
}