Advertisement
Guest User

Untitled

a guest
May 24th, 2016
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.52 KB | None | 0 0
  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 "yes" to enable.
  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.  
  37. ## Alternative 2, Configuration with VCL
  38. #
  39. # Listen on port 6081, administration on localhost:6082, and forward to
  40. # one content server selected by the vcl file, based on the request. Use a 1GB
  41. # fixed-size cache file.
  42. #
  43. #DAEMON_OPTS="-a :6081 \
  44. # -T localhost:6082 \
  45. # -f /etc/varnish/default.vcl \
  46. # -S /etc/varnish/secret \
  47. # -s file,/var/lib/varnish/$INSTANCE/varnish_storage.bin,1G"
  48.  
  49. DAEMON_OPTS="-a :80 \
  50. -T localhost:6082 \
  51. -f /etc/varnish/default.vcl \
  52. -S /etc/varnish/secret \
  53. -s malloc,64m"
  54.  
  55. ## Alternative 3, Advanced configuration
  56. #
  57. # See varnishd(1) for more information.
  58. #
  59. # # Main configuration file. You probably want to change it :)
  60. # VARNISH_VCL_CONF=/etc/varnish/default.vcl
  61. #
  62. # # Default address and port to bind to
  63. # # Blank address means all IPv4 and IPv6 interfaces, otherwise specify
  64. # # a host name, an IPv4 dotted quad, or an IPv6 address in brackets.
  65. # VARNISH_LISTEN_ADDRESS=
  66. # VARNISH_LISTEN_PORT=6081
  67. #
  68. # # Telnet admin interface listen address and port
  69. # VARNISH_ADMIN_LISTEN_ADDRESS=127.0.0.1
  70. # VARNISH_ADMIN_LISTEN_PORT=6082
  71. #
  72. # # The minimum number of worker threads to start
  73. # VARNISH_MIN_THREADS=1
  74. #
  75. # # The Maximum number of worker threads to start
  76. # VARNISH_MAX_THREADS=1000
  77. #
  78. # # Idle timeout for worker threads
  79. # VARNISH_THREAD_TIMEOUT=120
  80. #
  81. # # Cache file location
  82. # VARNISH_STORAGE_FILE=/var/lib/varnish/$INSTANCE/varnish_storage.bin
  83. #
  84. # # Cache file size: in bytes, optionally using k / M / G / T suffix,
  85. # # or in percentage of available disk space using the % suffix.
  86. # VARNISH_STORAGE_SIZE=1G
  87. #
  88. # # File containing administration secret
  89. # VARNISH_SECRET_FILE=/etc/varnish/secret
  90. #
  91. # # Backend storage specification
  92. # VARNISH_STORAGE="file,${VARNISH_STORAGE_FILE},${VARNISH_STORAGE_SIZE}"
  93. #
  94. # # Default TTL used when the backend does not specify one
  95. # VARNISH_TTL=120
  96. #
  97. # # DAEMON_OPTS is used by the init script. If you add or remove options, make
  98. # # sure you update this section, too.
  99. # DAEMON_OPTS="-a ${VARNISH_LISTEN_ADDRESS}:${VARNISH_LISTEN_PORT} \
  100. # -f ${VARNISH_VCL_CONF} \
  101. # -T ${VARNISH_ADMIN_LISTEN_ADDRESS}:${VARNISH_ADMIN_LISTEN_PORT} \
  102. # -t ${VARNISH_TTL} \
  103. # -w ${VARNISH_MIN_THREADS},${VARNISH_MAX_THREADS},${VARNISH_THREAD_TIMEOUT} \
  104. # -S ${VARNISH_SECRET_FILE} \
  105. # -s ${VARNISH_STORAGE}"
  106. #
  107.  
  108.  
  109. ## Alternative 4, Do It Yourself
  110. #
  111. # DAEMON_OPTS=""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement