apt-get install git
git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt
cd /opt/letsencrypt
gzip on; | |
gzip_comp_level 6; | |
gzip_http_version 1.0; | |
gzip_proxied any; | |
gzip_min_length 1100; | |
gzip_buffers 16 8k; | |
gzip_types text/plain text/html text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript; | |
gzip_disable "MSIE [1-6].(?!.*SV1)"; | |
gzip_vary on; | |
add_header X-Frame-Options "SAMEORIGIN" always; |
sh <(curl http://autoinstall.plesk.com/one-click-installer || wget -O - http://autoinstall.plesk.com/one-click-installer)
sh <(curl http://autoinstall.plesk.com/one-click-installer || wget -O - http://autoinstall.plesk.com/one-click-installer) --tier testing
#!/bin/bash | |
cd /var/www | |
find . -name *.jp* | xargs jpegoptim --strip-all -m76 | |
find . -iname '*.png' -print0 | xargs -0 optipng -o7 -preserve |
# EasyEngine admin NGINX CONFIGURATION | |
server { | |
listen 22222 default_server ssl http2; | |
access_log /var/log/nginx/22222.access.log rt_cache; | |
error_log /var/log/nginx/22222.error.log; | |
ssl_certificate /var/www/22222/cert/22222.crt; |
Add the following rules to your nginx configuration
# images, icons, video, audio, css, js
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc|css|js)$ {
expires 1M;
access_log off;
add_header Cache-Control "public";
# Enable Gzip compression | |
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_types | |
application/atom+xml |