user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 1024;
multi_accept on;
}
http {
##
# Basic Settings
##
# Anti DDoS
limit_req_zone $binary_remote_addr zone=one:10m rate=12r/s;
limit_req_log_level error;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
# server_tokens off;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# SSL Settings
##
ssl_stapling on;
ssl_stapling_verify on;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
resolver ip_dns_сервера;
##
# Logging Settings
##
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
##
# Gzip Settings
##
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 text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
upstream prod-ui-мой_сайтru-upstream {
server 172.20.71.x1:30300;
server 172.20.71.x2:30300;
server 172.20.71.x3:30300;
server 172.20.71.x4:30300;
}
server {
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/www.мой_сайт.ru/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/www.мой_сайт.ru/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
server_name мой_сайт.ru www.мой_сайт.ru;
if ($host = www.мой_сайт.ru) {
return 301 https://мой_сайт.ru$request_uri;
}
access_log /var/log/nginx/мой_сайт.ru-access.log;
error_log /var/log/nginx/мой_сайт.ru-error.log;
root /var/www/мой_сайт.ru-prod;
location / {
limit_req zone=one burst=20;
limit_req_log_level error;
proxy_pass http://prod-ui-мой_сайтru-upstream;
}
location /.well-known/acme-challenge {
limit_req zone=one burst=20;
limit_req_log_level error;
}
}
server {
# if ($host = мой_сайт.ru) {
# return 301 https://$host$request_uri;
# } # managed by Certbot
# if ($host = www.мой_сайт.ru) {
# return 301 https://$host$request_uri;
# } # managed by Certbot
return 301 https://мой_сайт.ru$request_uri;
listen 80;
server_name мой_сайт.ru www.мой_сайт.ru;
return 404; # managed by Certbot
}
./perccli /c0 /e32 /s0 insert dg=0 array=0 row=0
Controller = 0
Status = Success
Description = Insert Drive Succeeded.
----------------------------------------------------------------------------
DG Arr Row EID:Slot DID Type State BT Size PDC PI SED DS3 FSpace TR
----------------------------------------------------------------------------
0 - - - - RAID1 Dgrd N 111.25 GB dflt N N dflt N N
0 0 - - - RAID1 Dgrd N 111.25 GB dflt N N dflt N N
0 0 0 32:0 0 DRIVE Offln N 111.25 GB dflt N N dflt - N
0 0 1 32:1 1 DRIVE Onln N 111.25 GB dflt N N dflt - N
----------------------------------------------------------------------------
./perccli /c0 /e32 /s0 start rebuild
Controller = 0
Status = Success
Description = Start Drive Rebuild Succeeded.
-- Disk information --
-- ID | Type | Drive Model | Size | Status | Speed | Temp | Slot ID | LSI ID
c0u0p0 | SSD | 50026B7282392E20 KINGSTON SA400S37120G SBFKB1D1 | 111. Gb | Rebuilding (10%) | 6.0Gb/s | N/A | [32:0] | 0
c0u0p1 | SSD | 50026B7282285C9C KINGSTON SA400S37120G SBFKB1D1 | 111. Gb | Online, Spun Up | 6.0Gb/s | N/A | [32:1] | 1