NginxΒΆ
Wazo use nginx as a web server and reverse proxy.
In its default configuration, the nginx server listens on port TCP/80 and TCP/443 and allows these services to be used:
- web interface (xivo-web-interface)
- API documentation (xivo-swagger-doc)
An administrator can easily modify the configuration to allow additional services to be used (e.g. xivo-auth or xivo-confd).
To do so, an administrator only has to create a symbolic link inside the
/etc/nginx/locations/http-enabled
directory to the corresponding file in the
/etc/nginx/locations/http-available
directory, and then reload nginx with
systemctl reload nginx
. A similar operation must be done for HTTPS.
For example, to enable all the available services:
ln -sf /etc/nginx/locations/http-available/* /etc/nginx/locations/http-enabled
ln -sf /etc/nginx/locations/https-available/* /etc/nginx/locations/https-enabled
systemctl reload nginx
To disable all the services other than the web interface:
rm /etc/nginx/locations/http-enabled/* /etc/nginx/locations/https-enabled/*
ln -s /etc/nginx/locations/http-available/xivo-web-interface /etc/nginx/locations/http-enabled
ln -s /etc/nginx/locations/https-available/xivo-web-interface /etc/nginx/locations/https-enabled
systemctl reload nginx