Overview
Comment: | Add bin/element-web |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
1921733a2d756a69ee49cd7ad5b151a5 |
User & Date: | js on 2023-03-19 11:57:57 |
Other Links: | manifest | tags |
Context
2023-03-19
| ||
12:10 | Add LaunchAgent for Element Web check-in: 787cd2705a user: js tags: trunk | |
11:57 | Add bin/element-web check-in: 1921733a2d user: js tags: trunk | |
00:28 | Delete fish config as I didn't end up using it check-in: fbb025047b user: js tags: trunk | |
Changes
Added bin/element-web version [b3cd148fe7].
> > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #!/usr/bin/env python3 from http.server import HTTPServer, SimpleHTTPRequestHandler import os import socket import ssl class HTTPServer6(HTTPServer): address_family = socket.AF_INET6 class SilentSimpleHTTPRequestHandler(SimpleHTTPRequestHandler): def log_message(self, format, *args): pass os.chdir('/opt/pkg/share/element-web') httpd = HTTPServer6(('::1', 4443), SilentSimpleHTTPRequestHandler) httpd.socket = ssl.wrap_socket(httpd.socket, keyfile=os.path.expanduser("~/.local/share/element-web/key.pem"), certfile=os.path.expanduser("~/.local/share/element-web/cert.pem"), server_side=True) httpd.serve_forever() |