Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewcapture committed Jan 9, 2016
1 parent 15176ad commit d7c9757
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions nginx.conf
Expand Up @@ -124,18 +124,14 @@ return 403;
if ( $host != "g.adminhost.org" ) {
return 403;
}
#forbid illegal referer
valid_referers none blocked g.adminhost.org x.adminhost.org;
if ($invalid_referer) {
return 403;
}


access_log off;
error_log on;
error_log /var/log/nginx/google-proxy-error.log;

location / {
proxy_redirect https://www.google.com.tw/ /;
proxy_redirect off;
proxy_cookie_domain google.com g.adminhost.org;
proxy_pass https://backend;
proxy_connect_timeout 60s;
Expand Down Expand Up @@ -198,18 +194,13 @@ return 403;
if ( $host != "x.adminhost.org" ) {
return 403;
}
#forbid illegal referer
valid_referers none blocked g.adminhost.org x.adminhost.org;
if ($invalid_referer) {
return 403;
}

access_log off;
error_log on;
error_log /var/log/nginx/scholar-proxy-error.log;

location / {
proxy_redirect https://scholar.google.com/ncr/ /;
proxy_redirect off;
proxy_cookie_domain scholar.google.com x.adminhost.org;
proxy_pass https://backend;
proxy_connect_timeout 60s;
Expand Down

0 comments on commit d7c9757

Please sign in to comment.