#!/bin/bash

sed -i 's/proxy_ssl_session_reuse on;/proxy_ssl_session_reuse off;/' /etc/nginx/conf.d/http_settings.conf
grep proxy_ssl_name /etc/nginx/conf.d/http_settings.conf || sed -i '/proxy_connect_timeout/a proxy_ssl_name $host;' /etc/nginx/conf.d/http_settings.conf
grep proxy_ssl_server_name /etc/nginx/conf.d/http_settings.conf || sed -i '/proxy_connect_timeout/a proxy_ssl_server_name on;' /etc/nginx/conf.d/http_settings.conf
nginx -s reload
