Skip to content

Instantly share code, notes, and snippets.

@firecentaur
Created November 26, 2018 18:18
Show Gist options
  • Save firecentaur/3277648c585926338ebb9085de7f9086 to your computer and use it in GitHub Desktop.
Save firecentaur/3277648c585926338ebb9085de7f9086 to your computer and use it in GitHub Desktop.
<?php
/**
* Copyright (c) 2017. Movie English Project
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* Paul Preibisch <fire@b3dmultitech.com>
*/
$videoIndex = strtolower('stablejpvideoindex');
$tagIndex = strtolower('stablejptagindex');
$aws_endpoint = "<%= node['deploy_config']['backend']['environment_variables']['aws_endpoint'] %>";
$connectionString = "mysql:host=<%=node['deploy_config']['backend']['environment_variables']['dbhost'] %>;dbname=<%= node['deploy_config']['backend']['environment_variables']['rds_dbname']%>";
$rdsUser = "<%= node['deploy_config']['backend']['environment_variables']['rds_user'] %>";
$rdsPassword = "<%= node['deploy_config']['backend']['environment_variables']['rds_pass'] %>";
return [
'testemailaddress' => "<%= node['deploy_config']['backend']['environment_variables']['testemailaddress'] %>",
'server_name' => "<%= node['deploy_config']['backend']['environment_variables']['server_name'] %>",
'mepApiUrl' => 'api.movieenglish.jp',
'snsTopic' => "<%= node['deploy_config']['backend']['environment_variables']['snsTopic'] %>",
'snsSurveyQueue' => "<%= node['deploy_config']['backend']['environment_variables']['snsSurveyQueue'] %>",
'sentry_email' => "<%= node['sentry_email'] %>",
'sentry_domain' => "<%= node['sentry_domain'] %>",
'sentry_dsn' => "<%= node['sentry_dsn'] %>",
'beta_program_password' => "<%= node['beta_program_password'] %>",
'useMocks' => false,
's3Host' => "https://s3.amazonaws.com",
'validation_from_email' => "info@movieenglish.com",
'consoledb' => [
'connectionString' => $connectionString,
'username' => $rdsUser,
'password' => $rdsPassword,
'enableProfiling' => true,
'enableParamLogging' => true,
'tablePrefix' => '',
'charset' => 'utf8'
],
'aws_s3' => "https://$aws_endpoint",
'aws_endpoint' => $aws_endpoint,
'elasticSearch' => "<%= node['deploy_config']['backend']['environment_variables']['elasticSearch'] %>",
"videosIndex" => $videoIndex,
"tagsIndex" => $tagIndex,
"s3" => [
'amazon_s3_access_key' => "<%= node['deploy_config']['backend']['environment_variables']['amazon_s3_access_key'] %>",
'amazon_s3_secret_access_key' => "<%= node['deploy_config']['backend']['environment_variables']['amazon_s3_secret_access_key'] %>"
],
"ses" => [
'access_key' => "<%= node['deploy_config']['backend']['environment_variables']['amazon_ses_access_key'] %>",
'secret_key' => "<%= node['deploy_config']['backend']['environment_variables']['amazon_ses_secret_access_key'] %>",
'emailhost' => "<%= node['deploy_config']['backend']['environment_variables']['emailhost'] %>",
],
'menuGroups' => [
"Movie English" => [
"group" => [
"id" => 9,
"name" => "Movie English",
],
"folder" => [
"id" => 189,
"name" => "Movie English Library"
]
],
"Global Academy" => [
"group" => [
"id" => 191,
"name" => "Global Academy",
]
],
"Agos" => [
"group" => [
"id" => 10,
"name" => "Agos",
],
"folder" => [
"id" => 146,
"name" => "Agos Library"
]
],
],
"bucket" => "<%= node['deploy_config']['backend']['environment_variables']['bucket'] %>",
"testdb" => [
'connectionString' => $connectionString,
'username' => $rdsUser,
'password' => $rdsPassword,
'enableProfiling' => true,
'enableParamLogging' => true,
'tablePrefix' => '',
'charset' => 'utf8'
],
'myApiFilmsToken' => "<%= node['deploy_config']['backend']['environment_variables']['myApiFilmsToken'] %>",
'imdbapikey' => "<%= node['deploy_config']['backend']['environment_variables']['imdbapikey'] %>",
'youtubeApiKey' => "<%= node['deploy_config']['backend']['environment_variables']['youtubeApiKey'] %>"
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment