1
Fork 0

Replace ping file with NGINX

Means we can turn off access logs
This commit is contained in:
Jake Howard 2020-04-10 13:59:56 +01:00
parent e56b80b8fb
commit ea45e523ea
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 5 additions and 3 deletions

View file

@ -12,7 +12,6 @@ events {
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /dev/stdout;
access_log /var/log/nginx/access.log;
@ -44,6 +43,11 @@ http {
access_log off;
}
location /ping {
access_log off;
return 200;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
}

View file

@ -30,5 +30,3 @@ cp $BASEDIR/static/keybase.txt $OUTPUT_DIR/keybase.txt
mkdir -p $OUTPUT_DIR/.well-known/matrix
cp $BASEDIR/static/matrix.json $OUTPUT_DIR/.well-known/matrix/server
touch $OUTPUT_DIR/ping.txt