2019-02-10 22:15:33 +01:00
|
|
|
server {
|
|
|
|
listen [::]:80;
|
|
|
|
listen 80;
|
|
|
|
|
|
|
|
server_name www.server.localhost;
|
|
|
|
|
|
|
|
return 301 $scheme://server.localhost$request_uri;
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen [::]:80;
|
|
|
|
listen 80;
|
|
|
|
|
|
|
|
server_name server.localhost;
|
|
|
|
|
|
|
|
root /var/www/server.localhost;
|
|
|
|
|
|
|
|
include h5bp/basic.conf;
|
|
|
|
|
|
|
|
gzip_min_length 1;
|
|
|
|
|
2019-03-15 19:01:48 +01:00
|
|
|
include h5bp/security/content-security-policy.conf;
|
2021-06-29 00:43:34 +02:00
|
|
|
include h5bp/security/permissions-policy.conf;
|
|
|
|
include h5bp/security/cross-origin-policy.conf;
|
2022-11-03 02:44:02 +01:00
|
|
|
include h5bp/web_performance/cache-control.conf;
|
2019-02-10 22:15:33 +01:00
|
|
|
include h5bp/location/web_performance_filename-based_cache_busting.conf;
|
2019-03-09 15:08:44 +01:00
|
|
|
include h5bp/location/web_performance_svgz-compression.conf;
|
2019-02-10 22:15:33 +01:00
|
|
|
include h5bp/errors/custom_errors.conf;
|
|
|
|
|
|
|
|
location ~* /test-pre-gzip {
|
2019-05-16 22:57:57 +02:00
|
|
|
include h5bp/web_performance/pre-compressed_content_gzip.conf;
|
2019-02-10 22:15:33 +01:00
|
|
|
}
|
|
|
|
}
|