-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy path.env.example
More file actions
146 lines (114 loc) · 4.13 KB
/
.env.example
File metadata and controls
146 lines (114 loc) · 4.13 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
139
140
141
142
143
144
145
146
# AWS account credentials
AWS_ACCESS_KEY_ID=stockup
AWS_SECRET_ACCESS_KEY=stockup.123
##
# A seed file contains information to populate the database. It contains:
# - roles, usernames, passwords
# - integration tokens gained via a successful oauth handshake,
# used to communicate with a point-of-sale (Vend) on behalf of retailers
# - suppliers, outlets
# - anything and everything which we cannot add via a UI for onboarding warehouse users
##
# location of the seed file
AWS_BUCKET=stockup
AWS_DEFAULT_REGION=us-west-2
AWS_KEY=shoppinpal.123
AWS_SES_REGION=us-west-2
AWS_S3_REGION=us-west-2
AWS_S3_CSV_REPORTS_BUCKET=stockup-csv-reports
AWS_S3_REORDER_POINTS_MULTIPLIERS_BUCKET=stockup-reorder-points
##
# Warehouse sends jobs/payloads to a queue so that a worker may pick them up and finish them off.
# There are many technologies that can provide a queue implementation: SQS, RabbitMQ, redis, etc.
##
# location of the queue and credentials to access it
AWS_SQS_ACCESS_KEY_ID=stockup
AWS_SQS_REGION=us-west-2
AWS_SQS_SECRET_ACCESS_KEY=stockup
AWS_SQS_URL=http://sqs.us-west-2.goaws:4100/100010001000/local-queue1
AWS_SQS_URL_2=http://sqs.us-west-2.goaws:4100/100010001000/local-queue2
##
# Each worker takes care of a different task.
# Sometimes workers are renamed, so in order to avoid code changes,
# those worker names can be configured here, instead.
##
# DO NOT TOUCH - unless you are a developer
GENERATE_STOCK_ORDER_WORKER=generateStockOrderSeriallyWithPaging
GENERATE_SALES=generateSales
IMPORT_STOCK_ORDER_TO_POS=addProductsToVendConsignment
IMPORT_STOCK_ORDER_TO_WAREHOUSE=importStockOrderUsingCache
IMPORT_STOCK_ORDER_TO_WAREHOUSE_WITHOUT_SUPPLIER=importStockOrderUsingCacheWithoutSupplier
REMOVE_UNFULFILLED_PRODUCTS_WORKER=removeUnfulfilledProductsFromStockOrder
REMOVE_UNRECEIVED_PRODUCTS_WORKER=removeUnreceivedProductsFromStockOrder
STOCK_ORDER_WORKER=generateStockOrder
FIND_DIFFERENTIAL_VEND_DATA_WORKER=findDifferentialVendData
# valid values are local or staging or production
NODE_ENV=local
# TODO: explain
SCHEME=http
##
# Whomever is running warehouse, needs to be identified as a unique player by the point-of-sale (Vend)
# To get these, you can:
# - Register as a developer or Sign In: https://developers.vendhq.com/
# - View or Add Application
# - https://developers.vendhq.com/developer/applications
##
# your identification credentials given by Vend
VEND_CLIENT_ID=
VEND_CLIENT_SECRET=
VEND_AUTHORIZATION_URL=https://secure.vendhq.com/connect
VEND_TOKEN_SERVICE=.vendhq.com/api/1.0/token
##
# MS Dynamics 365 oAuth variables
# https://docs.microsoft.com/en-gb/azure/active-directory/develop/v1-protocols-oauth-code
# Remember to replace
##
MSDYNAMICS_AUTHORIZATION_URL=
MSDYNAMICS_TOKEN_URL=
MSDYNAMICS_CLIENT_ID=
MSDYNAMICS_CLIENT_SECRET=
MSDYNAMICS_RESOURCE_URL=
##
# To accommodate redirects, the code needs to know the external facing URL (FQDN or IP)
##
VM_EXTERNAL_IP=localhost
##
# Warehouse has evolved over time to work with different Queue and Worker infrastructures:
# - IronWorker by iron.io
# - SQS by Amazon Web Services
#
# It moved across various solutions due trade-offs between:
# - cost/resources
# - stability
# - high or low devops involvement
# - ease-of-support
##
# DO NOT TOUCH - unless you are a developer
WORKER_TYPE=AWS
MONGOLAB_URL=mongodb://db:27017/warehouse-local
MONGOLAB_URI=mongodb://db:27017/warehouse-local
SP_PRETTY_PRINT=true
VERIFICATION_EMAIL=
MSSQL_USER=sa
MSSQL_PASSWORD=Abc@138#safj
MSSQL_SERVER=mssql
NOTIFICATION_HOST=lb
#NOTIFICATION_PORT=
NOTIFICATION_PROTOCOL=http
NOTIFICATION_PATH=notification/publish
#SLACK_NOTIFICATION_URL=
#MINIO ENDPOINT
S3_ENDPOINT=http://minio.stockup.localdomain:9000
##
# Sentry error tracking DSNs
# Get these from your Sentry dashboard: https://sentry.io/
##
# Sentry DSN for web server and notification service
#STOCKUP_SENTRY_WEB_AND_NOTIFICATION_DNS=
# Sentry DSN for SQS worker (v2)
#STOCKUP_SENTRY_WORKER_V2_DNS=
# Sentry DSN for sync worker (v3)
#STOCKUP_SENTRY_WORKER_V3_DNS=
# Sentry DSN for sync alerts (stuck syncs) - separate webhook for monitoring
# This is optional. If not set, stuck sync alerts will be logged but not sent to Sentry.
#STOCKUP_SENTRY_SYNC_ALERTS_DNS=