diff --git a/.gitignore b/.gitignore index ec156a9..ea1169a 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ dist/ .tox *.egg-info *.swp +.vscode/ diff --git a/Dockerfile b/Dockerfile index 681bcd7..541f4cd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,10 @@ FROM ubuntu:18.04 +LABEL name="httpbin" +LABEL version="0.9.0" +LABEL description="A simple HTTP service." +LABEL org.kennethreitz.vendor="Kenneth Reitz" + RUN apt update -y && apt install python3-pip -y EXPOSE 80 diff --git a/httpbin/core.py b/httpbin/core.py index 0a00a82..fe100f0 100644 --- a/httpbin/core.py +++ b/httpbin/core.py @@ -83,8 +83,7 @@ template = { "host": "httpbin.org", # overrides localhost:5000 "basePath": "/", # base bash for blueprint registration "schemes": [ - "https", - "http" + "https" ], 'protocol': 'https', 'tags': [ diff --git a/httpbin/templates/index.html b/httpbin/templates/index.html index 7fbae03..0348536 100644 --- a/httpbin/templates/index.html +++ b/httpbin/templates/index.html @@ -1,70 +1,251 @@ + httpbin(1): HTTP Client Testing Service - - - + + + -{% include 'httpbin.1.html' %} - -{% if tracking_enabled %} - {% include 'trackingscripts.html' %} -{% endif %} + {% include 'httpbin.1.html' %} {% if tracking_enabled %} {% include 'trackingscripts.html' %} {% endif %} + diff --git a/now.json b/now.json index 0967ef4..26fd17f 100644 --- a/now.json +++ b/now.json @@ -1 +1,10 @@ -{} +{ + "name": "httpbin", + "regions": [ + "all" + ], + "alias": [ + "httpbin.org" + ], + "type": "docker" +}