{"id":21437824,"url":"https://github.com/mkorthof/httpyd","last_synced_at":"2026-05-07T09:35:56.213Z","repository":{"id":114078641,"uuid":"137085079","full_name":"mkorthof/httpyd","owner":"mkorthof","description":"Python HTTPServer with CloudFlare support","archived":false,"fork":false,"pushed_at":"2021-04-28T20:43:19.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-24T07:09:27.519Z","etag":null,"topics":["cloudflare","daemon","httpd","httpd-server","python","ssl"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mkorthof.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-06-12T14:38:22.000Z","updated_at":"2021-04-28T20:43:21.000Z","dependencies_parsed_at":"2024-03-25T05:45:57.750Z","dependency_job_id":null,"html_url":"https://github.com/mkorthof/httpyd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mkorthof/httpyd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkorthof%2Fhttpyd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkorthof%2Fhttpyd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkorthof%2Fhttpyd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkorthof%2Fhttpyd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mkorthof","download_url":"https://codeload.github.com/mkorthof/httpyd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkorthof%2Fhttpyd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32731787,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloudflare","daemon","httpd","httpd-server","python","ssl"],"created_at":"2024-11-23T00:29:30.646Z","updated_at":"2026-05-07T09:35:56.208Z","avatar_url":"https://github.com/mkorthof.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# httpyd\nPython HTTPServer with CloudFlare support\n\n### http.server/SimpleHTTPServer with some extra's:\n\n- works with both Python 2 and 3\n- runs as \"hybrid\" Shell/Python script (in bg/daemonized)\n- uses CloudFlare headers to get client ip address\n- TLS/SSL\n\n#### Run:\nTo run as Shell/Bash script: `bash httpyd.sh` (or `./httpyd.sh`)\nIt will both print PID to stdout and write it to `/tmp/httpyd.pid`\n\nTo run using Python: `python -x httpyd.sh`\n(first line in script is a here-doc wrapper)\n\n### Stop:\n\n`pkill -SIGTERM -F /tmp/httpyd.pid`\n\n#### Options:\nOptions are set inside script: [0/1] to disable/enable\n```\nhttpd_cf = 1 # set 1 to use CloudFlare headers in log instead of client_address\nhttpd_addr = \"1.2.3.4\"\nhttpd_port = 443\nhttpd_ssl = 1\nhttpd_ssl_key = \"/etc/ssl/private/ssl-cert-domain.key\"\nhttpd_ssl_cert = \"/etc/ssl/certs/ssl-cert-domain.pem\"\nhttpd_dir = \"/var/www/vhost/domain.com/docs\"\nhttpd_thread = 1\nhttpd_log = \"/var/log/httpd_py.log\"\n```\n(to run as non root user you have to choose diff port/paths)\n\n\n#### Logging:\nIf headers `CF-Connecting-IP` (or `X-Forwarded-For`) is set it will be used instead as client address in log, `CF-IPCountry` is added at the end of each line:\n\n`1.2.3.4 - - [12/Jun/2018 09:09:08] \"GET / HTTP/1.1\" 200 - - \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36\" \"NL\"`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkorthof%2Fhttpyd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmkorthof%2Fhttpyd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkorthof%2Fhttpyd/lists"}