-
Notifications
You must be signed in to change notification settings - Fork 9
/
api_config_example_backup.properties
115 lines (75 loc) · 3.88 KB
/
api_config_example_backup.properties
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# Example API Configuration File Updated on 13 November 2017
# base url use ip "0.0.0.0" for global access and localhost for local access
# adjust ip and port number according to your requirements
base.url = http://0.0.0.0:5120
# JDBC connection URL for connecting to Postgres DB. TaxiReferralDB is the name of Database for our service
# jdbc:postgresql://host:port/database is the format for the JDBC url. Because the database and api is on the same
# machine we use localhost and we also need to provide the database name. We were advised to create new database. So we
# can now provide the name of the new database here
connection.url = jdbc:postgresql://localhost:5432/nearbyshopsdb
# in the above url the host is localhost at port 5432 and database name is triplogic
# Username and Password for postgres database
postgres.username = username_of_your_choice
postgres.password = password_of_your_choice
# admin account for managing the service
admin_username = admin
admin_password = password
# service information
service_name = Nearby Shops
service_description = Description for nearby shops india
# locale information
locale_country_code = IN
locale_currency_code = INR
# we currently use mailgun for email. For emails create mailgun account and get an api key and it below
# Following key-value pair contains mailgun configuration
mailgun.domain = example.org
mailgun.apikey = key-abcde12345
mailgun.name = Sumeet
mailgun.email = postmaster@exaple.org
# For sending OTP we currently use msg91 OTP service. Get an API Key from msg91 and place it here
msg91.apikey = 123456789
one_signal_rest_api_key_admin = abcde
one_signal_app_id_admin = 12345
one_signal_rest_api_key_shop_owner = abcde
one_signal_app_id_shop_owner = 12345
one_signal_rest_api_key_end_user = abcde
one_signal_app_id_end_user = 12345
# For maps we use TileServerGL open source project which serves vector maps using OSM data.
# Its available at tileserver.org
# Create a tileserverGL Instance which you can do on
# a 10 $ per month server on DO (Digital Ocean) and place your style url here.
# you also need to buy a map for your city from open map tiles website.
# If you dont know what does styleURL mean then search for it on google
# You can get your map up and running in just 10 $ per month plus map cost of 15$ using this project.
# which is much lower compared to spending 10000 $ annual for a commertial licence in case of google maps
# On the client side we render maps using mapbox android GL SDK without using any mapbox api key
tileserverGL.styleURL = http://example.org/styles/osm-bright/style.json
mqtt_server_address = tcp://mqtt.example.org:1883
geocoder_address = http://example.com
# provide the url for faqs, terms of service and privacy policy
faqs_url = https://example.org/faqs
terms_of_service_url = https://example.org/terms_of_service
privacy_policy_url = https://example.org/privacy_policy
# Default Country Code
default_country_code = 91
# app service charge per order - the amount levied for one order as app service charge
app_service_charge.pick-from-shop = 5
app_service_charge.home-delivery = 10
# referral credit for drivers and end-users
referralcredit.shop-owner.registration = 200
referralcredit.enduser.registration = 100
#Joining credit
joiningcredit.enduser = 500
#Token duration minutes value = 24 (hours) * 60 (minutes) = 1440
token_duration_minutes = 1440
email_verification_code_expiry_minutes = 10
phone_otp_expiry_minutes = 10
password_reset_code_expiry_minutes = 10
# maximum entites a person can fetch for a list
max_limit = 100
# Minimum balance allowed for tax account
# when tax account balance goes below minimum the service will be suspended for the driver who owns the account
min_tax_account_balance = 0
# Minimum balance allowed for service account
# when service account balance goes below minimum the service will be suspended for the driver who owns the account
min_service_account_balance = 0