Skip to content

Commit efad3c0

Browse files
author
Yaroslav
committed
Improved nginx security by default
1 parent 026ec40 commit efad3c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

data/nginx/app.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
server {
22
listen 80;
33
server_name example.org;
4+
server_tokens off;
45

56
location /.well-known/acme-challenge/ {
67
root /var/www/certbot;
@@ -14,6 +15,7 @@ server {
1415
server {
1516
listen 443 ssl;
1617
server_name example.org;
18+
server_tokens off;
1719

1820
ssl_certificate /etc/letsencrypt/live/example.org/fullchain.pem;
1921
ssl_certificate_key /etc/letsencrypt/live/example.org/privkey.pem;

0 commit comments

Comments
 (0)