/
workhorse-config.toml.erb
43 lines (38 loc) · 1.18 KB
/
workhorse-config.toml.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<%- if @alt_document_root %>
alt_document_root = "<%= @alt_document_root %>"
<%- end %>
<%- if @shutdown_timeout %>
shutdown_timeout = "<%= @shutdown_timeout %>"
<%- end %>
<%- if @trusted_cidrs_for_propagation %>
trusted_cidrs_for_propagation = <%= @trusted_cidrs_for_propagation.to_json %>
<%- end %>
<%- if @trusted_cidrs_for_x_forwarded_for %>
trusted_cidrs_for_x_forwarded_for = <%= @trusted_cidrs_for_x_forwarded_for.to_json %>
<%- end %>
<%- if @extra_config_command %>
config_command = "<%= @extra_config_command %>"
<%- end %>
<% if @workhorse_keywatcher %>
[redis]
Password = "<%= @password %>"
<% if @sentinels.empty? %>
URL = "<%= @redis_url %>"
<% else %>
Sentinel = <%= @sentinels.to_json %>
SentinelMaster = "<%= @sentinel_master %>"
SentinelPassword = "<%= @sentinel_password %>"
<% end %>
<% end %>
<%- if @object_store_toml %>
<%= @object_store_toml %>
<%- end %>
[image_resizer]
max_scaler_procs = <%= @image_scaler_max_procs %>
max_filesize = <%= @image_scaler_max_filesize %>
<%- unless @metadata_zip_reader_limit_bytes.nil? %>
[metadata]
<%- if @metadata_zip_reader_limit_bytes %>
zip_reader_limit_bytes = <%= @metadata_zip_reader_limit_bytes %>
<%- end %>
<%- end %>