Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. # Configuration file for varnish
  2. #
  3. # /etc/init.d/varnish expects the variables $DAEMON_OPTS, $NFILES and $MEMLOCK
  4. # to be set from this shell script fragment.
  5. #
  6.  
  7. # Should we start varnishd at boot? Set to "no" to disable.
  8. START=yes
  9.  
  10. # Maximum number of open files (for ulimit -n)
  11. NFILES=131072
  12.  
  13. # Maximum locked memory size (for ulimit -l)
  14. # Used for locking the shared memory log in memory. If you increase log size,
  15. # you need to increase this number as well
  16. MEMLOCK=82000
  17.  
  18. # Default varnish instance name is the local nodename. Can be overridden with
  19. # the -n switch, to have more instances on a single server.
  20. # INSTANCE=$(uname -n)
  21.  
  22. # This file contains 4 alternatives, please use only one.
  23.  
  24. ## Alternative 1, Minimal configuration, no VCL
  25. #
  26. # Listen on port 6081, administration on localhost:6082, and forward to
  27. # content server on localhost:8080. Use a 1GB fixed-size cache file.
  28. #
  29. # DAEMON_OPTS="-a :6081 \
  30. # -T localhost:6082 \
  31. # -b localhost:8080 \
  32. # -u varnish -g varnish \
  33. # -S /etc/varnish/secret \
  34. # -s file,/var/lib/varnish/$INSTANCE/varnish_storage.bin,1G"
  35.  
  36. ## Alternative 2, Configuration with VCL
  37. #
  38. # Listen on port 6081, administration on localhost:6082, and forward to
  39. # one content server selected by the vcl file, based on the request. Use a 1GB
  40. # fixed-size cache file.
  41. #
  42. DAEMON_OPTS="-a :80 \
  43. -T localhost:6082 \
  44. -f /etc/varnish/default.vcl \
  45. -S /etc/varnish/secret \
  46. -t 120 \
  47. -s malloc,256m"
  48.  
  49. ## Alternative 3, Advanced configuration
  50. #
  51. # See varnishd(1) for more information.
  52. #
  53. # # Main configuration file. You probably want to change it :)
  54. # VARNISH_VCL_CONF=/etc/varnish/default.vcl
  55. #
  56. # # Default address and port to bind to
  57. # # Blank address means all IPv4 and IPv6 interfaces, otherwise specify
  58. # # a host name, an IPv4 dotted quad, or an IPv6 address in brackets.
  59. # VARNISH_LISTEN_ADDRESS=
  60. # VARNISH_LISTEN_PORT=6081
  61. #
  62. # # Telnet admin interface listen address and port
  63. # VARNISH_ADMIN_LISTEN_ADDRESS=127.0.0.1
  64. # VARNISH_ADMIN_LISTEN_PORT=6082
  65. #
  66. # # The minimum number of worker threads to start
  67. # VARNISH_MIN_THREADS=1
  68. #
  69. # # The Maximum number of worker threads to start
  70. # VARNISH_MAX_THREADS=1000
  71. #
  72. # # Idle timeout for worker threads
  73. # VARNISH_THREAD_TIMEOUT=120
  74. #
  75. # # Cache file location
  76. # VARNISH_STORAGE_FILE=/var/lib/varnish/$INSTANCE/varnish_storage.bin
  77. #
  78. # # Cache file size: in bytes, optionally using k / M / G / T suffix,
  79. # # or in percentage of available disk space using the % suffix.
  80. # VARNISH_STORAGE_SIZE=1G
  81. #
  82. # # File containing administration secret
  83. # VARNISH_SECRET_FILE=/etc/varnish/secret
  84. #
  85. # # Backend storage specification
  86. # VARNISH_STORAGE="file,${VARNISH_STORAGE_FILE},${VARNISH_STORAGE_SIZE}"
  87. #
  88. # # Default TTL used when the backend does not specify one
  89. # VARNISH_TTL=120
  90. #
  91. # # DAEMON_OPTS is used by the init script. If you add or remove options, make
  92. # # sure you update this section, too.
  93. # DAEMON_OPTS="-a ${VARNISH_LISTEN_ADDRESS}:${VARNISH_LISTEN_PORT} \
  94. # -f ${VARNISH_VCL_CONF} \
  95. # -T ${VARNISH_ADMIN_LISTEN_ADDRESS}:${VARNISH_ADMIN_LISTEN_PORT} \
  96. # -t ${VARNISH_TTL} \
  97. # -w ${VARNISH_MIN_THREADS},${VARNISH_MAX_THREADS},${VARNISH_THREAD_TIMEOUT} \
  98. # -S ${VARNISH_SECRET_FILE} \
  99. # -s ${VARNISH_STORAGE}"
  100. #
  101.  
  102. ## Alternative 4, Do It Yourself
  103. #
  104. # DAEMON_OPTS=""