Guest User

Untitled

a guest
Feb 19th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.83 KB | None | 0 0
  1. application: you-app-name-here
  2. version: 1
  3. runtime: python
  4. api_version: 1
  5.  
  6. default_expiration: "30d"
  7.  
  8. handlers:
  9. - url: /(.*\.(appcache|manifest))
  10. mime_type: text/cache-manifest
  11. static_files: static/\1
  12. upload: static/(.*\.(appcache|manifest))
  13. expiration: "0m"
  14.  
  15. - url: /(.*\.atom)
  16. mime_type: application/atom+xml
  17. static_files: static/\1
  18. upload: static/(.*\.atom)
  19. expiration: "1h"
  20.  
  21. - url: /(.*\.crx)
  22. mime_type: application/x-chrome-extension
  23. static_files: static/\1
  24. upload: static/(.*\.crx)
  25.  
  26. - url: /(.*\.css)
  27. mime_type: text/css
  28. static_files: static/\1
  29. upload: static/(.*\.css)
  30.  
  31. - url: /(.*\.eot)
  32. mime_type: application/vnd.ms-fontobject
  33. static_files: static/\1
  34. upload: static/(.*\.eot)
  35.  
  36. - url: /(.*\.htc)
  37. mime_type: text/x-component
  38. static_files: static/\1
  39. upload: static/(.*\.htc)
  40.  
  41. - url: /(.*\.html)
  42. mime_type: text/html
  43. static_files: static/\1
  44. upload: static/(.*\.html)
  45. expiration: "1h"
  46.  
  47. - url: /(.*\.ico)
  48. mime_type: image/x-icon
  49. static_files: static/\1
  50. upload: static/(.*\.ico)
  51. expiration: "7d"
  52.  
  53. - url: /(.*\.js)
  54. mime_type: text/javascript
  55. static_files: static/\1
  56. upload: static/(.*\.js)
  57.  
  58. - url: /(.*\.json)
  59. mime_type: application/json
  60. static_files: static/\1
  61. upload: static/(.*\.json)
  62. expiration: "1h"
  63.  
  64. - url: /(.*\.m4v)
  65. mime_type: video/m4v
  66. static_files: static/\1
  67. upload: static/(.*\.m4v)
  68.  
  69. - url: /(.*\.mp4)
  70. mime_type: video/mp4
  71. static_files: static/\1
  72. upload: static/(.*\.mp4)
  73.  
  74. - url: /(.*\.(ogg|oga))
  75. mime_type: audio/ogg
  76. static_files: static/\1
  77. upload: static/(.*\.(ogg|oga))
  78.  
  79. - url: /(.*\.ogv)
  80. mime_type: video/ogg
  81. static_files: static/\1
  82. upload: static/(.*\.ogv)
  83.  
  84. - url: /(.*\.otf)
  85. mime_type: font/opentype
  86. static_files: static/\1
  87. upload: static/(.*\.otf)
  88.  
  89. - url: /(.*\.rss)
  90. mime_type: application/rss+xml
  91. static_files: static/\1
  92. upload: static/(.*\.rss)
  93. expiration: "1h"
  94.  
  95. - url: /(.*\.safariextz)
  96. mime_type: application/octet-stream
  97. static_files: static/\1
  98. upload: static/(.*\.safariextz)
  99.  
  100. - url: /(.*\.(svg|svgz))
  101. mime_type: images/svg+xml
  102. static_files: static/\1
  103. upload: static/(.*\.(svg|svgz))
  104.  
  105. - url: /(.*\.swf)
  106. mime_type: application/x-shockwave-flash
  107. static_files: static/\1
  108. upload: static/(.*\.swf)
  109.  
  110. - url: /(.*\.ttf)
  111. mime_type: font/truetype
  112. static_files: static/\1
  113. upload: static/(.*\.ttf)
  114.  
  115. - url: /(.*\.txt)
  116. mime_type: text/plain
  117. static_files: static/\1
  118. upload: static/(.*\.txt)
  119.  
  120. - url: /(.*\.unity3d)
  121. mime_type: application/vnd.unity
  122. static_files: static/\1
  123. upload: static/(.*\.unity3d)
  124.  
  125. - url: /(.*\.webm)
  126. mime_type: video/webm
  127. static_files: static/\1
  128. upload: static/(.*\.webm)
  129.  
  130. - url: /(.*\.webp)
  131. mime_type: image/webp
  132. static_files: static/\1
  133. upload: static/(.*\.webp)
  134.  
  135. - url: /(.*\.woff)
  136. mime_type: application/x-font-woff
  137. static_files: static/\1
  138. upload: static/(.*\.woff)
  139.  
  140. - url: /(.*\.xml)
  141. mime_type: application/xml
  142. static_files: static/\1
  143. upload: static/(.*\.xml)
  144. expiration: "1h"
  145.  
  146. - url: /(.*\.xpi)
  147. mime_type: application/x-xpinstall
  148. static_files: static/\1
  149. upload: static/(.*\.xpi)
  150.  
  151. # image files
  152. - url: /(.*\.(bmp|gif|ico|jpeg|jpg|png))
  153. static_files: static/\1
  154. upload: static/(.*\.(bmp|gif|ico|jpeg|jpg|png))
  155.  
  156. # audio files
  157. - url: /(.*\.(mid|midi|mp3|wav))
  158. static_files: static/\1
  159. upload: static/(.*\.(mid|midi|mp3|wav))
  160.  
  161. # windows files
  162. - url: /(.*\.(doc|exe|ppt|rtf|xls))
  163. static_files: static/\1
  164. upload: static/(.*\.(doc|exe|ppt|rtf|xls))
  165.  
  166. # compressed files
  167. - url: /(.*\.(bz2|gz|rar|tar|tgz|zip))
  168. static_files: static/\1
  169. upload: static/(.*\.(bz2|gz|rar|tar|tgz|zip))
  170.  
  171. # index files
  172. - url: /(.+)/
  173. static_files: static/\1/index.html
  174. upload: static/(.+)/index.html
  175. expiration: "15m"
  176.  
  177. - url: /(.+)
  178. static_files: static/\1/index.html
  179. upload: static/(.+)/index.html
  180. expiration: "15m"
  181.  
  182. # site root
  183. - url: /
  184. static_files: static/index.html
  185. upload: static/index.html
  186. expiration: "15m"
Add Comment
Please, Sign In to add comment