felixlu / apjp

Automatically exported from code.google.com/p/apjp
0 stars 0 forks source link

[Tutorial] APPP-0.1.3 config (GAE) #165

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
1. Server deploy wiki:
http://code.google.com/p/apjp/wiki/InstallGuideOnGAE
2. Client download:
http://fartersoft.com/appp/
3. APPP.ini config:
(1)APPP_KEY=(match your server key)
(2)add this section to the end
[gae-https]
HTTP_URL=https://(google_ip_in_china)/HTTP
HTTP_URL_VALIDATE_CERT=yes
HTTPS_URL=https://(google_ip_in_china)/HTTPS
HTTPS_URL_VALIDATE_CERT=yes
CUSTOM_HEADER1=Host:(your_appid).appspot.com

ps.
1. @Jeroen's APPP-0.2.0 can not to watch youtube, but @Farter's APPP-0.1.3 can.
2. @Farter said 'additional encryption and decryption introduced by https will 
cause extra CPU, memory and network usage, possibly resulting in slower 
performance'. All I want to say is he DO NOT know Chinese netword environment. 
In China, network connection performance does NOT depend on computers but GFW 
(Great F*cking Wall).

Original issue reported on code.google.com by westmin...@gmail.com on 17 Mar 2013 at 7:03

Attachments:

GoogleCodeExporter commented 8 years ago
miss the run command:
cd /path/to/appp-0.1.3
python appp.py gae-https

Original comment by westmin...@gmail.com on 17 Mar 2013 at 7:07

GoogleCodeExporter commented 8 years ago
According to @Farter's word "the appropriate solution if a self-signed 
certificate need to be used is to add the self-generated root ca to the 
cacert.pem file",to solve invalid certificate problem follow this tow step:

1. open APPP.pem and cacert.pem with notepad (or other text editor), then copy 
the whole content in APPP.pem to the end of cacert.pem. better to find and 
delete this section:(start in line 2695)

CNNIC ROOT
==========
-----BEGIN CERTIFICATE-----
MIIDV****
mxE=
-----END CERTIFICATE-----

2. import APPP.pem to browsers see:
http://code.google.com/p/apjp/wiki/InstallGuideOnGAE

Original comment by westmin...@gmail.com on 17 Mar 2013 at 8:07

GoogleCodeExporter commented 8 years ago
Thanks! :)

Original comment by jeroen.v...@gmail.com on 18 Mar 2013 at 7:22

GoogleCodeExporter commented 8 years ago
what does "[EXAMPLE-TRANSPARENT-HTTPS]" mean?
I cannot make it work when I set  TRANSPARENT_HTTPS=yes

Original comment by fifa...@gmail.com on 18 Mar 2013 at 2:31

GoogleCodeExporter commented 8 years ago
http://fartersoft.com/appp/
section: Transparent Proxy
I don't know what is transparent proxy. I think it's something like VPN 
than can handle all http request from applications in case of setting up 
proper system router rules. According to @Farter's words, APPP can ONLY 
handle https request if transparent_https=yes. I don't need it and just 
need to connect to GAE, so setting up [gae-https] is enough.

Original comment by westmin...@gmail.com on 18 Mar 2013 at 3:38