def common_config_nginx_ssl(self):
if prompt(red('<STR_LIT>'), default='<STR_LIT:n>') == '<STR_LIT:y>':<EOL><INDENT>if not exists(self.nginx_ssl_dir):<EOL><INDENT>sudo('<STR_LIT>'.format(self.nginx_ssl_dir))<EOL><DEDENT>sudo('<STR_LIT>'.format(self.nginx_ssl_dir))<EOL>put(StringIO(self.nginx_web_ssl_config), '<STR_LIT>', use_sudo=True)<EOL>sudo('<STR_LIT>')<EOL>print(green('<STR_LIT>'))<EOL>print(green('<STR_LIT>'))<EOL>print()<EOL><DEDENT>
Convert nginx server from http to https