-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx
executable file
·30 lines (24 loc) · 1.04 KB
/
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
upstream upstreamyebo {
server 22.22.22.22:3002;
}
proxy_cache_path /var/lib/nginx/cache/yebo levels=1:2 keys_zone=cacheyebo:8m max_size=50m;
server {
listen 80;
server_name yebo-generator.com www.yebo-generator.com;
# $host variable contains information about the original host being requested
proxy_set_header HOST $host;
# Give the proxied information about the schema of the original client request
proxy_set_header X-Forwarded-Proto $scheme;
# Set X-Real-IP to the ip of the of the client
proxy_set_header X-Real-IP $remote_addr;
# X-Forwarded-For a list of all IP addresses of servers the client proxied through
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
location / {
proxy_cache cacheyebo;
include proxy_params;
proxy_pass http://upstreamyebo;
# Uncomment to enable naxsi on this location
# include /etc/nginx/naxsi.rules
# tt
}
}