Skip to content

Commit

Permalink
Merge pull request #1 from decix-web-dev/feature/storage-size
Browse files Browse the repository at this point in the history
FEATURE control storage size
  • Loading branch information
daniellienert authored Oct 25, 2023
2 parents d6edfe6 + cb7f7b1 commit 6bea34e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions defaults/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ varnish:
#logformat: '%h "%{X-Forwarded-For}i" %u %t "%r" %s %b "%{Referer}i" "%{User-agent}i" "%{Varnish:time_firstbyte}x" %{Varnish:handling}x "%{Content-Type}o" "%{Cookie}i"'
logformat: >
{"time": %{"%FT%T%z"}t, "remote_addr": "%h","remote_user": "%u","x_forwarded_for": "%{X-Forwarded-For}i","x_real_ip": "%{X-Real-IP}i","x_request_id": "%{X-Request-ID}i","hit_miss": "%{Varnish:hitmiss}x","body_bytes_sent": "%b","request_time": "%{Varnish:time_firstbyte}x","status": "%s","content_type": "%{Content-Type}o","request": "%r","host": "%{host}i","request_method": "%m","time_first_byte": "%{Varnish:time_firstbyte}x","handling": "%{Varnish:handling}x","http_referrer": "%{Referrer}i","http_user_agent": "%{User-agent}i"}
storage: malloc,512M
4 changes: 4 additions & 0 deletions tasks/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
regexp: "^varnishd_listen="
line: >
varnishd_listen={{ varnish.bind_addr|trim|quote }}
- rc_conf: /usr/local/etc/rc.conf.d/varnishd
regexp: "^varnishd_storage="
line: >
varnishd_storage="{{ varnish.storage|trim|quote }}"
- rc_conf: /usr/local/etc/rc.conf.d/varnishncsa
regexp: "^varnishncsa_logformat="
line: >
Expand Down

0 comments on commit 6bea34e

Please sign in to comment.