keter.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # After you've edited this file, remove the following line to allow
  2. # `yesod keter` to build your bundle.
  3. user-edited: false
  4. # A Keter app is composed of 1 or more stanzas. The main stanza will define our
  5. # web application. See the Keter documentation for more information on
  6. # available stanzas.
  7. stanzas:
  8. # Your Yesod application.
  9. - type: webapp
  10. # Name of your executable. You are unlikely to need to change this.
  11. # Note that all file paths are relative to the keter.yml file.
  12. #
  13. # The path given is for Stack projects. If you're still using cabal, change
  14. # to
  15. # exec: ../dist/build/MyBlog/MyBlog
  16. exec: ../dist/bin/MyBlog
  17. # Command line options passed to your application.
  18. args: []
  19. hosts:
  20. # You can specify one or more hostnames for your application to respond
  21. # to. The primary hostname will be used for generating your application
  22. # root.
  23. - www.MyBlog.com
  24. # Enable to force Keter to redirect to https
  25. # Can be added to any stanza
  26. requires-secure: false
  27. # Static files.
  28. - type: static-files
  29. hosts:
  30. - static.MyBlog.com
  31. root: ../static
  32. # Uncomment to turn on directory listings.
  33. # directory-listing: true
  34. # Redirect plain domain name to www.
  35. - type: redirect
  36. hosts:
  37. - MyBlog.com
  38. actions:
  39. - host: www.MyBlog.com
  40. # secure: false
  41. # port: 80
  42. # Uncomment to switch to a non-permanent redirect.
  43. # status: 303
  44. # Use the following to automatically copy your bundle upon creation via `yesod
  45. # keter`. Uses `scp` internally, so you can set it to a remote destination
  46. # copy-to: user@host:/opt/keter/incoming/
  47. # You can pass arguments to `scp` used above. This example limits bandwidth to
  48. # 1024 Kbit/s and uses port 2222 instead of the default 22
  49. # copy-to-args:
  50. # - "-l 1024"
  51. # - "-P 2222"
  52. # If you would like to have Keter automatically create a PostgreSQL database
  53. # and set appropriate environment variables for it to be discovered, uncomment
  54. # the following line.
  55. # plugins:
  56. # postgres: true