forked from elmau/empresa-libre
Fix - Correo
This commit is contained in:
commit
31bfc9e955
|
@ -262,9 +262,8 @@ class SendMail(object):
|
||||||
return self._error
|
return self._error
|
||||||
|
|
||||||
def _login(self):
|
def _login(self):
|
||||||
servers_ssl = ('smtp.gmail.com', '')
|
|
||||||
try:
|
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._server = smtplib.SMTP(
|
||||||
self._config['servidor'],
|
self._config['servidor'],
|
||||||
self._config['puerto'], timeout=10)
|
self._config['puerto'], timeout=10)
|
||||||
|
|
|
@ -21,8 +21,13 @@ server {
|
||||||
alias /opt/empresa-libre/static;
|
alias /opt/empresa-libre/static;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if ($http_user_agent ~* (python|curl) ) {
|
if ($http_user_agent ~* (python|curl) ) {
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Necesario para Let's Encrypt
|
||||||
|
location ^~ /.well-known/acme-challenge/ {
|
||||||
|
default_type "text/plain";
|
||||||
|
root /opt/www;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue