resin.properties 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. # resin.properties - configuration variable values
  2. #
  3. # See resin.xml, cluster-default.xml, and health.xml for full configuration.
  4. # Any variable defined by ${...} can be set as a property in this file.
  5. #
  6. # Individual server overrides can be specified by prepending the server.id.
  7. # For example, increasing the log level for an individual server:
  8. #
  9. # log_level : info
  10. # app-0.log_level : finest
  11. #
  12. # Like Resin XML configuration, modification of this file will trigger
  13. # a restart.
  14. #
  15. # General log level (modify resin.xml for more granular log level adjustments)
  16. # log_level : finer
  17. # Enable verbose browser error reporting
  18. dev_mode : true
  19. # How often Resin should check for updated files.
  20. # dependency_check_interval : 5m
  21. # Enable /resin-doc Resin documentation
  22. resin_doc : false
  23. resin_doc_host :
  24. # List Triad server ip-addresses:hmux-port for each tier, space separated
  25. # App tier Triad servers must be listed to enable web-tier to
  26. # app-tier load-balancing
  27. # web-tier Triad servers: web-0 web-1 web-2
  28. # web_servers : 127.0.0.1:6810
  29. # app-tier Triad servers: app-0 app-1 app-2
  30. app_servers : 127.0.0.1:6800
  31. # Configures Resin for a memcached server tier
  32. # memcached-tier Triad servers: memcached-0 memcached-1 memcached-2
  33. # memcached_servers : 127.0.0.1:6820
  34. # memcached_port : 11211
  35. # proxycache tier: proxycache-0 proxycache-1 proxycache-2
  36. # proxycache_servers : 127.0.0.1:6830
  37. # backend_servers : 127.0.0.1:80
  38. # Allow elastic nodes to join the cluster (enable for cloud mode)
  39. # elastic_cloud_enable : true
  40. # The cluster that elastic nodes should join - each will contact a Triad server
  41. # Use a separate resin.properties file for each cluster
  42. home_cluster : app
  43. # Used for an elastic server to join the cluster in home_cluster
  44. # elastic_server : true
  45. # Create a distinct webapps/ directory for each server, for vertical scaling
  46. # elastic_webapp : true
  47. # Used for cloud servers with dynamic IP addresses where the DNS name for the
  48. # server is assigned after the server starts. Resin will retry the start.
  49. # elastic_dns : true
  50. # specifies the --server in the config file
  51. # home_server : app-0
  52. # Set HTTP and HTTPS bind address
  53. # http_address : *
  54. # Set HTTP and HTTPS ports.
  55. # Use overrides for individual server control, for example: app-0.http : 8081
  56. app.http : 8080
  57. # app.https : 8443
  58. web.http : 8080
  59. # web.https : 8443
  60. # memcached.http : 8080
  61. # memcached.https : 8443
  62. # proxycache.http : 8080
  63. # proxycache.https : 8443
  64. # For security, Resin can switch to a non-root user after binding to port 80
  65. setuid_user : book
  66. setuid_group : book
  67. # Arg passed directly to the JVM
  68. #jvm_args : -Xmx1536m -Xms1536m -Xmn512m -Xss1m -XX:PermSize=128m -XX:MaxPermSize=512m -Xdebug -Dcom.sun.management.jmxremote
  69. jvm_args : -Xmx2048m -Xms2048m -Xss1m -XX:PermSize=256m -XX:MaxPermSize=512m -Xdebug -Dcom.sun.management.jmxremote -verbose:gc -Xloggc:log/gc.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+UseParallelOldGC
  70. jvm_mode : -server
  71. # Local URLs for the watchdog to check to ensure the server is up,
  72. # space separated
  73. # http_ping_urls : http://127.0.0.1/test.jsp
  74. # Throttle the number of active threads for a port
  75. port_thread_max : 256
  76. accept_thread_max : 32
  77. accept_thread_min : 4
  78. # keepalive_max : 512
  79. # Enable JNI TCP speed optimizations
  80. tcp_cork : true
  81. sendfile : true
  82. keepalive_select_enable : true
  83. # OpenSSL certificate configuration
  84. # Keys are typically stored in the resin configuration directory.
  85. # openssl_file : keys/test.crt
  86. # openssl_key : keys/test.key
  87. # openssl_password : changeme
  88. # JSSE certificate configuration
  89. # Keys are typically stored in the resin configuration directory.
  90. # jsse_keystore_type : jks
  91. # jsse_keystore_file : /etc/resin/keys/server.keystore
  92. # jsse_keystore_password : changeme
  93. # In absence of a signed certificate, Resin will fallback to using a
  94. # self-signed development certificate if HTTPS is enabled
  95. # Enable the proxy-cache - for caching static content in memory
  96. proxy_cache_enable : true
  97. # Sets the proxy cache memory size
  98. # proxy_cache_size : 256m
  99. # Enable clustered persistent sessions (for failover)
  100. session_store : true
  101. # disable the quercus *.php mapping when using Apache for PHP
  102. # quercus_disable : true
  103. # Web-apps named with numeric suffixes, e.g. foo-10.0.war and can be browsed
  104. # as /foo. When a new version of the web-app is deployed, Resin continues
  105. # to route active session requests to the previous web-app version while
  106. # new sessions go to the new version, so users will not be aware of the
  107. # application upgrade.
  108. # webapp_multiversion_routing : true
  109. # Set the email address to receive weekly and restart PDF reports
  110. # email : admin@example.com
  111. # Set a global password to prevent foreign Resin instances from connecting.
  112. # Must be identical between web, app, and cache clusters.
  113. # cluster_system_key : changeme
  114. # Enable remote admin (for remote CLI and for EC2 ext: triad discovery)
  115. # remote_admin_enable : true
  116. # Enable /resin-admin web administration console
  117. web_admin_enable : false
  118. web_admin_host :
  119. # Permit access to /resin-admin from non-local network ip-addresses
  120. # web_admin_external : true
  121. # Require HTTPS to access /resin-admin
  122. # web_admin_ssl : true
  123. # Enable Resin REST Admin
  124. # rest_admin_enable : true
  125. # Require SSL for REST Admin
  126. # rest_admin_ssl : true
  127. # Access to /resin-admin and remote CLI is password restricted.
  128. # Use "resinctl generate-password" and copy/paste here to set the admin
  129. # admin_user : admin
  130. # admin_password : {SSHA}xxxxxxxx
  131. # Enable reading EC2 user data as resin properties
  132. # properties_import_url : http://169.254.169.254/latest/user-data