View difference between Paste ID: Y6dUMaxE and k8SLLsba
SHOW: | | - or go back to the newest paste.
1
server {
2
  listen 80;
3
  listen [::]:80;
4-
  server_name voice.diamondbots.ru www.voice.diamondbots.ru;
4+
  server_name testvoice.diamondbots.ru www.testvoice.diamondbots.ru;
5
  return 302 https://$server_name$request_uri;
6
}
7
8
server {
9
  # SSL configuration
10
11
  listen 443 ssl http2;
12
  listen [::]:443 ssl http2;
13
  ssl on;
14
  ssl_certificate /etc/ssl/certs/cert.pem;
15
  ssl_certificate_key /etc/ssl/private/key.pem;
16
  ssl_client_certificate /etc/ssl/certs/cloudflare.crt;
17
  ssl_verify_client on;
18
  
19-
  server_name voice.diamondbots.ru www.diamondbots.ru;
19+
  server_name testvoice.diamondbots.ru www.testvoice.diamondbots.ru;
20
21-
  root /var/www/voice.diamondbots.ru;
21+
  root /var/www/testvoice.diamondbots.ru;
22
  index index.html index.htm index.nginx-debian.html;
23
24
  location /server {
25
    # rewrite ^/server/(.*) /$1 break;
26
27
    proxy_pass http://127.0.0.1:3443;
28
    proxy_http_version 1.1;
29
    proxy_set_header Upgrade $http_upgrade;
30
    proxy_set_header Connection "upgrade";
31
    proxy_connect_timeout 86400h;
32
    proxy_send_timeout 86400h;
33
    proxy_read_timeout 86400h;
34
  }
35
  
36
  location /client {
37
    rewrite ^/client/(.*) /$1 break;
38
    try_files $uri /index.html;
39
  }
40
}