2021-06-07 10:58:42 +02:00
|
|
|
{xframe_options}
|
|
|
|
|
2020-04-09 16:33:26 +02:00
|
|
|
add_header X-Content-Type-Options nosniff;
|
|
|
|
add_header X-XSS-Protection "1; mode=block";
|
|
|
|
|
2020-11-01 21:03:12 +01:00
|
|
|
{app_upstream}
|
2020-03-27 12:53:04 +01:00
|
|
|
|
2020-04-09 16:33:26 +02:00
|
|
|
upstream kibana {
|
|
|
|
server localhost:5601;
|
|
|
|
}
|
|
|
|
|
2021-03-01 16:03:39 +01:00
|
|
|
upstream elasticsearch {
|
|
|
|
server localhost:9200;
|
|
|
|
}
|
|
|
|
|
2020-03-27 12:53:04 +01:00
|
|
|
upstream openviduserver {
|
|
|
|
server localhost:5443;
|
|
|
|
}
|
|
|
|
|
2020-11-02 19:46:59 +01:00
|
|
|
{redirect_www_ssl}
|
|
|
|
|
2020-03-27 12:53:04 +01:00
|
|
|
server {
|
2020-04-09 16:33:26 +02:00
|
|
|
# Redirect to https
|
|
|
|
if ($host = {domain_name}) {
|
2020-04-28 15:53:56 +02:00
|
|
|
rewrite ^(.*) https://{domain_name}:{https_port}$1 permanent;
|
2020-04-09 16:33:26 +02:00
|
|
|
} # managed by Certbot
|
2023-05-20 23:08:28 +02:00
|
|
|
|
2020-11-02 19:46:59 +01:00
|
|
|
{redirect_www}
|
2020-04-09 16:33:26 +02:00
|
|
|
|
2020-04-28 15:53:56 +02:00
|
|
|
listen {http_port} default_server;
|
2020-11-25 12:07:33 +01:00
|
|
|
listen [::]:{http_port} default_server;
|
2020-04-09 16:33:26 +02:00
|
|
|
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;
|
2023-05-20 23:08:28 +02:00
|
|
|
|
2020-04-09 16:33:26 +02:00
|
|
|
rewrite ^/kibana/(.*)$ /$1 break;
|
|
|
|
proxy_pass http://kibana/;
|
|
|
|
}
|
2020-11-02 19:46:59 +01:00
|
|
|
|
|
|
|
{nginx_status}
|
2020-04-09 16:33:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
2020-04-28 15:53:56 +02:00
|
|
|
listen {https_port} ssl default deferred;
|
2020-11-25 12:07:33 +01:00
|
|
|
listen [::]:{https_port} ssl default deferred;
|
2020-03-27 12:53:04 +01:00
|
|
|
server_name {domain_name};
|
|
|
|
|
2020-11-01 21:03:12 +01:00
|
|
|
{ssl_config}
|
2023-05-20 23:08:28 +02:00
|
|
|
|
2020-11-01 21:03:12 +01:00
|
|
|
{proxy_config}
|
2020-04-09 16:33:26 +02:00
|
|
|
|
2020-11-01 21:03:12 +01:00
|
|
|
{app_config}
|
2020-04-20 18:45:56 +02:00
|
|
|
|
2020-11-01 21:03:12 +01:00
|
|
|
########################
|
|
|
|
# OpenVidu Locations #
|
|
|
|
########################
|
|
|
|
{common_api_pro}
|
2020-04-09 16:33:26 +02:00
|
|
|
|
2020-11-01 21:03:12 +01:00
|
|
|
{deprecated_api_pro}
|
2020-04-09 16:33:26 +02:00
|
|
|
|
2020-11-01 21:03:12 +01:00
|
|
|
{new_api_pro}
|
2020-06-29 16:37:26 +02:00
|
|
|
|
2020-10-14 14:34:21 +02:00
|
|
|
#################################
|
|
|
|
# LetsEncrypt #
|
|
|
|
#################################
|
|
|
|
|
2020-06-29 16:37:26 +02:00
|
|
|
location /.well-known/acme-challenge {
|
|
|
|
root /var/www/certbot;
|
|
|
|
try_files $uri $uri/ =404;
|
|
|
|
}
|
2021-09-30 16:33:08 +02:00
|
|
|
|
|
|
|
{custom_locations}
|
2020-04-09 16:33:26 +02:00
|
|
|
}
|