mirror of https://github.com/OpenVidu/openvidu.git
103 lines
1.9 KiB
Plaintext
103 lines
1.9 KiB
Plaintext
{xframe_options}
|
|
|
|
{enterprise_ha_nodes_upstream}
|
|
|
|
{app_upstream}
|
|
|
|
upstream minio {
|
|
server minio-s3:9001;
|
|
}
|
|
|
|
upstream kibana {
|
|
server kibana:5601;
|
|
}
|
|
|
|
upstream elasticsearch {
|
|
server elasticsearch:9200;
|
|
}
|
|
|
|
{redirect_www_ssl}
|
|
|
|
##################################
|
|
# Private Load balancer port #
|
|
##################################
|
|
server {
|
|
listen 5443;
|
|
|
|
location / {
|
|
{proxy_config}
|
|
|
|
proxy_pass http://openviduserver;
|
|
}
|
|
|
|
}
|
|
|
|
##################################
|
|
# Public Load balancer #
|
|
##################################
|
|
server {
|
|
# Redirect to https
|
|
if ($host = {domain_name}) {
|
|
rewrite ^(.*) https://{domain_name}:{https_port}$1 permanent;
|
|
} # managed by Certbot
|
|
|
|
{redirect_www}
|
|
|
|
listen {http_port} default_server;
|
|
listen [::]:{http_port} default_server;
|
|
server_name {domain_name};
|
|
|
|
# letsencrypt
|
|
location /.well-known/acme-challenge {
|
|
root /var/www/certbot;
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
|
|
# Kibana panel
|
|
location /kibana {
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection 'upgrade';
|
|
proxy_set_header Host $host;
|
|
proxy_cache_bypass $http_upgrade;
|
|
|
|
rewrite ^/kibana/(.*)$ /$1 break;
|
|
proxy_pass http://kibana/;
|
|
}
|
|
|
|
{nginx_status}
|
|
}
|
|
|
|
server {
|
|
listen {https_port} ssl default deferred;
|
|
listen [::]:{https_port} ssl default deferred;
|
|
server_name {domain_name};
|
|
|
|
{ssl_config}
|
|
|
|
{proxy_config}
|
|
|
|
{app_config}
|
|
|
|
########################
|
|
# OpenVidu Locations #
|
|
########################
|
|
{common_api_pro}
|
|
|
|
{deprecated_api_pro}
|
|
|
|
{common_api_enterprise}
|
|
|
|
{new_api_pro}
|
|
|
|
#################################
|
|
# LetsEncrypt #
|
|
#################################
|
|
|
|
location /.well-known/acme-challenge {
|
|
root /var/www/certbot;
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
|
|
{custom_locations}
|
|
} |