mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
chore(gitlab/runner): try and fix the adversion runners apparently have to certificates
This commit is contained in:
14
snippets/webserver.sh
Normal file
14
snippets/webserver.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# sources:
|
||||
# - https://anvileight.com/blog/posts/simple-python-http-server/
|
||||
|
||||
# Quick 'n' dirty http-only web server
|
||||
# No TLS support
|
||||
python -m 'http.server'
|
||||
python -m 'http.server' '8080' --bind 'localhost' --directory '/files/to/serve' --protocol 'HTTP/1.1' --cgi
|
||||
|
||||
# Quick 'n' dirty web server
|
||||
# pip install --user 'twisted' 'pyopenssl'
|
||||
twistd -no web
|
||||
twistd -no web --path '/files/to/serve' --https '8443' --certificate 'server.pem' --privkey 'server.pem'
|
||||
Reference in New Issue
Block a user