-
Notifications
You must be signed in to change notification settings - Fork 0
/
posbox.nginx
32 lines (30 loc) · 964 Bytes
/
posbox.nginx
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
server{
listen 80;
server_name localhost;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
location / {
proxy_set_header X-Real-IP \$remote_addr;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_set_header Host \$http_host;
proxy_pass http://localhost:8069/;
}
}
server{
listen 443 ssl;
server_name localhost;
ssl_certificate /etc/nginx/ssl/posbox.crt;
ssl_certificate_key /etc/nginx/ssl/posbox.key;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
location / {
proxy_set_header X-Real-IP \$remote_addr;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_set_header Host \$http_host;
proxy_pass http://localhost:8069/;
}
}