mkdir /etc/nginx/ssl
cd /etc/nginx/ssl
openssl dhparam 4096 -out dhparam.pem
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";
# 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; |
<?php | |
return array ( | |
'backend' => | |
array ( | |
'frontName' => 'youradmin-url', | |
), | |
'crypt' => | |
array ( | |
'key' => 'thelongkey', | |
), |
## Example configuration: | |
# upstream fastcgi_backend { | |
# # use tcp connection | |
# # server 127.0.0.1:9000; | |
# # or socket | |
# server unix:/var/run/php5-fpm.sock; | |
# } | |
# server { | |
# listen 80; | |
# server_name mage.dev; |
#!/bin/bash | |
cd /var/www | |
find . -name *.jp* | xargs jpegoptim --strip-all -m76 | |
find . -iname '*.png' -print0 | xargs -0 optipng -o7 -preserve |
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