jakobsn 6 лет назад
Сommit
ceebea2b10
4 измененных файлов: 21 добавлений и 0 удалений
  1. +1
    -0
      .gitignore
  2. +8
    -0
      README.md
  3. +1
    -0
      requirements.txt
  4. +11
    -0
      vulnapp.py

+ 1
- 0
.gitignore Просмотреть файл

@@ -0,0 +1 @@
__pycache__

+ 8
- 0
README.md Просмотреть файл

@@ -0,0 +1,8 @@
INSTALL

pip install -r requirements.txt

RUN

gunicorn --workers=2 vulnapp

+ 1
- 0
requirements.txt Просмотреть файл

@@ -0,0 +1 @@
gunicorn==19.9.0

+ 11
- 0
vulnapp.py Просмотреть файл

@@ -0,0 +1,11 @@
def application(environ, start_response):
"""Simplest possible application object"""
data = str.encode('Hello, World!\n')
status = '200 OK'
response_headers = [
('Content-type','text/plain'),
('Content-Length', str(len(data)))
]
start_response(status, response_headers)
return iter([data])


Загрузка…
Отмена
Сохранить