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
e5f49a14
Commit
e5f49a14
authored
Jul 20, 2020
by
Alexander Lercher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Welcome page for SMART
Used on ports :80 and :443.
parent
7ca4a448
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
70 additions
and
0 deletions
+70
-0
Dockerfile
tools/welcome-page/Dockerfile
+20
-0
main.py
tools/welcome-page/main.py
+9
-0
requirements.txt
tools/welcome-page/requirements.txt
+1
-0
index.html
tools/welcome-page/templates/index.html
+40
-0
No files found.
tools/welcome-page/Dockerfile
0 → 100644
View file @
e5f49a14
FROM
python:3
LABEL
maintainer="Alexander Lercher"
ENV
http_proxy http://proxy.uni-klu.ac.at:3128/
ENV
https_proxy http://proxy.uni-klu.ac.at:3128/
RUN
apt-get update
EXPOSE
5000
WORKDIR
/app
COPY
requirements.txt /app/
RUN
pip
install
-r
requirements.txt
COPY
main.py /app/
COPY
templates/ /app/templates/
RUN
chmod
a+x main.py
CMD
["python", "./main.py"]
\ No newline at end of file
tools/welcome-page/main.py
0 → 100644
View file @
e5f49a14
from
flask
import
Flask
,
render_template
app
=
Flask
(
__name__
)
@
app
.
route
(
'/'
)
def
hello_world
():
return
render_template
(
'index.html'
)
app
.
run
(
host
=
'0.0.0.0'
,
port
=
5000
,
debug
=
True
)
\ No newline at end of file
tools/welcome-page/requirements.txt
0 → 100644
View file @
e5f49a14
flask
\ No newline at end of file
tools/welcome-page/templates/index.html
0 → 100644
View file @
e5f49a14
<html>
<head>
<style>
html
{
display
:
flex
;
margin
:
auto
;
}
body
{
max-width
:
700px
;
margin
:
auto
;
display
:
table-cell
;
vertical-align
:
middle
;
}
h1
{
justify-content
:
center
;
text-align
:
center
;
}
img
{
display
:
block
;
margin-left
:
auto
;
margin-right
:
auto
;
}
</style>
</head>
<body>
<a
href=
"https://articonf.eu/"
>
<img
src=
"https://articonf.eu/wp-content/uploads/2019/03/articonf-logo-.png"
alt=
"ARTICONF"
width=
"60%"
></img>
</a>
<br
/><br
/><br
/>
<h1
>
Welcome to ARTICONF's SMART tool!
</h1>
<!-- This page is used for SSL certification -->
</body>
</html>
\ No newline at end of file
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