|
|
@ -13,7 +13,6 @@ http {
|
|
|
|
# Standard HTTP configuration with slight hardening
|
|
|
|
# Standard HTTP configuration with slight hardening
|
|
|
|
include /etc/nginx/mime.types;
|
|
|
|
include /etc/nginx/mime.types;
|
|
|
|
default_type application/octet-stream;
|
|
|
|
default_type application/octet-stream;
|
|
|
|
access_log /dev/stdout;
|
|
|
|
|
|
|
|
sendfile on;
|
|
|
|
sendfile on;
|
|
|
|
keepalive_timeout 65;
|
|
|
|
keepalive_timeout 65;
|
|
|
|
server_tokens off;
|
|
|
|
server_tokens off;
|
|
|
@ -38,6 +37,13 @@ http {
|
|
|
|
~*\.(ico|css|js|gif|jpeg|jpg|png|woff2?|ttf|otf|svg|tiff|eot|webp)$ 97d;
|
|
|
|
~*\.(ico|css|js|gif|jpeg|jpg|png|woff2?|ttf|otf|svg|tiff|eot|webp)$ 97d;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
map $request_uri $loggable {
|
|
|
|
|
|
|
|
/health 0;
|
|
|
|
|
|
|
|
/auth/email 0;
|
|
|
|
|
|
|
|
default 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
access_log /dev/stdout combined if=$loggable;
|
|
|
|
|
|
|
|
|
|
|
|
# compression
|
|
|
|
# compression
|
|
|
|
gzip on;
|
|
|
|
gzip on;
|
|
|
|
gzip_static on;
|
|
|
|
gzip_static on;
|
|
|
|