Инициализация NGINX
This commit is contained in:
Symlink
+1
@@ -0,0 +1 @@
|
||||
/etc/nginx/sites-available/default
|
||||
@@ -0,0 +1,40 @@
|
||||
server {
|
||||
server_name __CLIENT_F7CLOUD__;
|
||||
|
||||
|
||||
|
||||
server_tokens off;
|
||||
|
||||
location ^~ /.well-known/acme-challenge/ {
|
||||
root /var/www/html;
|
||||
try_files $uri =404;
|
||||
}
|
||||
location / {
|
||||
proxy_pass http://__IP_CLIENT_F7CLOUD__:80;
|
||||
proxy_http_version 1.1;
|
||||
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto https;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
proxy_set_header X-Forwarded-Port 443;
|
||||
|
||||
proxy_read_timeout 3600;
|
||||
proxy_send_timeout 3600;
|
||||
proxy_connect_timeout 60;
|
||||
|
||||
proxy_buffering off;
|
||||
proxy_request_buffering off;
|
||||
}
|
||||
|
||||
access_log /var/log/nginx/__CLIENT_F7CLOUD___access.log;
|
||||
error_log /var/log/nginx/__CLIENT_F7CLOUD___error.log;
|
||||
|
||||
listen [::]:80;
|
||||
listen 80;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
include /etc/nginx/snippets/signaling-upstream-servers.conf;
|
||||
|
||||
server {
|
||||
listen 0.0.0.0:80;
|
||||
listen [::]:80 ipv6only=on;
|
||||
|
||||
server_name __HPB_F7CLOUD__;
|
||||
server_tokens off;
|
||||
|
||||
location ^~ /.well-known/acme-challenge/ {
|
||||
root /var/www/html;
|
||||
try_files $uri =404;
|
||||
}
|
||||
|
||||
location / {
|
||||
rewrite ^ https://$host$request_uri? permanent;
|
||||
}
|
||||
include /etc/nginx/snippets/signaling-forwarding.conf;
|
||||
access_log /var/log/nginx/__HPB_F7CLOUD___access.log;
|
||||
error_log /var/log/nginx/__HPB_F7CLOUD___error.log;
|
||||
}
|
||||
|
||||
stream {
|
||||
upstream coturn_backend {
|
||||
server __IP_HPB_F7CLOUD__:5349;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 5349; # TCP для TURN
|
||||
listen 5349 udp; # UDP для звонков (ВАЖНО!)
|
||||
proxy_pass coturn_backend;
|
||||
proxy_timeout 1h;
|
||||
proxy_connect_timeout 5s;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user