-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
591 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# MX Server | ||
VITE_TAILNUMBERS='tv-01 tv-02 tv-05 tv-06' # Space delimited | ||
VITE_WS_MX_URI=192.168.0.89 | ||
VITE_WS_MX_PORT=8888 | ||
VITE_WS_MX_PATH='/mx-dashboard' | ||
VITE_WS_MX_CONTROL_PATH='/mx-controller' | ||
VITE_WS_MX_SORTIE_PATH='/mx-sortie-state' | ||
|
||
# MSN Server | ||
VITE_SHOPS='bcd gccs iamd intel freq wx' # Space delimited | ||
VITE_WS_MSN_URI=192.168.0.89 | ||
VITE_WS_MSN_PORT=8889 | ||
VITE_WS_MSN_PATH='/msn-dashboard' | ||
VITE_WS_MSN_CONTROL_PATH='/msn-controller' |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env python | ||
|
||
# Inspired by https://gist.github.com/jtangelder/e445e9a7f5e31c220be6 | ||
# Python3 http.server for Single Page Application | ||
|
||
import urllib.parse | ||
import http.server | ||
import socketserver | ||
import re | ||
from pathlib import Path | ||
|
||
HOST = ('0.0.0.0', 80) | ||
pattern = re.compile('.png|.jpg|.jpeg|.js|.css|.ico|.gif|.svg', re.IGNORECASE) | ||
|
||
class Handler(http.server.SimpleHTTPRequestHandler): | ||
def do_GET(self): | ||
url_parts = urllib.parse.urlparse(self.path) | ||
request_file_path = Path(url_parts.path.strip("/")) | ||
|
||
ext = request_file_path.suffix | ||
if not request_file_path.is_file() and not pattern.match(ext): | ||
self.path = 'index.html' | ||
|
||
return http.server.SimpleHTTPRequestHandler.do_GET(self) | ||
|
||
httpd = socketserver.TCPServer(HOST, Handler) | ||
httpd.serve_forever() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.