Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
oee-services
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
harshavardhan.c
oee-services
Commits
f92042ef
Commit
f92042ef
authored
May 25, 2022
by
shreya.m
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
format
parent
53cdbc0e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
57 additions
and
0 deletions
+57
-0
.env
.env
+20
-0
app.py
app.py
+36
-0
conf/application.conf
conf/application.conf
+1
-0
data/keys/private
data/keys/private
+0
-0
data/keys/public
data/keys/public
+0
-0
No files found.
.env
0 → 100644
View file @
f92042ef
OEE_POSTGRES_URI=postgresql://postgres:postgres@192.168.0.220:5432/ilens_oee
MONGO_URI=mongodb://192.168.0.220:2717/
BASE_PATH=/data
MOUNT_DIR=/oee-services
MQTT_URL=192.168.0.220
MQTT_PORT=1883
APP_NAME=oee-services
KAFKA_HOST=192.168.0.220
KAFKA_PORT=9092
KAFKA_TOPIC=ilens_dev
KAFKA_HISTORY_OUTPUT_TOPIC=ilens_dev_backup
KAFKA_LICENSE_EXPIRY_TOPIC=ilens_expire
REDIS_URI=redis://192.168.0.220:6379
SW_DOCS_URL=/docs
SW_OPENAPI_URL=/openapi.json
DOWNTIME_DB_URI=postgresql://postgres:postgres@192.168.0.220:5432/downtime_db
EVENT_EXPLORER=http://192.168.0.220/csv_reader
METADATA_PROXY=http://192.168.0.220/ilens_api
DOWNTIME_PROXY=http://192.168.0.220/d_oee
DOWNTIME_URI=postgresql://postgres:postgres@192.168.0.220:5432/downtime_db
\ No newline at end of file
app.py
0 → 100644
View file @
f92042ef
if
__name__
==
'__main__'
:
from
dotenv
import
load_dotenv
load_dotenv
()
from
scripts.logging
import
logger
import
argparse
import
gc
import
uvicorn
from
scripts.config
import
Service
gc
.
collect
()
ap
=
argparse
.
ArgumentParser
()
if
__name__
==
"__main__"
:
ap
.
add_argument
(
"--port"
,
"-p"
,
required
=
False
,
default
=
Service
.
PORT
,
help
=
"Port to start the application."
,
)
ap
.
add_argument
(
"--bind"
,
"-b"
,
required
=
False
,
default
=
Service
.
HOST
,
help
=
"IP to start the application."
,
)
arguments
=
vars
(
ap
.
parse_args
())
logger
.
info
(
f
"App Starting at {arguments['bind']}:{arguments['port']}"
)
uvicorn
.
run
(
"main:app"
,
host
=
arguments
[
"bind"
],
port
=
int
(
arguments
[
"port"
]))
conf/application.conf
View file @
f92042ef
...
...
@@ -4,6 +4,7 @@
host
=
0
.
0
.
0
.
0
port
=
6869
workers
=
1
version_no
=
1
.
0
.
0
module_name
=$
APP_NAME
enable_traceback
=
True
secure_cookie
=$
SECURE_COOKIE
...
...
data/keys/private
0 → 100644
View file @
f92042ef
data/keys/public
0 → 100644
View file @
f92042ef
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment