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
1d92de52
Commit
1d92de52
authored
Jul 29, 2020
by
Alexander Lercher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Secured role-stage with ssl
parent
50587721
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
2 deletions
+15
-2
swagger.yml
...role-stage-discovery-microservice/app/configs/swagger.yml
+1
-1
main.py
src/data-hub/role-stage-discovery-microservice/app/main.py
+5
-1
requirements.txt
...ub/role-stage-discovery-microservice/app/requirements.txt
+1
-0
deployment.yml
...le-stage-discovery-microservice/deployment/deployment.yml
+8
-0
No files found.
src/data-hub/role-stage-discovery-microservice/app/configs/swagger.yml
View file @
1d92de52
...
...
@@ -6,7 +6,7 @@ info:
# Import security definitions from global security definition
securityDefinitions
:
$ref
:
'
../
../../../modules/
security/security.yml#securityDefinitions'
$ref
:
'
../security/security.yml#securityDefinitions'
consumes
:
-
"
application/json"
...
...
src/data-hub/role-stage-discovery-microservice/app/main.py
View file @
1d92de52
...
...
@@ -26,7 +26,11 @@ def api_root():
return
'Endpoint of role-stage-discovery-microservice!'
# 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__'
:
...
...
src/data-hub/role-stage-discovery-microservice/app/requirements.txt
View file @
1d92de52
...
...
@@ -39,6 +39,7 @@ requests==2.22.0
rope==0.16.0
scikit-learn==0.22.1
scipy==1.4.1
semver==2.10.2
six==1.14.0
swagger-ui-bundle==0.0.6
typed-ast==1.4.1
...
...
src/data-hub/role-stage-discovery-microservice/deployment/deployment.yml
View file @
1d92de52
...
...
@@ -32,6 +32,14 @@ spec:
image
:
alexx882/role-stage-discovery-microservice
ports
:
-
containerPort
:
5000
volumeMounts
:
-
mountPath
:
/srv/articonf
name
:
articonf
volumes
:
-
name
:
articonf
hostPath
:
path
:
/srv/articonf
type
:
Directory
---
apiVersion
:
v1
kind
:
Service
...
...
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