From 99ae0181c131314f67ab855f64006a1d762d2e56 Mon Sep 17 00:00:00 2001 From: Mauricio Baeza Date: Sat, 13 Jan 2018 13:37:19 -0600 Subject: [PATCH] Fix - Correo --- source/app/controllers/helper.py | 3 +-- source/app/empresalibre.conf.example | 7 ++++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/source/app/controllers/helper.py b/source/app/controllers/helper.py index 53d4af6..ab9eb71 100644 --- a/source/app/controllers/helper.py +++ b/source/app/controllers/helper.py @@ -262,9 +262,8 @@ class SendMail(object): return self._error def _login(self): - servers_ssl = ('smtp.gmail.com', '') try: - if self._config['ssl'] and 'gmail' in self._config['servidor']: + if self._config['ssl'] and 'gmail' or 'outlook' in self._config['servidor']: self._server = smtplib.SMTP( self._config['servidor'], self._config['puerto'], timeout=10) diff --git a/source/app/empresalibre.conf.example b/source/app/empresalibre.conf.example index f567e4f..8f0f3dd 100644 --- a/source/app/empresalibre.conf.example +++ b/source/app/empresalibre.conf.example @@ -21,8 +21,13 @@ server { alias /opt/empresa-libre/static; } - if ($http_user_agent ~* (python|curl) ) { return 404; } + + # Necesario para Let's Encrypt + location ^~ /.well-known/acme-challenge/ { + default_type "text/plain"; + root /opt/www; + } } \ No newline at end of file