Install munin-node
apt install munin-node munin-plugins-extra -y
allow munin-master
# /etc/munin/munin-node.conf
ssl-ee-domain () | |
{ | |
read -p "Enter your domain name: " domain_name | |
~/.acme.sh/acme.sh --issue -d $domain_name -d www.$domain_name --keylength ec-384 --dns dns_cf --dnssleep 60 | |
# create folder to store certificate | |
mkdir -p /etc/nginx/acme.sh/$domain_name |
<?php | |
/** Define ABSPATH as this file's directory */ | |
if (! defined('ABSPATH')) { | |
define('ABSPATH', __DIR__ . '/'); | |
} | |
/* If wp-config.php exists in the WordPress root, or if it exists in the root and wp-settings.php | |
* doesn't, load wp-config.php. The secondary check for wp-settings.php has the added benefit | |
* of avoiding cases where the current directory is a nested installation, e.g. / is WordPress(a) |
./configure \ | |
--with-cc-opt='-g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2' \ | |
--with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro' \ | |
--prefix=/usr/share/nginx \ | |
--conf-path=/etc/nginx/nginx.conf \ | |
--http-log-path=/var/log/nginx/access.log \ | |
--error-log-path=/var/log/nginx/error.log \ | |
--lock-path=/var/lock/nginx.lock \ | |
--pid-path=/run/nginx.pid \ | |
--http-client-body-temp-path=/var/lib/nginx/body \ |
apt install php7.1-common php7.1-cli php7.1-zip php7.1-opcache php7.1-mysql php7.1-mcrypt php7.1-mbstring php7.1-json php7.1-intl php7.1-gd php7.1-fpm php7.1-curl php7.1-bz2
Copy the php7.1-fpm pool configuration from php7.0-fpm
cp -f /etc/php/7.0/fpm/pool.d/www.conf /etc/php/7.1/fpm/pool.d/www.conf
# Package generated configuration file | |
# See the sshd_config(5) manpage for details | |
# What ports, IPs and protocols we listen for | |
Port 22 | |
# Use these options to restrict which interfaces/protocols sshd will bind to | |
#ListenAddress :: | |
#ListenAddress 0.0.0.0 | |
Protocol 2 | |
# HostKeys for protocol version 2 |
## | |
# SSL Settings (TLSv1.2 and TLSv1.3) | |
## | |
ssl_protocols TLSv1.2 TLSv1.3; | |
ssl_ciphers 'TLS13+AESGCM+AES128:EECDH+AES128'; | |
ssl_prefer_server_ciphers on; | |
ssl_session_cache shared:SSL:50m; | |
ssl_session_timeout 1d; | |
ssl_session_tickets off; | |
ssl_ecdh_curve X25519:sect571r1:secp521r1:secp384r1 |
# 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; |