cruizba 6a73083e7b openvidu-deployment: General updates in nginx and public ip discovering:
- Add option to redirect www to non-www (REDIRECT_WWW).
- Add endpoint to check nginx workers.
- Custom virtual hosts (Server blocks) can be added by the user to create custom rules in `/opt/openvidu/custom-nginx-vhost`.
- Parametrize `worker_connections` in nginx.conf (WORKER_CONNECTIONS)
- Improve `discover_my_public_ip.sh` to use dns servers instead of http servers
- Posibility to autodiscover ipv6 if available by using `PUBLIC_IP=auto-ipv6` in nginx, `TURN_PUBLIC_IP=auto-ipv6` in coturn and `COTURN_IP=auto-ipv6` in openvidu-server.
By default ipv4 is used.
2020-11-02 19:46:59 +01:00

55 lines
929 B
Plaintext

{app_upstream}
upstream openviduserver {
server localhost:5443;
}
server {
listen {http_port};
server_name {domain_name};
# Redirect to https
location / {
rewrite ^(.*) https://{domain_name}:{https_port}$1 permanent;
}
# letsencrypt
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
{nginx_status}
}
{redirect_www}
{redirect_www_ssl}
server {
listen {https_port} ssl;
server_name {domain_name};
{ssl_config}
{proxy_config}
{app_config}
########################
# OpenVidu Locations #
########################
{common_api_ce}
{deprecated_api_ce}
{new_api_ce}
#################################
# LetsEncrypt #
#################################
location /.well-known/acme-challenge {
root /var/www/certbot;
try_files $uri $uri/ =404;
}
}