Moved API Google Map key to env variables.

This commit is contained in:
Naida Vatric
2019-12-08 00:58:06 +01:00
committed by Bilal Catic
parent fbcda328b7
commit cb52c8592a
4 changed files with 9 additions and 2 deletions

View File

@@ -30,6 +30,8 @@ const MAX_REAL_ESTATES_IN_FIRST_EMAIL =
const PRINT_CRAWLER_DEBUG = process.env.PRINT_CRAWLER_DEBUG_INFO || 0;
const API_MAP_KEY= process.env.API_MAP_KEY || "";
module.exports = {
APP_PORT,
APP_URL,
@@ -39,5 +41,6 @@ module.exports = {
AWS_EMAIL_CONFIG,
MAX_REAL_ESTATES_IN_EMAIL,
MAX_REAL_ESTATES_IN_FIRST_EMAIL,
PRINT_CRAWLER_DEBUG
PRINT_CRAWLER_DEBUG,
API_MAP_KEY
};

View File

@@ -177,5 +177,5 @@
});
});
</script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAna8ohfV2HBMcxGk_29vqxU5Z_bDickqg&language=bs&libraries=places&callback=initMap" async
<script src="https://maps.googleapis.com/maps/api/js?key=<%= process.env.API_MAP_KEY %>&language=bs&libraries=places&callback=initMap" async
defer></script>

View File

@@ -14,6 +14,9 @@ MAX_REAL_ESTATES_IN_FIRST_EMAIL=Max number of real estates that will be shown in
#=============== GOOGLE ANALYTICS =============#
GA_ID=Google Analytics ID
#=============== GOOGLE MAPS =============#
API_MAP_KEY=(your-key-here)
#=============== AWS SDK EMAIL SETTINGS =======#
AWS_KEY_ID=(your-key-here)
AWS_SECRET_ACCESS_KEY=(your-key-here)

1
tmp.env Normal file
View File

@@ -0,0 +1 @@
API_MAP_KEY="AIzaSyBuqZ6MWvDrquwc-TN6rPS6188D608Zj3Q"