Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $parameters = array(
- {{with $domain := env "WDOMAIN"}}
- {{with $client_id := env "WCLIENT_ID"}}
- {{$db_host := printf "wpeople/domains/%s/clients/%s/conf/db/host" $domain $client_id}}
- {{$db_port := printf "wpeople/domains/%s/clients/%s/conf/db/port" $domain $client_id}}
- {{$db_name := printf "wpeople/domains/%s/clients/%s/conf/db/name" $domain $client_id}}
- {{$db_user := printf "wpeople/domains/%s/clients/%s/conf/db/username" $domain $client_id}}
- {{$site_url := printf "wpeople/domains/%s/clients/%s/conf/site/url" $domain $client_id}}
- {{$cache_path := printf "wpeople/domains/%s/clients/%s/conf/site/cache_dir" $domain $client_id}}
- {{$log_path := printf "wpeople/domains/%s/clients/%s/conf/site/log_dir" $domain $client_id}}
- {{$locale := printf "wpeople/domains/%s/clients/%s/conf/site/locale" $domain $client_id}}
- {{$mailer_user := printf "wpeople/domains/%s/clients/%s/conf/mailer/username" $domain $client_id}}
- {{$mailer_password := printf "wpeople/domains/%s/clients/%s/conf/mailer/password" $domain $client_id}}
- {{$mailer_from_name := printf "wpeople/domains/%s/clients/%s/conf/mailer/from_name" $domain $client_id}}
- {{$mailer_from_email := printf "wpeople/domains/%s/clients/%s/conf/mailer/from_email" $domain $client_id}}
- {{$mailer_transport := printf "wpeople/domains/%s/clients/%s/conf/mailer/transport" $domain $client_id}}
- {{$mailer_host := printf "wpeople/domains/%s/clients/%s/conf/mailer/host" $domain $client_id}}
- {{$mailer_port := printf "wpeople/domains/%s/clients/%s/conf/mailer/port" $domain $client_id}}
- {{$mailer_encryption := printf "wpeople/domains/%s/clients/%s/conf/mailer/encryption" $domain $client_id}}
- {{$mailer_auth_mode := printf "wpeople/domains/%s/clients/%s/conf/mailer/authmode" $domain $client_id}}
- 'db_host' => '{{key_or_default $db_host "wsuitedb.cluster-c3uahxgwxkrq.us-east-1.rds.amazonaws.com"}}',
- 'db_port' => '{{key_or_default $db_port "3306"}}',
- 'db_name' => '{{key_or_default $db_name "wpeople_52137" }}',
- 'db_user' => '{{key_or_default $db_user "wppluser_52137"}}',
- {{ $secretKey := (printf "secret/services/wpeople/domains/%s/clients/%s/conf/db/password" $domain $client_id ) | regexReplaceAll "^.+/(.+)" "$1"}}
- {{ $secretPath := (printf "secret/services/wpeople/domains/%s/clients/%s/conf/db/password" $domain $client_id ) | regexReplaceAll "^(.+)/.+" "$1"}}
- {{range secrets $secretPath}}
- {{- if eq . $secretKey -}}
- 'db_password' => '{{with secret (printf "secret/services/wpeople/domains/%s/clients/%s/conf/db/password" $domain $client_id )}}{{.Data.value}}{{end}}',
- {{- end -}}
- {{end}}
- {{ $secretKey := (printf "secret/services/wpeople/domains/%s/clients/%s/conf/general/secret_key" $domain $client_id ) | regexReplaceAll "^.+/(.+)" "$1"}}
- {{ $secretPath := (printf "secret/services/wpeople/domains/%s/clients/%s/conf/general/secret_key" $domain $client_id ) | regexReplaceAll "^(.+)/.+" "$1"}}
- {{range secrets $secretPath}}
- {{- if eq . $secretKey -}}
- 'secret_key' => '{{with secret (printf "secret/services/wpeople/domains/%s/clients/%s/conf/general/secret_key" $domain $client_id )}}{{.Data.value}}{{end}}',
- {{- end -}}
- {{end}}
- {{ $secretKey := (printf "secret/services/wpeople/domains/%s/clients/%s/conf/mailer/password" $domain $client_id ) | regexReplaceAll "^.+/(.+)" "$1"}}
- {{ $secretPath := (printf "secret/services/wpeople/domains/%s/clients/%s/conf/mailer/password" $domain $client_id ) | regexReplaceAll "^(.+)/.+" "$1"}}
- {{range secrets $secretPath}}
- {{- if eq . $secretKey -}}
- 'mailer_password' => '{{with secret (printf "secret/services/wpeople/domains/%s/clients/%s/conf/mailer/password" $domain $client_id )}}{{.Data.value}}{{end}}',
- {{- end -}}
- {{end}}
- 'mailer_user' => '{{key_or_default $mailer_user "null"}}',
- 'site_url' => '{{key_or_default $site_url "null"}}',
- 'cache_path' => '{{key_or_default $cache_path "null"}}',
- 'log_path' => '{{key_or_default $log_path "null"}}',
- 'locale' => '{{key_or_default $locale "en_US"}}',
- 'mailer_from_name' => '{{key_or_default $mailer_from_name "WPeople"}}',
- 'mailer_from_email' => '{{key_or_default $mailer_from_email "admin@wsuite.com"}}',
- 'mailer_transport' => '{{key_or_default $mailer_transport "mautic.transport.amazon"}}',
- 'mailer_host' => '{{key_or_default $mailer_host "null"}}',
- 'mailer_port' => '{{key_or_default $mailer_port "null"}}',
- 'mailer_encryption' => '{{key_or_default $mailer_encryption "null"}}',
- 'mailer_auth_mode' => '{{key_or_default $mailer_auth_mode "null"}}',
- {{end}}
- {{end}}
- 'db_driver' => 'pdo_mysql',
- 'db_backup_tables' => 0,
- 'db_backup_prefix' => 'bak_',
- 'db_server_version' => '5.5.5-10.1.26-MariaDB',
- 'mailer_spool_type' => 'file',
- {{with $client_id := env "WCLIENT_ID"}}
- 'mailer_spool_path' => '/var/www/html/spool/{{$client_id}}',
- {{end}}
- 'webroot' => null,
- 'image_path' => 'media/images',
- 'tmp_path' => '/var/www/html/app/cache',
- 'theme' => 'Mauve',
- 'dev_hosts' => null,
- 'trusted_hosts' => array(
- ),
- 'trusted_proxies' => array(
- ),
- 'rememberme_key' => '04da550c9c9d41b58a82021cededbf40f94899c1',
- 'rememberme_lifetime' => '31536000',
- 'rememberme_path' => '/',
- 'default_pagelimit' => 30,
- 'default_timezone' => 'UTC',
- 'date_format_full' => 'F j, Y g:i a T',
- 'date_format_short' => 'D, M d',
- 'date_format_dateonly' => 'F j, Y',
- 'date_format_timeonly' => 'g:i a',
- 'ip_lookup_service' => 'maxmind_download',
- 'ip_lookup_auth' => null,
- 'ip_lookup_config' => array(
- ),
- 'update_stability' => 'stable',
- 'cookie_path' => '/',
- 'cookie_secure' => null,
- 'do_not_track_ips' => array(
- ),
- 'do_not_track_bots' => array(
- "0" => "MSNBOT",
- "1" => "msnbot-media",
- "2" => "bingbot",
- "3" => "Googlebot",
- "4" => "Google Web Preview",
- "5" => "Mediapartners-Google",
- "6" => "Baiduspider",
- "7" => "Ezooms",
- "8" => "YahooSeeker",
- "9" => "Slurp",
- "10" => "AltaVista",
- "11" => "AVSearch",
- "12" => "Mercator",
- "13" => "Scooter",
- "14" => "InfoSeek",
- "15" => "Ultraseek",
- "16" => "Lycos",
- "17" => "Wget",
- "18" => "YandexBot",
- "19" => "Java/1.4.1_04",
- "20" => "SiteBot",
- "21" => "Exabot",
- "22" => "AhrefsBot",
- "23" => "MJ12bot",
- "24" => "NetSeer crawler",
- "25" => "TurnitinBot",
- "26" => "magpie-crawler",
- "27" => "Nutch Crawler",
- "28" => "CMS Crawler",
- "29" => "rogerbot",
- "30" => "Domnutch",
- "31" => "ssearch_bot",
- "32" => "XoviBot",
- "33" => "digincore",
- "34" => "fr-crawler",
- "35" => "SeznamBot",
- "36" => "Seznam screenshot-generator",
- "37" => "Facebot",
- "38" => "facebookexternalhit"
- ),
- 'do_not_track_internal_ips' => array(
- ),
- 'link_shortener_url' => null,
- 'cached_data_timeout' => '10',
- 'batch_sleep_time' => '1',
- 'cors_restrict_domains' => 0,
- 'cors_valid_domains' => array(
- ),
- 'rss_notification_url' => 'https://mautic.com/?feed=rss2&tag=notification',
- 'max_entity_lock_time' => 0,
- 'api_enabled' => 1,
- 'api_enable_basic_auth' => true,
- 'api_oauth2_access_token_lifetime' => 60,
- 'api_oauth2_refresh_token_lifetime' => 14,
- 'api_batch_max_limit' => '200',
- 'upload_dir' => '/opt/lampp/htdocs/wpeople/app/../media/files',
- 'max_size' => '6',
- 'allowed_extensions' => array(
- "0" => "csv",
- "1" => "doc",
- "2" => "docx",
- "3" => "epub",
- "4" => "gif",
- "5" => "jpg",
- "6" => "jpeg",
- "7" => "mpg",
- "8" => "mpeg",
- "9" => "mp3",
- "10" => "odt",
- "11" => "odp",
- "12" => "ods",
- "13" => "pdf",
- "14" => "png",
- "15" => "ppt",
- "16" => "pptx",
- "17" => "tif",
- "18" => "tiff",
- "19" => "txt",
- "20" => "xls",
- "21" => "xlsx",
- "22" => "wav"
- ),
- 'campaign_time_wait_on_event_false' => 'PT1H',
- 'mailer_return_path' => null,
- 'mailer_append_tracking_pixel' => 1,
- 'mailer_convert_embed_images' => 0,
- 'mailer_amazon_region' => 'email-smtp.us-east-1.amazonaws.com',
- 'mailer_spool_msg_limit' => null,
- 'mailer_spool_time_limit' => null,
- 'mailer_spool_recover_timeout' => '900',
- 'mailer_spool_clear_timeout' => '1800',
- 'unsubscribe_text' => '<a href=\'|URL|\'>Unsubscribe</a> to no longer receive emails from us.',
- 'webview_text' => '<a href=\'|URL|\'>Having trouble reading this email? Click here.</a>',
- '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>.',
- 'resubscribe_message' => '|EMAIL| has been re-subscribed. If this was by mistake, <a href=\'|URL|\'>click here to unsubscribe</a>.',
- 'monitored_email' => array(
- "general" => array(
- "address" => "",
- "host" => "",
- "port" => "993",
- "encryption" => "/ssl",
- "user" => "",
- "password" => ""
- ),
- "EmailBundle_bounces" => array(
- "address" => "",
- "host" => "",
- "port" => "993",
- "encryption" => "/ssl",
- "user" => "",
- "password" => "",
- "override_settings" => "0",
- "folder" => ""
- ),
- "EmailBundle_unsubscribes" => array(
- "address" => "",
- "host" => "",
- "port" => "993",
- "encryption" => "/ssl",
- "user" => "",
- "password" => "",
- "override_settings" => "0",
- "folder" => ""
- ),
- "EmailBundle_replies" => array(
- "address" => "",
- "host" => "",
- "port" => "993",
- "encryption" => "/ssl",
- "user" => "",
- "password" => "",
- "override_settings" => "0",
- "folder" => ""
- )
- ),
- 'mailer_is_owner' => 0,
- 'default_signature_text' => 'Best regards, |FROM_NAME|',
- 'email_frequency_number' => null,
- 'email_frequency_time' => null,
- 'show_contact_preferences' => 0,
- 'show_contact_frequency' => 0,
- 'show_contact_pause_dates' => 0,
- 'show_contact_preferred_channels' => 0,
- 'show_contact_categories' => 0,
- 'show_contact_segments' => 0,
- 'mailer_mailjet_sandbox' => 0,
- 'mailer_mailjet_sandbox_default_mail' => null,
- 'disable_trackable_urls' => 0,
- 'parallel_import_limit' => '1',
- 'background_import_if_more_rows_than' => 0,
- 'track_contact_by_ip' => 1,
- 'track_by_fingerprint' => 1,
- 'track_by_tracking_url' => 1,
- 'redirect_list_types' => array(
- "301" => "mautic.page.form.redirecttype.permanent",
- "302" => "mautic.page.form.redirecttype.temporary"
- ),
- 'google_analytics_id' => null,
- 'google_analytics_trackingpage_enabled' => 0,
- 'google_analytics_landingpage_enabled' => 0,
- 'facebook_pixel_id' => null,
- 'facebook_pixel_trackingpage_enabled' => 0,
- 'facebook_pixel_landingpage_enabled' => 0,
- 'rabbitmq_host' => 'localhost',
- 'rabbitmq_port' => '5672',
- 'rabbitmq_vhost' => '/',
- 'rabbitmq_user' => 'guest',
- 'rabbitmq_password' => 'guest',
- 'beanstalkd_host' => 'localhost',
- 'beanstalkd_port' => '11300',
- 'beanstalkd_timeout' => '60',
- 'saml_idp_entity_id' => 'http://localhost',
- 'saml_idp_own_password' => null,
- 'saml_idp_email_attribute' => 'EmailAddress',
- 'saml_idp_username_attribute' => null,
- 'saml_idp_firstname_attribute' => 'FirstName',
- 'saml_idp_lastname_attribute' => 'LastName',
- 'saml_idp_default_role' => null,
- 'webhook_start' => '0',
- 'webhook_limit' => '10',
- 'webhook_log_max' => '1000',
- 'webhook_disable_limit' => '100',
- 'webhook_timeout' => '15',
- 'queue_mode' => 'immediate_process',
- 'events_orderby_dir' => 'ASC',
- 'twitter_handle_field' => 'twitter',
- );
Add Comment
Please, Sign In to add comment