1
|
server {
|
2
|
listen 443 ssl;
|
3
|
server_name go.goautodial.org go.goautodial.org;
|
4
|
access_log on;
|
5
|
access_log /var/log/nginx/go.goautodial.org-access_log;
|
6
|
error_log /var/log/nginx/go.goautodial.org-error_log debug;
|
7
|
|
8
|
location ~* .(gif|jpg|jpeg|png|ico|wmv|3gp|avi|mpg|mpeg|mp4|flv|mp3|mid|js|css|html|htm|wml)$ {
|
9
|
if (!-e $request_filename){
|
10
|
rewrite ^(.*)$ /index.php break;
|
11
|
}
|
12
|
root /var/www/html;
|
13
|
expires 365d;
|
14
|
}
|
15
|
|
16
|
|
17
|
|
18
|
location /RECORDINGS {
|
19
|
root /var/spool/asterisk/monitorDONE;
|
20
|
}
|
21
|
|
22
|
location /recordings {
|
23
|
root /var/spool/asterisk/monitorDONE;
|
24
|
}
|
25
|
|
26
|
ssl on;
|
27
|
ssl_certificate /etc/pki/tls/certs/localhost.crt;
|
28
|
ssl_certificate_key /etc/pki/tls/private/localhost.key;
|
29
|
ssl_session_timeout 5m;
|
30
|
ssl_protocols SSLv3 TLSv1;
|
31
|
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+EXP;
|
32
|
ssl_prefer_server_ciphers on;
|
33
|
|
34
|
location / {
|
35
|
index index.html index.htm index.php;
|
36
|
client_max_body_size 10m;
|
37
|
client_body_buffer_size 128k;
|
38
|
|
39
|
proxy_send_timeout 90;
|
40
|
proxy_read_timeout 90;
|
41
|
proxy_buffer_size 128k;
|
42
|
proxy_buffers 4 256k;
|
43
|
proxy_busy_buffers_size 256k;
|
44
|
proxy_temp_file_write_size 256k;
|
45
|
proxy_connect_timeout 30s;
|
46
|
|
47
|
proxy_redirect https://go.goautodial.org:444 https://go.goautodial.org;
|
48
|
proxy_redirect https://www.go.goautodial.org:444 https://www.go.goautodial.org;
|
49
|
proxy_pass https://127.0.0.1:444/;
|
50
|
|
51
|
proxy_set_header Host $host;
|
52
|
proxy_set_header X-Real-IP $remote_addr;
|
53
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
54
|
}
|
55
|
|
56
|
location /agent/ {
|
57
|
index agent.php;
|
58
|
# root /var/www/html/agent;
|
59
|
#rewrite /agent(.*) $1 break;
|
60
|
|
61
|
proxy_pass https://127.0.0.1:444/agent/;
|
62
|
#proxy_redirect off;
|
63
|
proxy_set_header Host $host;
|
64
|
proxy_set_header X-Real-IP $remote_addr;
|
65
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
66
|
}
|
67
|
}
|
68
|
|