Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SMART
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UNI-KLU
SMART
Commits
02ab9705
Commit
02ab9705
authored
Jul 30, 2020
by
Manuel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restGateway: changed certificate configuration
parent
e027a0c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
network_constants.py
src/modules/network_constants.py
+5
-4
main.py
src/rest-gateway/app/main.py
+5
-1
No files found.
src/modules/network_constants.py
View file @
02ab9705
...
...
@@ -24,7 +24,8 @@ ROLESTAGE_DISCOVERY_DB_PORT = 27017
## Rest Gateway
# REST_GATEWAY_HOSTNAME = 'rest-gateway'
REST_GATEWAY_HOSTNAME
=
'rest-gateway'
REST_GATEWAY_REST_PORT
=
80
REST_GATEWAY_DB_HOSTNAME
=
'rest-gateway-db'
REST_GATEWAY_DB_PORT
=
27017
\ No newline at end of file
# REST_GATEWAY_DB_HOSTNAME = 'rest-gateway-db'
REST_GATEWAY_HOSTNAME
=
'articonf1.itec.aau.at'
REST_GATEWAY_REST_PORT
=
30401
REST_GATEWAY_DB_HOSTNAME
=
'articonf1.itec.aau.at'
REST_GATEWAY_DB_PORT
=
30402
\ No newline at end of file
src/rest-gateway/app/main.py
View file @
02ab9705
...
...
@@ -31,7 +31,11 @@ def api_root():
return
'Endpoint of SMART RESTful API Gateway!'
# SSL configuration
context
=
(
f
'{modules_path}/certificate/articonf1.crt'
,
f
'{modules_path}/certificate/articonf1.key'
)
# certificate and key files
try
:
certificate_path
=
os
.
environ
[
'ARTICONF_CERTIFICATE_PATH'
]
except
KeyError
:
certificate_path
=
'/srv/articonf/'
context
=
(
os
.
path
.
normpath
(
f
'{certificate_path}/articonf1.crt'
),
os
.
path
.
normpath
(
f
'{certificate_path}/articonf1.key'
))
# certificate and key files
# start app
if
__name__
==
'__main__'
:
...
...
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