Guest User

Untitled

a guest
Oct 18th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.63 KB | None | 0 0
  1. <?php
  2.  
  3. $parameters = array(
  4.  
  5. {{with $domain := env "WDOMAIN"}}
  6. {{with $client_id := env "WCLIENT_ID"}}
  7. {{$db_host := printf "wpeople/domains/%s/clients/%s/conf/db/host" $domain $client_id}}
  8. {{$db_port := printf "wpeople/domains/%s/clients/%s/conf/db/port" $domain $client_id}}
  9. {{$db_name := printf "wpeople/domains/%s/clients/%s/conf/db/name" $domain $client_id}}
  10. {{$db_user := printf "wpeople/domains/%s/clients/%s/conf/db/username" $domain $client_id}}
  11.  
  12. {{$site_url := printf "wpeople/domains/%s/clients/%s/conf/site/url" $domain $client_id}}
  13. {{$cache_path := printf "wpeople/domains/%s/clients/%s/conf/site/cache_dir" $domain $client_id}}
  14. {{$log_path := printf "wpeople/domains/%s/clients/%s/conf/site/log_dir" $domain $client_id}}
  15. {{$locale := printf "wpeople/domains/%s/clients/%s/conf/site/locale" $domain $client_id}}
  16.  
  17. {{$mailer_user := printf "wpeople/domains/%s/clients/%s/conf/mailer/username" $domain $client_id}}
  18.  
  19. {{$mailer_password := printf "wpeople/domains/%s/clients/%s/conf/mailer/password" $domain $client_id}}
  20.  
  21. {{$mailer_from_name := printf "wpeople/domains/%s/clients/%s/conf/mailer/from_name" $domain $client_id}}
  22. {{$mailer_from_email := printf "wpeople/domains/%s/clients/%s/conf/mailer/from_email" $domain $client_id}}
  23. {{$mailer_transport := printf "wpeople/domains/%s/clients/%s/conf/mailer/transport" $domain $client_id}}
  24. {{$mailer_host := printf "wpeople/domains/%s/clients/%s/conf/mailer/host" $domain $client_id}}
  25. {{$mailer_port := printf "wpeople/domains/%s/clients/%s/conf/mailer/port" $domain $client_id}}
  26. {{$mailer_encryption := printf "wpeople/domains/%s/clients/%s/conf/mailer/encryption" $domain $client_id}}
  27. {{$mailer_auth_mode := printf "wpeople/domains/%s/clients/%s/conf/mailer/authmode" $domain $client_id}}
  28.  
  29. 'db_host' => '{{key_or_default $db_host "wsuitedb.cluster-c3uahxgwxkrq.us-east-1.rds.amazonaws.com"}}',
  30. 'db_port' => '{{key_or_default $db_port "3306"}}',
  31. 'db_name' => '{{key_or_default $db_name "wpeople_52137" }}',
  32. 'db_user' => '{{key_or_default $db_user "wppluser_52137"}}',
  33.  
  34.  
  35. {{ $secretKey := (printf "secret/services/wpeople/domains/%s/clients/%s/conf/db/password" $domain $client_id ) | regexReplaceAll "^.+/(.+)" "$1"}}
  36. {{ $secretPath := (printf "secret/services/wpeople/domains/%s/clients/%s/conf/db/password" $domain $client_id ) | regexReplaceAll "^(.+)/.+" "$1"}}
  37.  
  38. {{range secrets $secretPath}}
  39. {{- if eq . $secretKey -}}
  40. 'db_password' => '{{with secret (printf "secret/services/wpeople/domains/%s/clients/%s/conf/db/password" $domain $client_id )}}{{.Data.value}}{{end}}',
  41. {{- end -}}
  42. {{end}}
  43.  
  44. {{ $secretKey := (printf "secret/services/wpeople/domains/%s/clients/%s/conf/general/secret_key" $domain $client_id ) | regexReplaceAll "^.+/(.+)" "$1"}}
  45. {{ $secretPath := (printf "secret/services/wpeople/domains/%s/clients/%s/conf/general/secret_key" $domain $client_id ) | regexReplaceAll "^(.+)/.+" "$1"}}
  46.  
  47. {{range secrets $secretPath}}
  48. {{- if eq . $secretKey -}}
  49. 'secret_key' => '{{with secret (printf "secret/services/wpeople/domains/%s/clients/%s/conf/general/secret_key" $domain $client_id )}}{{.Data.value}}{{end}}',
  50. {{- end -}}
  51. {{end}}
  52.  
  53. {{ $secretKey := (printf "secret/services/wpeople/domains/%s/clients/%s/conf/mailer/password" $domain $client_id ) | regexReplaceAll "^.+/(.+)" "$1"}}
  54. {{ $secretPath := (printf "secret/services/wpeople/domains/%s/clients/%s/conf/mailer/password" $domain $client_id ) | regexReplaceAll "^(.+)/.+" "$1"}}
  55.  
  56. {{range secrets $secretPath}}
  57. {{- if eq . $secretKey -}}
  58. 'mailer_password' => '{{with secret (printf "secret/services/wpeople/domains/%s/clients/%s/conf/mailer/password" $domain $client_id )}}{{.Data.value}}{{end}}',
  59. {{- end -}}
  60. {{end}}
  61.  
  62. 'mailer_user' => '{{key_or_default $mailer_user "null"}}',
  63. 'site_url' => '{{key_or_default $site_url "null"}}',
  64. 'cache_path' => '{{key_or_default $cache_path "null"}}',
  65. 'log_path' => '{{key_or_default $log_path "null"}}',
  66.  
  67. 'locale' => '{{key_or_default $locale "en_US"}}',
  68.  
  69.  
  70. 'mailer_from_name' => '{{key_or_default $mailer_from_name "WPeople"}}',
  71. 'mailer_from_email' => '{{key_or_default $mailer_from_email "admin@wsuite.com"}}',
  72. 'mailer_transport' => '{{key_or_default $mailer_transport "mautic.transport.amazon"}}',
  73. 'mailer_host' => '{{key_or_default $mailer_host "null"}}',
  74. 'mailer_port' => '{{key_or_default $mailer_port "null"}}',
  75. 'mailer_encryption' => '{{key_or_default $mailer_encryption "null"}}',
  76. 'mailer_auth_mode' => '{{key_or_default $mailer_auth_mode "null"}}',
  77.  
  78. {{end}}
  79.  
  80. {{end}}
  81.  
  82.  
  83. 'db_driver' => 'pdo_mysql',
  84.  
  85. 'db_backup_tables' => 0,
  86. 'db_backup_prefix' => 'bak_',
  87. 'db_server_version' => '5.5.5-10.1.26-MariaDB',
  88.  
  89. 'mailer_spool_type' => 'file',
  90. {{with $client_id := env "WCLIENT_ID"}}
  91. 'mailer_spool_path' => '/var/www/html/spool/{{$client_id}}',
  92. {{end}}
  93. 'webroot' => null,
  94. 'image_path' => 'media/images',
  95. 'tmp_path' => '/var/www/html/app/cache',
  96. 'theme' => 'Mauve',
  97. 'dev_hosts' => null,
  98. 'trusted_hosts' => array(
  99.  
  100. ),
  101. 'trusted_proxies' => array(
  102.  
  103. ),
  104. 'rememberme_key' => '04da550c9c9d41b58a82021cededbf40f94899c1',
  105. 'rememberme_lifetime' => '31536000',
  106. 'rememberme_path' => '/',
  107. 'default_pagelimit' => 30,
  108. 'default_timezone' => 'UTC',
  109. 'date_format_full' => 'F j, Y g:i a T',
  110. 'date_format_short' => 'D, M d',
  111. 'date_format_dateonly' => 'F j, Y',
  112. 'date_format_timeonly' => 'g:i a',
  113. 'ip_lookup_service' => 'maxmind_download',
  114. 'ip_lookup_auth' => null,
  115. 'ip_lookup_config' => array(
  116.  
  117. ),
  118. 'update_stability' => 'stable',
  119. 'cookie_path' => '/',
  120. 'cookie_secure' => null,
  121. 'do_not_track_ips' => array(
  122.  
  123. ),
  124. 'do_not_track_bots' => array(
  125. "0" => "MSNBOT",
  126. "1" => "msnbot-media",
  127. "2" => "bingbot",
  128. "3" => "Googlebot",
  129. "4" => "Google Web Preview",
  130. "5" => "Mediapartners-Google",
  131. "6" => "Baiduspider",
  132. "7" => "Ezooms",
  133. "8" => "YahooSeeker",
  134. "9" => "Slurp",
  135. "10" => "AltaVista",
  136. "11" => "AVSearch",
  137. "12" => "Mercator",
  138. "13" => "Scooter",
  139. "14" => "InfoSeek",
  140. "15" => "Ultraseek",
  141. "16" => "Lycos",
  142. "17" => "Wget",
  143. "18" => "YandexBot",
  144. "19" => "Java/1.4.1_04",
  145. "20" => "SiteBot",
  146. "21" => "Exabot",
  147. "22" => "AhrefsBot",
  148. "23" => "MJ12bot",
  149. "24" => "NetSeer crawler",
  150. "25" => "TurnitinBot",
  151. "26" => "magpie-crawler",
  152. "27" => "Nutch Crawler",
  153. "28" => "CMS Crawler",
  154. "29" => "rogerbot",
  155. "30" => "Domnutch",
  156. "31" => "ssearch_bot",
  157. "32" => "XoviBot",
  158. "33" => "digincore",
  159. "34" => "fr-crawler",
  160. "35" => "SeznamBot",
  161. "36" => "Seznam screenshot-generator",
  162. "37" => "Facebot",
  163. "38" => "facebookexternalhit"
  164. ),
  165. 'do_not_track_internal_ips' => array(
  166.  
  167. ),
  168. 'link_shortener_url' => null,
  169. 'cached_data_timeout' => '10',
  170. 'batch_sleep_time' => '1',
  171. 'cors_restrict_domains' => 0,
  172. 'cors_valid_domains' => array(
  173.  
  174. ),
  175. 'rss_notification_url' => 'https://mautic.com/?feed=rss2&tag=notification',
  176. 'max_entity_lock_time' => 0,
  177. 'api_enabled' => 1,
  178. 'api_enable_basic_auth' => true,
  179. 'api_oauth2_access_token_lifetime' => 60,
  180. 'api_oauth2_refresh_token_lifetime' => 14,
  181. 'api_batch_max_limit' => '200',
  182. 'upload_dir' => '/opt/lampp/htdocs/wpeople/app/../media/files',
  183. 'max_size' => '6',
  184. 'allowed_extensions' => array(
  185. "0" => "csv",
  186. "1" => "doc",
  187. "2" => "docx",
  188. "3" => "epub",
  189. "4" => "gif",
  190. "5" => "jpg",
  191. "6" => "jpeg",
  192. "7" => "mpg",
  193. "8" => "mpeg",
  194. "9" => "mp3",
  195. "10" => "odt",
  196. "11" => "odp",
  197. "12" => "ods",
  198. "13" => "pdf",
  199. "14" => "png",
  200. "15" => "ppt",
  201. "16" => "pptx",
  202. "17" => "tif",
  203. "18" => "tiff",
  204. "19" => "txt",
  205. "20" => "xls",
  206. "21" => "xlsx",
  207. "22" => "wav"
  208. ),
  209. 'campaign_time_wait_on_event_false' => 'PT1H',
  210. 'mailer_return_path' => null,
  211. 'mailer_append_tracking_pixel' => 1,
  212. 'mailer_convert_embed_images' => 0,
  213. 'mailer_amazon_region' => 'email-smtp.us-east-1.amazonaws.com',
  214. 'mailer_spool_msg_limit' => null,
  215. 'mailer_spool_time_limit' => null,
  216. 'mailer_spool_recover_timeout' => '900',
  217. 'mailer_spool_clear_timeout' => '1800',
  218. 'unsubscribe_text' => '<a href=\'|URL|\'>Unsubscribe</a> to no longer receive emails from us.',
  219. 'webview_text' => '<a href=\'|URL|\'>Having trouble reading this email? Click here.</a>',
  220. 'unsubscribe_message' => 'We are sorry to see you go! |EMAIL| will no longer receive emails from us. If this was by mistake, <a href=\'|URL|\'>click here to re-subscribe</a>.',
  221. 'resubscribe_message' => '|EMAIL| has been re-subscribed. If this was by mistake, <a href=\'|URL|\'>click here to unsubscribe</a>.',
  222. 'monitored_email' => array(
  223. "general" => array(
  224. "address" => "",
  225. "host" => "",
  226. "port" => "993",
  227. "encryption" => "/ssl",
  228. "user" => "",
  229. "password" => ""
  230. ),
  231. "EmailBundle_bounces" => array(
  232. "address" => "",
  233. "host" => "",
  234. "port" => "993",
  235. "encryption" => "/ssl",
  236. "user" => "",
  237. "password" => "",
  238. "override_settings" => "0",
  239. "folder" => ""
  240. ),
  241. "EmailBundle_unsubscribes" => array(
  242. "address" => "",
  243. "host" => "",
  244. "port" => "993",
  245. "encryption" => "/ssl",
  246. "user" => "",
  247. "password" => "",
  248. "override_settings" => "0",
  249. "folder" => ""
  250. ),
  251. "EmailBundle_replies" => array(
  252. "address" => "",
  253. "host" => "",
  254. "port" => "993",
  255. "encryption" => "/ssl",
  256. "user" => "",
  257. "password" => "",
  258. "override_settings" => "0",
  259. "folder" => ""
  260. )
  261. ),
  262. 'mailer_is_owner' => 0,
  263. 'default_signature_text' => 'Best regards, |FROM_NAME|',
  264. 'email_frequency_number' => null,
  265. 'email_frequency_time' => null,
  266. 'show_contact_preferences' => 0,
  267. 'show_contact_frequency' => 0,
  268. 'show_contact_pause_dates' => 0,
  269. 'show_contact_preferred_channels' => 0,
  270. 'show_contact_categories' => 0,
  271. 'show_contact_segments' => 0,
  272. 'mailer_mailjet_sandbox' => 0,
  273. 'mailer_mailjet_sandbox_default_mail' => null,
  274. 'disable_trackable_urls' => 0,
  275. 'parallel_import_limit' => '1',
  276. 'background_import_if_more_rows_than' => 0,
  277. 'track_contact_by_ip' => 1,
  278. 'track_by_fingerprint' => 1,
  279. 'track_by_tracking_url' => 1,
  280. 'redirect_list_types' => array(
  281. "301" => "mautic.page.form.redirecttype.permanent",
  282. "302" => "mautic.page.form.redirecttype.temporary"
  283. ),
  284. 'google_analytics_id' => null,
  285. 'google_analytics_trackingpage_enabled' => 0,
  286. 'google_analytics_landingpage_enabled' => 0,
  287. 'facebook_pixel_id' => null,
  288. 'facebook_pixel_trackingpage_enabled' => 0,
  289. 'facebook_pixel_landingpage_enabled' => 0,
  290. 'rabbitmq_host' => 'localhost',
  291. 'rabbitmq_port' => '5672',
  292. 'rabbitmq_vhost' => '/',
  293. 'rabbitmq_user' => 'guest',
  294. 'rabbitmq_password' => 'guest',
  295. 'beanstalkd_host' => 'localhost',
  296. 'beanstalkd_port' => '11300',
  297. 'beanstalkd_timeout' => '60',
  298. 'saml_idp_entity_id' => 'http://localhost',
  299. 'saml_idp_own_password' => null,
  300. 'saml_idp_email_attribute' => 'EmailAddress',
  301. 'saml_idp_username_attribute' => null,
  302. 'saml_idp_firstname_attribute' => 'FirstName',
  303. 'saml_idp_lastname_attribute' => 'LastName',
  304. 'saml_idp_default_role' => null,
  305. 'webhook_start' => '0',
  306. 'webhook_limit' => '10',
  307. 'webhook_log_max' => '1000',
  308. 'webhook_disable_limit' => '100',
  309. 'webhook_timeout' => '15',
  310. 'queue_mode' => 'immediate_process',
  311. 'events_orderby_dir' => 'ASC',
  312. 'twitter_handle_field' => 'twitter',
  313. );
Add Comment
Please, Sign In to add comment