Optional[String] $pg_hostname = "/run/postgresql",
Optional[String] $pg_port = "5432",
Optional[String] $redis_host = "/run/redis/redis.sock",
+ Optional[String] $smtp_login = undef,
+ Optional[String] $smtp_password = undef,
+ Optional[String] $smtp_host = undef,
+ Optional[String] $mail_from = undef,
Optional[String] $web_host = undef,
Optional[String] $web_port = "",
Optional[Boolean] $web_ssl = true,
[app]
public_dir="../web/build/static"
+
+<%- if !@smtp_host.nil? && @smtp_host != "" -%>
+[mail]
+login="<%= @smtp_login %>"
+address_from="<%= @mail_from %>"
+password="<%= @smtp_password %>"
+smtp_address="<%= @smtp_host %>"
+<%- end -%>