forked from amurrell/ProxyLocal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.site.conf
84 lines (65 loc) · 2.47 KB
/
nginx.site.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
server {
listen 80;
listen [::]:80;
server_name SITE;
access_log /var/www/site/ProxyLocal/logs/access.log;
error_log /var/www/site/ProxyLocal/logs/error.log warn;
location / {
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
proxy_pass http://dockerlocalPORT_web_1;
proxy_redirect off;
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-Host $server_name;
}
}
server {
listen 443 ssl http2;
listen [::]:443;
ssl_verify_client off;
server_name SITE;
access_log /var/www/site/ProxyLocal/logs/access.log;
error_log /var/www/site/ProxyLocal/logs/error.log warn;
location / {
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
proxy_pass http://dockerlocalPORT_web_1;
proxy_redirect off;
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-Host $server_name;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
proxy_ssl_verify off;
proxy_ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
proxy_ssl_ciphers ALL;
proxy_ssl_session_reuse off;
}
ssl_certificate /var/www/site/ProxyLocal/ssl-certs/SITE-cert.pem;
ssl_certificate_key /var/www/site/ProxyLocal/ssl-certs/SITE-key.pem;
}
server {
server_name socket.SITE;
access_log /var/www/site/ProxyLocal/logs/access.log;
error_log /var/www/site/ProxyLocal/logs/error.log warn;
location / {
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
proxy_pass https://dockerlocalPORT_web_1;
proxy_redirect off;
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-Host $server_name;
}
}