server {
listen 443 ssl;
server_name server.ru;
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
ssl_certificate /etc/letsencrypt/live/server.ru/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/server.ru/privkey.pem;
access_log /var/log/nginx/server.ru-access.log main;
error_log /var/log/nginx/server.ru-error.log;
location / {
proxy_pass https://10.178.5.31;
add_header X-Frame-Options "SAMEORIGIN";
proxy_set_header X-Custom-Referrer "RDG_OUT_DATA";
proxy_pass_request_headers on;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
}
client_max_body_size 0;
}
Плюс, завтра позвоню в наш РКН, что они скажут