chore(gitlab/runner): try and fix the adversion runners apparently have to certificates

This commit is contained in:
Michele Cereda
2024-05-31 22:46:56 +02:00
parent 88e9e53562
commit a8d01c5ee4
11 changed files with 144 additions and 67 deletions

14
snippets/webserver.sh Normal file
View 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'