meta data de esta página
¡Esta es una revisión vieja del documento!
Instalación de un servidor Zulip
Partimos de una mv de 4Gb con Ubuntu
Descargamos el paquete de instalación
cd $(mktemp -d) wget https://www.zulip.org/dist/releases/zulip-server-latest.tar.gz
Descomprimimos
tar -xf zulip-server-latest.tar.gz
Ejecutamos
Si vamos a utilizar un certificado de https://letsencrypt.org/es/
sudo -s # If not already root ./zulip-server-*/scripts/setup/install --certbot --email=YOUR_EMAIL --hostname=YOUR_HOSTNAME
En caso de utilizar un servidor para pruebas y usar un certificado autofirmado.
./zulip-server-*/scripts/setup/install --self-signed-cert --email=YOUR_EMAIL --hostname=YOUR_HOSTNAME
Configurar el correo
Para configurar Zulip para que pueda enviar notificaciones por correo debemos hacer los isguiente :
- Editar el fichero /etc/zulip/settings.py y modificar las siguientes líneas quitando la # y poniendo los datos de nuestro servidor de correo
sudo nano /etc/zulip/settings.py #EMAIL_HOST = 'smtp.example.com' #EMAIL_HOST_USER = '' #EMAIL_USE_TLS = True #EMAIL_PORT = 587 <sxh> Por ejemplo para usar el servidor de Google quedaría así <sxh> EMAIL_HOST = 'smtp.gmail.com' EMAIL_HOST_USER = 'GMAILADDRESS' EMAIL_USE_TLS = True EMAIL_PORT = 587
Next, you need to configure the password for your SMTP server. To set this, open the necessary file for editing with the command:
sudo nano /etc/zulip/zulip-secrets.conf
In that file, add the following line at the bottom:
email_password = PASSWORD
Where PASSWORD is the password for your SMTP server. If you're using the Gmail SMTP servers, you will have to create an app password for this as you cannot use your Gmail account password.
Save and close the file.
Finally, restart the Zulip services with the command:
su zulip -c '/home/zulip/deployments/current/scripts/restart-server'
Reiniciar el servidor
Si cambiamos algún parámetro de la configuración tendremos que reiniciar el servidor con el siguiente comando para que aplique los cambios.
su zulip -c '/home/zulip/deployments/current/scripts/restart-server'