-
Notifications
You must be signed in to change notification settings - Fork 1
/
set_env_vars.sh
223 lines (177 loc) · 10.3 KB
/
set_env_vars.sh
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
#!/usr/bin/env bash
# Core ENV Details
export PA_ENVIRONMENT='development'
export PA_PORT=3000
export PA_DEFAULT_LOG_LEVEL='debug';
export PA_DOMAIN='http://pepodev.com:8080'
export PA_STORE_DOMAIN='http://store.pepodev.com:8080';
export PA_INVITE_DOMAIN='http://invite.pepodev.com:8080';
export PA_WEB_DOMAIN='http://test:[email protected]:8080'
export PA_STORE_WEB_DOMAIN='http://test:[email protected]:8080'
export PA_COOKIE_DOMAIN='.pepodev.com'
# Devops error logs framework
export PA_DEVOPS_APP_NAME='pepo-api';
export PA_DEVOPS_ENV_ID='dev1-sandbox';
export PA_DEVOPS_IP_ADDRESS='127.0.0.1';
export PA_DEVOPS_SERVER_IDENTIFIER='1111';
# Database details
export PA_MYSQL_CONNECTION_POOL_SIZE='3'
# mysql main db
export PA_MAIN_DB_MYSQL_HOST='127.0.0.1'
export PA_MAIN_DB_MYSQL_USER='root'
export PA_MAIN_DB_MYSQL_PASSWORD='root'
# mysql user db
export PA_USER_DB_MYSQL_HOST='127.0.0.1'
export PA_USER_DB_MYSQL_USER='root'
export PA_USER_DB_MYSQL_PASSWORD='root'
# mysql big db
export PA_BIG_DB_MYSQL_HOST='127.0.0.1'
export PA_BIG_DB_MYSQL_USER='root'
export PA_BIG_DB_MYSQL_PASSWORD='root'
# mysql entity db
export PA_ENTITY_DB_MYSQL_HOST='127.0.0.1'
export PA_ENTITY_DB_MYSQL_USER='root'
export PA_ENTITY_DB_MYSQL_PASSWORD='root'
# mysql twitter db
export PA_TWITTER_DB_MYSQL_HOST='127.0.0.1'
export PA_TWITTER_DB_MYSQL_USER='root'
export PA_TWITTER_DB_MYSQL_PASSWORD='root'
# mysql feed db
export PA_FEED_DB_MYSQL_HOST='127.0.0.1'
export PA_FEED_DB_MYSQL_USER='root'
export PA_FEED_DB_MYSQL_PASSWORD='root'
# mysql config db
export PA_CONFIG_DB_MYSQL_HOST='127.0.0.1'
export PA_CONFIG_DB_MYSQL_USER='root'
export PA_CONFIG_DB_MYSQL_PASSWORD='root'
# mysql ost db
export PA_OST_DB_MYSQL_HOST='127.0.0.1'
export PA_OST_DB_MYSQL_USER='root'
export PA_OST_DB_MYSQL_PASSWORD='root'
#mysql socket db
export PA_SOCKET_DB_MYSQL_HOST='127.0.0.1'
export PA_SOCKET_DB_MYSQL_USER='root'
export PA_SOCKET_DB_MYSQL_PASSWORD='root'
# mysql admin db
export PA_ADMIN_DB_MYSQL_HOST='127.0.0.1'
export PA_ADMIN_DB_MYSQL_USER='root'
export PA_ADMIN_DB_MYSQL_PASSWORD='root'
# mysql redemption db
export PA_REDEMPTION_DB_MYSQL_HOST='127.0.0.1'
export PA_REDEMPTION_DB_MYSQL_USER='root'
export PA_REDEMPTION_DB_MYSQL_PASSWORD='root'
# webhook redemption db
export PA_WEBHOOK_DB_MYSQL_HOST='127.0.0.1'
export PA_WEBHOOK_DB_MYSQL_USER='root'
export PA_WEBHOOK_DB_MYSQL_PASSWORD='root'
#mysql transaction db
export PA_FIAT_DB_MYSQL_HOST='127.0.0.1'
export PA_FIAT_DB_MYSQL_USER='root'
export PA_FIAT_DB_MYSQL_PASSWORD='root'
#mysql social connect db
export PA_SOCIAL_CONNECT_DB_MYSQL_HOST='127.0.0.1'
export PA_SOCIAL_CONNECT_DB_MYSQL_USER='root'
export PA_SOCIAL_CONNECT_DB_MYSQL_PASSWORD='root'
#mysql meetings db
export PA_MEETING_DB_MYSQL_HOST='127.0.0.1'
export PA_MEETING_DB_MYSQL_USER='root'
export PA_MEETING_DB_MYSQL_PASSWORD='root'
# mysql channel db
export PA_CHANNEL_DB_MYSQL_HOST='127.0.0.1'
export PA_CHANNEL_DB_MYSQL_USER='root'
export PA_CHANNEL_DB_MYSQL_PASSWORD='root'
# mysql - devops error logs infra details
export PA_INFRA_DB_MYSQL_HOST='127.0.0.1'
export PA_INFRA_DB_MYSQL_USER='root'
export PA_INFRA_DB_MYSQL_PASSWORD='root'
export PA_INFRA_DB_MYSQL_DB='ost_infra_development'
# SHA256 details
export PA_CACHE_DATA_SHA_KEY='066f7e6e833db143afee3dbafc888bcf'
# AWS-KMS details
export PA_KMS_AWS_ACCESS_KEY='AKIAT7WAUYD3SCOAJR5U'
export PA_KMS_AWS_SECRET_KEY='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'
export PA_KMS_AWS_REGION='us-east-1'
export PA_API_KEY_KMS_ID='74f6ceff-95be-4c43-b936-f0c2cf6863d0'
export PA_SECRET_ENC_KEY_KMS_ID='ce7424c5-56cf-48ed-9202-49cbae0cf9d1'
# S3 config details
export PA_S3_AWS_ACCESS_KEY='AKIAT7WAUYD3SCOAJR5U'
export PA_S3_AWS_SECRET_KEY='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'
export PA_S3_AWS_REGION='us-east-1'
export PA_S3_AWS_MASTER_FOLDER='d'
export PA_S3_USER_ASSETS_BUCKET='uassets.stagingpepo.com'
export PA_S3_CHANNEL_ASSETS_BUCKET='uassets.stagingpepo.com'
# ost-platform API credentials
export PA_SA_API_END_POINT='https://api.stagingost.com/testnet/v2/'
# cookie signing secret for mobile cookie
export PA_COOKIE_SECRET='aa5298d3a3fe181a3a52d085ee1525df5asa498337f8f3b76ca7df0a5de3211b'
export PA_COOKIE_TOKEN_SECRET='aa5298d3a3fe181a3a52d085ee1525df5asa498337f8f3b76ca7df0a5de3211b'
# cookie signing secret for admin cookie
export PA_PAD_COOKIE_SECRET='aa5298d3a3fe181a3a52d085ee1525df5asa498337f8f3b76ca7df0a5de32123'
# cookie signing secret for web cookie
export PA_PW_COOKIE_SECRET='6BC9B1968BBA53CA8E28878DAD4AB549B154027F10EA1C3FD2D37BAE6F9A5540'
# Pepo Campaigns Details
export PA_CAMPAIGN_CLIENT_KEY="3572cbc0d1895ed73e769d028eb50fec"
export PA_CAMPAIGN_CLIENT_SECRET="b753c5acca25e22bedb5a58efc72891a"
export PA_CAMPAIGN_BASE_URL="https://pepocampaigns.com"
export PA_CAMPAIGN_MASTER_LIST="64194"
#Twitter API Key
export PA_TWITTER_CONSUMER_KEY='NEo4gEXzdQZaoTsqzpZvepfKb'
export PA_TWITTER_CONSUMER_SECRET='iM5UMt4px8rwoqEoRV9gJGrJGtEoMUxOYkaWXSges7t4bk564t'
# image resizer variables
export PA_PR_LAMBDA_IMAGE_RESIZE_FUNCTION='arn:aws:lambda:us-east-1:274208178423:function:pepoImageResizer'
export PA_PR_LAMBDA_VIDEO_COMPRESS_FUNCTION='arn:aws:lambda:us-east-1:274208178423:function:pepoVideoCompressor'
export PA_PR_LAMBDA_VIDEO_MERGE_FUNCTION='arn:aws:lambda:us-east-1:274208178423:function:pepoVideoMerger'
export PA_EMAIL_TOKENS_DECRIPTOR_KEY='3d3w6fs0983ab6b1e37d1c1fs64hm8g9'
# Replication variables for cassandra. ONLY FOR DEVELOPMENT.
export REPLICATION_CLASS='SimpleStrategy'
export REPLICATION_FACTOR='3'
# Cassandra related variables.
export DEFAULT_REPLICATION_LEVEL='localOne'
export PA_CDN_URL='https://dbvoeb7t6hffk.cloudfront.net'
export PA_CDN_DISTRIBUTION_ID='E3BUFDKXA1T0E'
export TWITTER_OAUTH_URL='https://api.twitter.com/oauth/authorize?oauth_token='
# Pepo twitter handle
export PA_PEPO_TWITTER_HANDLE='thepepoapp'
export PA_PEPO_REDEMPTION_USER_ID='1001'
export PA_GOOGLE_INAPP_SERVICE_ACCOUNT_KEY=''
# Value for PA_GOOGLE_INAPP_SERVICE_ACCOUNT_KEY should be escaped first with escape() function. This is done so as to avoid /n being escaped automatically.
export PA_GOOGLE_INAPP_SERVICE_ACCOUNT_EMAIL=''
# Slack related constants.
export PA_SLACK_OAUTH_TOKEN='xoxb-246676767414-838041942631-fFwvshTcfhyWp9awQaJj3aAo'
export PA_SLACK_API_APP_ID='AQC5JETDX'
export PA_SLACK_SIGNING_SECRET='099e2ac373da461dfd4c50ccc6522b8b'
# Google constants.
# escape while creating the env variable and unescape while usage
export PA_GOOGLE_PRIVATE_KEY='-----BEGIN%20PRIVATE%20KEY-----%0AMIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDMxsHlpqlL8eTj%0A16lkEsGlDPCgzz5ll8mrmpblv8jVJb45OPX5Nko2vcsDN3Z3fpNqJO5gB7kJG22o%0AasosP/A+uvzRIv2R6EJ6SJACm/voh4qMqGyfAdg4jyFfG0ziMu80SNU62Oyxhl0E%0ADbSP/33B69zz/czBZDPQEVYJR0qyQ3bfguNKpTpljVsUVySqP9AL4SWlowSAXuju%0AniR5vDEzKeDn1mgi/I3VJK7ngRb6a0o4syttKjxjaexh835phhVpGNvsWstmGP1u%0A+ec1Xo3cSKEh1/l+j1DxbBV6Wodxk2ny+nB8TVVkB7KJgduI/Kh+6rgjybPJNIdG%0ABEmZqiGbAgMBAAECggEADTuOzhNN/11bSCnohVH893h1mD6sLo53dsJfm+sfxD5T%0AI4l9w6PxecYb91I/MouYZRSL3uLA30jJdkeoVuGu2a7lpXIYZrRWj2Ze//wqdCVG%0AG77K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qjwk0/nd0VEnRzCbKIxNBbpcCEgFEJXJjavUhZsNycTFLFluDs4AbMKjf3SJ%0A4GpJY3ZaQrdZ69H1jxjutgwe%0A-----END%20PRIVATE%20KEY-----%0A'
export PA_GOOGLE_CLIENT_EMAIL='[email protected]'
export PA_GOOGLE_PROJECT_ID='lateral-avatar-205714'
export PA_GOOGLE_USAGE_REPORT_SPREADSHEET_ID='1zB67I1MaWo8Ohw4A-yZNHbY0A9nrA1NifhdueTLUBMg'
export PA_GOOGLE_USAGE_REPORT_GROUP_IDS='{"User data Lifetime": "1969769902", "User data Last 7 days": "262285918", "User data Last 24 hours": "1492159954", "Videos Stats Lifetime": "2079750882", "Videos Stats Last 7 days": "293576976", "Videos Stats Last 24 hrs": "920797104", "Tags Used": "1756942354", "Community data": "1732462944"}'
export PA_GOOGLE_CLIENT_SECRET='PrH4JMqKzPo2ZJZL9c8TWFhf'
export PA_GOOGLE_CLIENT_ID='82182934708-tt5qs2hbrndc1r5k7ja4cd2vvo44uuf0.apps.googleusercontent.com'
export PA_USER_DATA_LOCAL_FILE_PATH='./userData.csv';
export PA_USER_DATA_S3_FILE_PATH='testFolder/userData.csv';
export PA_CHANNEL_DATA_LOCAL_FILE_PATH='./channelData.csv';
export PA_CHANNEL_DATA_S3_FILE_PATH='testFolder/channelData.csv';
export PA_RECORDING_DATA_LOCAL_FOLDER='/tmp';
# Video pixel data file path.
export PA_VIDEO_PIXEL_DATA_S3_FILE_PATH='redshift/full_video_watched_by_devices.csv'
export PA_REPLY_PIXEL_DATA_S3_FILE_PATH='redshift/full_reply_watched_by_devices.csv'
export PA_VIDEO_PIXEL_DATA_APP_FILE_PATH='.'
export PA_REPLY_PIXEL_DATA_APP_FILE_PATH='.'
# Tracker related constants.
export PA_TRACKER_ENDPOINT='https://px.pepo.com/devp101_pixel.png'
# Apple constants
export PA_APPLE_CLIENT_ID='com.pepo.staging'
export PA_APPLE_TEAM_ID='N83K86W6P4'
export PA_APPLE_KEY_IDENTIFIER='2P3PRWRQGT'
export PA_APPLE_PRIVATE_KEY='-----BEGIN%20PRIVATE%20KEY-----%0AMIGTAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBHkwdwIBAQQg16k4h4bCtLDUDEIq%0A8Y/2KEWbueEjZqcdDko24dssmjmgCgYIKoZIzj0DAQehRANCAAQXtk9pu4XbH43k%0Apv51c2iuqqEt2d7NwNmMwgstzXIcAmh5sDgQ0apTUJQCgUmNA1KZOiNa2iNvfGD1%0AqPlhU891%0A-----END%20PRIVATE%20KEY-----'
export PA_APPLE_WEB_SERVICE_ID='com.pepo.staging.signin'
# Github constants.
export PA_GITHUB_CLIENT_ID='10ca594072962f391504'
export PA_GITHUB_CLIENT_SECRET='acf9f7c951f034566dcdc1b403ecf1c55429caf1'
# Zoom constants
export PA_ZOOM_JWT_API_KEY='6aPqTOazSZ6MEoPKmGRKhg'
export PA_ZOOM_JWT_API_SECRET='nHpKoYEhiLKP5JCLjNECxvC23N0DXGOcVr2m'
export PA_ZOOM_ACCOUNT_ID='RZ-SAqeASdic8BkW4xxkJA'
export PA_ZOOM_WEBHOOK_VERIFICATION_TOKEN='R_T4jOe3QEmMlCZhMWNlGQ'