Small list of useful docker containers with nginx as reverse proxy using easyengine. To deploy on Debian/Ubuntu.
wget -qO- https://get.docker.com/ | sh
| 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 |
| ## 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; |
| <?php | |
| return array ( | |
| 'backend' => | |
| array ( | |
| 'frontName' => 'youradmin-url', | |
| ), | |
| 'crypt' => | |
| array ( | |
| 'key' => 'thelongkey', | |
| ), |
| # 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; |