|
|
|
@ -28,23 +28,23 @@ http {
|
|
|
|
|
gzip on;
|
|
|
|
|
gzip_disable "msie6";
|
|
|
|
|
|
|
|
|
|
gzip_vary on;
|
|
|
|
|
gzip_proxied any;
|
|
|
|
|
gzip_comp_level 6;
|
|
|
|
|
gzip_buffers 16 8k;
|
|
|
|
|
gzip_http_version 1.1;
|
|
|
|
|
gzip_min_length 256;
|
|
|
|
|
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/vnd.ms-fontobject application/x-font-ttf font/opentype image/svg+xml;
|
|
|
|
|
gzip_vary on;
|
|
|
|
|
gzip_proxied any;
|
|
|
|
|
gzip_comp_level 6;
|
|
|
|
|
gzip_buffers 16 8k;
|
|
|
|
|
gzip_http_version 1.1;
|
|
|
|
|
gzip_min_length 256;
|
|
|
|
|
gzip_types text/plain text/css application/json application/x-javascript application/javascript text/xml application/xml application/xml+rss text/javascript application/vnd.ms-fontobject application/x-font-ttf font/opentype image/svg+xml font/woff2 text/html image/x-icon;
|
|
|
|
|
|
|
|
|
|
server {
|
|
|
|
|
listen 80;
|
|
|
|
|
listen 81 default_server http2 proxy_protocol; ## Needed when behind HAProxy with SSL termination + HTTP/2 support
|
|
|
|
|
listen 443 default_server ssl http2;
|
|
|
|
|
listen 80;
|
|
|
|
|
listen 81 default_server http2 proxy_protocol; ## Needed when behind HAProxy with SSL termination + HTTP/2 support
|
|
|
|
|
listen 443 default_server ssl http2;
|
|
|
|
|
|
|
|
|
|
server_name _;
|
|
|
|
|
|
|
|
|
|
ssl_certificate /etc/nginx/ssl/dummy.crt;
|
|
|
|
|
ssl_certificate_key /etc/nginx/ssl/dummy.key;
|
|
|
|
|
ssl_certificate /etc/nginx/ssl/dummy.crt;
|
|
|
|
|
ssl_certificate_key /etc/nginx/ssl/dummy.key;
|
|
|
|
|
|
|
|
|
|
location / {
|
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
|