Repository navigation
Expand file tree
/
Copy pathapi_config_example.properties
More file actions
138 lines (81 loc) · 4.5 KB
/
Copy pathapi_config_example.properties
File metadata and controls
138 lines (81 loc) · 4.5 KB
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# 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:5121
# JDBC connection URL for connecting to Postgres DB.
# jdbc:postgresql://host:port/database_name 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
# Username and Password for accessing postgres database
postgres.username = user_name_of_your_choice
postgres.password = password_of_your_choice
# admin account for managing the service
admin_username = username_of_your_choice
admin_password = password_of_your_choice
# email configuration
smtp_server_url = smtp.example.com
smtp_port = 587
smtp_username = postmaster@example.com
smtp_password = abcde12345
email_sender_name = Farmers Garden
email_address_for_sender = noreply@example.com
# configure push notifications using one-signal and firebase ... see our integrations guide on how to configure push notifications
one_signal_rest_api_key_admin = abcde
one_signal_app_id_admin = abcde
one_signal_rest_api_key_shop_owner = abcde
one_signal_app_id_shop_owner = abcde
one_signal_rest_api_key_end_user = abcde
one_signal_app_id_end_user = abcde
# mapbox style url for maps
style_url_for_maps = http://example.org/styles/osm-bright/style.json
# provide the url for faqs, terms of service and privacy policy
faqs_for_end_user_url = https://example.org/faqs
terms_of_service_for_end_user_url = https://example.org/terms_of_service
privacy_policy_for_end_user_url = https://example.org/privacy_policy
# provide the url for faqs, terms of service and privacy policy for shop owner
faqs_for_shop_owner_url = https://example.org/faqs
terms_of_service_for_shop_owner_url = https://example.org/terms_of_service
privacy_policy_for_shop_owner_url = https://example.org/privacy_policy
# For sending OTP we currently use msg91 OTP service. Get an API Key from msg91.com and place it here
msg91.apikey = abcde12345
# Default Country Code
default_country_code = 91
# Sender ID for sending SMS must be ONLY 6 characters
sender_id_for_sms = ABCDEF
# SMS notifications will have the name of your service ... which will help the customer know who is delivering the message
service_name_for_sms = Nearby Shops
# this will enable login using OTP feature ... the user will not be required to remember password
# and he / she will be able to login using simple otp verification
# provides simplicity to the user but requires more expenses for sending sms and otp verification
enable_login_using_otp = true
# this feature helps end-user to login to any local market using his global credentials ...
# so that end-user does not have to remember multiple passwords ...
# and create multiple accounts for accessing each different local market ...
# here you mention the url of trusted global servers that can be used to verify user credentials ...
trusted_market_aggregators = http://sds.nearbyshops.org, http://sds.example.org
# notification icon that will be displayed with push notifications when users receive notifications
url_for_notification_icon = url_for_notification_icon_goes_here
# enter delivery range in kilometers the maximum and minimum value the shop owners can set for delivery range
delivery_range_for_shop_max = 30
delivery_range_for_shop_min = 1
# app service charge per order - the amount levied for one order as app service charge
app_service_charge_for_pick_from_shop = 5
app_service_charge_for_home_delivery = 10
# Minimum balance allowed for shop owner account
# when balance balance goes below minimum the service will be suspended for the shop-owner who owns the account
min_account_balance_for_shop_owner = -5000
# referral credit for drivers and end-users
referral_credit_for_shop_owner_registration = 200
referral_credit_for_end_user_registration = 100
#Joining credit
joining_credit_for_shop_owner = 100
joining_credit_for_end_user = 100
# these fields are required if you use tokens for login ... if dont ... just ignore these fields
# 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 entities a person can fetch for a list
max_limit = 100