[google-appengine] It's so sad.

2011-03-21 Thread 李晓东
I'm now in China mainland. It's so said that I can't use the google app
engine as it's unavailable for Great Fire Wall.
Everytime I have to use proxy, but other normals who don't have proxy or vpn
can't access what I host. It's so sad...

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] It's so sad.

2011-03-21 Thread yinhm
On Sun, Mar 20, 2011 at 9:13 PM, 李晓东 lxd.d...@gmail.com wrote:
 I'm now in China mainland. It's so said that I can't use the google app
 engine as it's unavailable for Great Fire Wall.
 Everytime I have to use proxy, but other normals who don't have proxy or vpn
 can't access what I host. It's so sad...


Use a nginx frontend proxy to your app. That's the only option as of now.

  location / {
proxy_pass http://app-id.appspot.com/;
proxy_redirect off;

proxy_set_header   X-Real-IP$remote_addr;
proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
proxy_set_header   X-Forwarded-Proto http;

client_max_body_size   10m;
client_body_buffer_size128k;

proxy_connect_timeout  90;
proxy_send_timeout 90;
proxy_read_timeout 90;
  }
}




-- 
Regards,
twitter:@yinhm
github: https://github.com/yinhm

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.