-
Notifications
You must be signed in to change notification settings - Fork 1
/
fb-proxy.conf
35 lines (33 loc) · 1.39 KB
/
fb-proxy.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
set $listen_ip 127.0.0.1;
set $base_domain ololosh.com;
server {
server_name cn.fb.ololosh.com;
listen $listen_ip;
location / {
proxy_pass http://cn.flibusta.is;
proxy_set_header Host cn.flibusta.is;
proxy_set_header Referer flibusta.is;
}
}
server {
server_name static.fb.ololosh.com;
listen $listen_ip;
location / {
proxy_pass http://static.flibusta.is:443;
proxy_set_header Host static.flibusta.is;
proxy_set_header Referer flibusta.is;
}
}
server {
server_name fb.ololosh.com;
listen $listen_ip;
location / {
proxy_pass http://flibusta.is;
proxy_set_header Host flibusta.is;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_redirect http://static.flibusta.is:443/ http://static.fb.ololosh.com/;
proxy_redirect http://cn.flibusta.is/ http://cn.fb.ololosh.com/;
}
}