File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ test: clean build
51
51
52
52
# everytime you added some new variables, you need to swap it with some test values
53
53
# and swap it back after the test. This is because "nginx -t" test cannot read env variables.
54
+ # NOTE: on Mac OS-X you need to install gnu-sed `brew install gnu-sed` and add gnubin to your $PATH
55
+ # or this will error out b/c Mac uses BSD-sed
54
56
validate-proxy :
55
57
sed -i ' s/{{nameservers}}/127.0.0.1/g' proxy/nginx.conf
56
58
sed -i ' s/{{env "EXTERNAL_ROUTE"}}/127.0.0.2/g' proxy/nginx.conf proxy/nginx-cloudfront.conf
Original file line number Diff line number Diff line change @@ -110,3 +110,5 @@ location /maptiles {
110
110
proxy_pass https://tile.openstreetmap.org/;
111
111
}
112
112
113
+ # Don't leak any server information in response headers
114
+ server_tokens off;
You can’t perform that action at this time.
0 commit comments