From a6fbaa192f0145f1027ad807392ce1a78e3bb1b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Sat, 17 Nov 2018 19:28:39 +0100 Subject: [PATCH] config example --- web/api/__config_example.php | 56 ++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 web/api/__config_example.php diff --git a/web/api/__config_example.php b/web/api/__config_example.php new file mode 100644 index 0000000..c58572c --- /dev/null +++ b/web/api/__config_example.php @@ -0,0 +1,56 @@ + + [ + 'prod' => true, + ], + + 'database' => + [ + 'host' => '?', + 'database' => '?', + 'user' => '?', + 'password' => '?', + ], + + 'firebase' => + [ + 'type' => 'service_account', + 'project_id' => '?', + 'private_key_id' => '???', + 'client_email' => '???.iam.gserviceaccount.com', + 'client_id' => '???', + 'auth_uri' => 'https://accounts.google.com/o/oauth2/auth', + 'token_uri' => 'https://oauth2.googleapis.com/token', + 'auth_provider_x509_cert_url' => 'https://www.googleapis.com/oauth2/v1/certs', + 'client_x509_cert_url' => 'https://www.googleapis.com/robot/v1/metadata/x509/???f.iam.gserviceaccount.com', + 'private_key' => "-----BEGIN PRIVATE KEY-----\n" + . "??????????\n" + . "-----END PRIVATE KEY-----\n", + 'server_key' => '????', + ], + + 'verify_api' => + [ + 'package_name' => 'com.blackforestbytes.simplecloudnotifier', + 'product_id' => '???', + + 'clientid' => '???.apps.googleusercontent.com', + 'clientsecret' => '???', + 'accesstoken' => file_exists('.verify_accesstoken') ? file_get_contents('.verify_accesstoken') : '', + 'refreshtoken' => '???', + 'scope' => 'https://www.googleapis.com/auth/androidpublisher', + ], + + 'error_reporting' => + [ + 'send-mail' => true, + 'email-error-target' => '???@???.com', + 'email-error-sender' => '???@???.com', + ], + +]; \ No newline at end of file