Last active
August 29, 2015 14:23
-
-
Save pradeepkumargali/991f02d07c8177028203 to your computer and use it in GitHub Desktop.
Hosting a static website on Google AppEngine - Java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0"> | |
<application>sree-kumar</application> | |
<version>2</version> | |
<static-files> | |
<include path="/static/**" expiration="30d 5h" /> | |
</static-files> | |
<public-root>/static</public-root> | |
<!-- | |
Allows App Engine to send multiple requests to one instance in parallel: | |
--> | |
<threadsafe>true</threadsafe> | |
<!-- Configure java.util.logging --> | |
<system-properties> | |
<property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/> | |
</system-properties> | |
<!-- | |
HTTP Sessions are disabled by default. To enable HTTP sessions specify: | |
<sessions-enabled>true</sessions-enabled> | |
It's possible to reduce request latency by configuring your application to | |
asynchronously write HTTP session data to the datastore: | |
<async-session-persistence enabled="true" /> | |
With this feature enabled, there is a very small chance your app will see | |
stale session data. For details, see | |
http://code.google.com/appengine/docs/java/config/appconfig.html#Enabling_Sessions | |
--> | |
</appengine-web-app> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment