Replace ping file with NGINX
Means we can turn off access logs
This commit is contained in:
parent
e56b80b8fb
commit
ea45e523ea
2 changed files with 5 additions and 3 deletions
|
@ -12,7 +12,6 @@ events {
|
||||||
|
|
||||||
http {
|
http {
|
||||||
include /etc/nginx/mime.types;
|
include /etc/nginx/mime.types;
|
||||||
default_type application/octet-stream;
|
|
||||||
|
|
||||||
access_log /dev/stdout;
|
access_log /dev/stdout;
|
||||||
access_log /var/log/nginx/access.log;
|
access_log /var/log/nginx/access.log;
|
||||||
|
@ -44,6 +43,11 @@ http {
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /ping {
|
||||||
|
access_log off;
|
||||||
|
return 200;
|
||||||
|
}
|
||||||
|
|
||||||
error_page 404 /404.html;
|
error_page 404 /404.html;
|
||||||
error_page 500 502 503 504 /50x.html;
|
error_page 500 502 503 504 /50x.html;
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,5 +30,3 @@ cp $BASEDIR/static/keybase.txt $OUTPUT_DIR/keybase.txt
|
||||||
|
|
||||||
mkdir -p $OUTPUT_DIR/.well-known/matrix
|
mkdir -p $OUTPUT_DIR/.well-known/matrix
|
||||||
cp $BASEDIR/static/matrix.json $OUTPUT_DIR/.well-known/matrix/server
|
cp $BASEDIR/static/matrix.json $OUTPUT_DIR/.well-known/matrix/server
|
||||||
|
|
||||||
touch $OUTPUT_DIR/ping.txt
|
|
||||||
|
|
Loading…
Reference in a new issue