jakobsn před 6 roky
revize
ceebea2b10
4 změnil soubory, kde provedl 21 přidání a 0 odebrání
  1. +1
    -0
      .gitignore
  2. +8
    -0
      README.md
  3. +1
    -0
      requirements.txt
  4. +11
    -0
      vulnapp.py

+ 1
- 0
.gitignore Zobrazit soubor

@@ -0,0 +1 @@
__pycache__

+ 8
- 0
README.md Zobrazit soubor

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

pip install -r requirements.txt

RUN

gunicorn --workers=2 vulnapp

+ 1
- 0
requirements.txt Zobrazit soubor

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

+ 11
- 0
vulnapp.py Zobrazit soubor

@@ -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])


Načítá se…
Zrušit
Uložit