-
|
-
- GoAgent %(version)s on GAE/已经在工作了
- |
-
|
-
-
- GoAgent是一个开源的HTTP Proxy软件,使用Python编写,运行于Google App Engine平台上.
- |
-
|
-
-
- 更多相关介绍,请参考GoAgent项目主页.
- |
-
|
-
-
-
- |
-
|
-
-
-
-''' % dict(version=__version__))
-
-def main():
- #application = webapp.WSGIApplication([('/_ah/xmpp/message/chat/', MainHandler),('/fetch.py', MainHandler)],debug=True)
- application = webapp.WSGIApplication([('/fetch.py', MainHandler)], debug=True)
- run_wsgi_app(application)
-
-if __name__ == '__main__':
- main()
\ No newline at end of file
diff --git a/server/gae/app.yaml b/server/gae/app.yaml
new file mode 100644
index 00000000..d31c6450
--- /dev/null
+++ b/server/gae/app.yaml
@@ -0,0 +1,22 @@
+application: goagent
+version: 1
+runtime: python27
+api_version: 1
+threadsafe: true
+
+libraries:
+- name: pycrypto
+ version: "2.3"
+
+handlers:
+- url: /fetch\.py
+ script: gae.LegacyHandler.application
+ secure: optional
+
+- url: /2
+ script: gae.application
+ secure: optional
+
+- url: /robots.txt
+ static_files: robots.txt
+ upload: robots.txt
diff --git a/server/gae/gae.py b/server/gae/gae.py
new file mode 100644
index 00000000..bbe3d1ad
--- /dev/null
+++ b/server/gae/gae.py
@@ -0,0 +1,360 @@
+#!/usr/bin/env python
+# coding=utf-8
+# Contributor:
+# Phus Lu