-rwxr-xr-x | scripts/proxy/main.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/proxy/main.py b/scripts/proxy/main.py index 8ce4989..58a4d7f 100755 --- a/scripts/proxy/main.py +++ b/scripts/proxy/main.py | |||
@@ -49,4 +49,8 @@ class ClipperzTestSite(server.Site): | |||
49 | absoluteFilePath = os.path.join(projectBaseDir(), 'frontend', version, 'properties', pathParts[2]) | 49 | absoluteFilePath = os.path.join(projectBaseDir(), 'frontend', version, 'properties', pathParts[2]) |
50 | result = static.File(absoluteFilePath, contentType) | 50 | result = static.File(absoluteFilePath, contentType) |
51 | elif pathParts[2].endswith('.appcache'): | ||
52 | contentType = 'text/cache-manifest' | ||
53 | absoluteFilePath = os.path.join(projectBaseDir(), 'frontend', version, 'properties', pathParts[2]) | ||
54 | result = static.File(absoluteFilePath, contentType) | ||
51 | else: | 55 | else: |
52 | #http://homer.local:8888/beta/css/clipperz/images/loginInfoBackground.png | 56 | #http://homer.local:8888/beta/css/clipperz/images/loginInfoBackground.png |
@@ -94,4 +98,5 @@ class ClipperzTestSite(server.Site): | |||
94 | def main (): | 98 | def main (): |
95 | site = ClipperzTestSite(proxy.ReverseProxyResource('localhost', 8080, '/java-backend')) | 99 | site = ClipperzTestSite(proxy.ReverseProxyResource('localhost', 8080, '/java-backend')) |
100 | #site = ClipperzTestSite(proxy.ReverseProxyResource('www.clipperz.com', 443, '/')) | ||
96 | reactor.listenTCP(8888, site) | 101 | reactor.listenTCP(8888, site) |
97 | reactor.run() | 102 | reactor.run() |