diff --git a/.env.dist b/.env.dist index b0392b88..30f9a925 100644 --- a/.env.dist +++ b/.env.dist @@ -15,7 +15,7 @@ APP_SECRET=b344cd6cd151ae1d61403ed55806c5ce # Configure your db driver and server_version in config/packages/doctrine.yaml DATABASE_URL=mysql://db_user:db_password@127.0.0.1:3306/db_name ###< doctrine/doctrine-bundle ### -GMAPS_API_KEY=insertgmapsapikeyhere +GMAPS_API_KEY=insert_gmapsapikey_here # rising tide sms gateway RT_USER=rt_user @@ -28,7 +28,7 @@ RT_SHORTCODE=1234 MQTT_IP_ADDRESS=localhost MQTT_PORT=8883 MQTT_CERT=/location/of/cert/file.crt -MQTT_WS_HOST=insertiphere +MQTT_WS_HOST=insert_ip_here MQTT_WS_PORT=8083 # redis client @@ -38,20 +38,22 @@ REDIS_CLIENT_PORT=6379 REDIS_CLIENT_PASSWORD=foobared # privacy policy ids -POLICY_PROMO=insertpromopolicyidhere -POLICY_THIRD_PARTY=insertthirdpartypolicyidhere -POLICY_MOBILE=insertmobilepolicyidhere +POLICY_PROMO=insert_promopolicyid_here +POLICY_THIRD_PARTY=insert_thirdpartypolicyid_here +POLICY_MOBILE=insert_mobilepolicyid_here # OTP -OTP_MODE=settotestorrandom +OTP_MODE=set_to_test_or_random # geofence -GEOFENCE_ENABLE=settotrueorfalse +GEOFENCE_ENABLE=set_to_true_or_false # unknown manufacturer and vehicle ids -CVU_MFG_ID=insertmfgidforunknownvehicles -CVU_BRAND_ID=insertbrandidforunknownvehicles +CVU_MFG_ID=insert_mfgid_for_unknown_vehicles +CVU_BRAND_ID=insert_brandid_for_unknown_vehicles # country code prefix -COUNTRY_CODE=+insertcountrycodehere +COUNTRY_CODE=+insert_country_code_here +# dashboard +DASHBOARD_ENABLE=set_to_true_or_false diff --git a/config/packages/twig.yaml b/config/packages/twig.yaml index d912927a..cb90797b 100644 --- a/config/packages/twig.yaml +++ b/config/packages/twig.yaml @@ -6,3 +6,4 @@ twig: gmaps_api_key: "%env(GMAPS_API_KEY)%" mqtt_host: "%env(MQTT_WS_HOST)%" mqtt_port: "%env(MQTT_WS_PORT)%" + dashboard_enable: "%env(DASHBOARD_ENABLE)%" diff --git a/templates/home.html.twig b/templates/home.html.twig index 975b0ea5..b7ac2c24 100644 --- a/templates/home.html.twig +++ b/templates/home.html.twig @@ -15,7 +15,9 @@ -{{ include('map/' ~ map_js_file) }} +{% if dashboard_enable == 'true' %} + {{ include('map/' ~ map_js_file) }} +{% endif %} {% endblock %}