Skip to content

Commit

Permalink
Turn off server_tokens for nginx http->https redirect vhost
Browse files Browse the repository at this point in the history
Signed-off-by: Janek Richter <[email protected]>
  • Loading branch information
sizowie committed Mar 7, 2023
1 parent 5c0266e commit 6a23c0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions make/photon/prepare/templates/nginx/nginx.https.conf.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ http {
server {
listen 8080;
#server_name harbordomain.com;
server_tokens off;
return 308 https://{{https_redirect}}$request_uri;
}
{% if metric.enabled %}
Expand Down

0 comments on commit 6a23c0f

Please sign in to comment.