Skip to content

Commit

Permalink
Updated to 5.31
Browse files Browse the repository at this point in the history
  • Loading branch information
martastain committed Oct 21, 2020
1 parent fc6912f commit e067b69
Show file tree
Hide file tree
Showing 67 changed files with 542 additions and 2,265 deletions.
36 changes: 25 additions & 11 deletions cli/l.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,31 @@ def listen():
socket.SO_REUSEADDR,
1
)
sock.bind(("0.0.0.0", int(config["seismic_port"])))
sock.setsockopt(
socket.IPPROTO_IP,
socket.IP_MULTICAST_TTL,
255
)
sock.setsockopt(
socket.IPPROTO_IP,
socket.IP_ADD_MEMBERSHIP,
socket.inet_aton(config["seismic_addr"]) + socket.inet_aton("0.0.0.0")
)

try:
firstoctet = int(config["seismic_addr"].split(".")[0])
is_multicast = firstoctet >= 224
except ValueError:
is_multicast = False

if is_multicast:
logging.info("Starting multicast listener {}:{}".format(config["seismic_addr"], config["seismic_port"]))
sock.bind(("0.0.0.0", int(config["seismic_port"])))
sock.setsockopt(
socket.IPPROTO_IP,
socket.IP_MULTICAST_TTL,
255
)
sock.setsockopt(
socket.IPPROTO_IP,
socket.IP_ADD_MEMBERSHIP,
socket.inet_aton(config["seismic_addr"]) + socket.inet_aton("0.0.0.0")
)
else:
logging.info("Starting unicast listener {}:{}".format(config["seismic_addr"], config["seismic_port"]))
sock.bind((config["seismic_addr"], int(config["seismic_port"])))


sock.settimeout(1)

while True:
Expand Down
25 changes: 15 additions & 10 deletions hub/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,19 @@


SITE_CSS = [
"https://static.nebulabroadcast.com/nebula/css/nebula.css",
"/static/css/nebula.css",
"/static/css/gijgo-core.css",
"/static/css/gijgo-datepicker.css",
]

SITE_JS = [
"https://static.nebulabroadcast.com/nebula/js/vendor/jquery.min.js",
"https://static.nebulabroadcast.com/nebula/js/vendor/popper.min.js",
"https://static.nebulabroadcast.com/nebula/js/vendor/bootstrap.min.js",
"https://static.nebulabroadcast.com/nebula/js/vendor/bootstrap-select.min.js",
"https://static.nebulabroadcast.com/nebula/js/vendor/gijgo.min.js",
"https://static.nebulabroadcast.com/nebula/js/vendor/inputmask.min.js",
"/static/js/vendor/jquery.min.js",
"/static/js/vendor/bootstrap.bundle.min.js",
"/static/js/vendor/bootstrap-select.min.js",
"/static/js/vendor/gijgo-core.js",
"/static/js/vendor/gijgo-datepicker.js",
"/static/js/vendor/jquery.inputmask.min.js",

"/static/js/common.js"
]

Expand Down Expand Up @@ -76,13 +79,15 @@ def user_context_helper(meta):

static_dir = config.get(
"hub_static_dir",
os.path.join(config["nebula_root"], "hub", "static")
os.path.join(config["nebula_root"], "vendor", "nebula-hub", "dist", "static")
)
templates_dir = config.get(
"hub_templates_dir",
os.path.join(config["nebula_root"], "hub", "templates")
os.path.join(config["nebula_root"], "vendor", "nebula-hub", "dist", "templates")
)

default_sessions_dir = os.path.join("/tmp", config["site_name"] + "-sessions")

hub_config = {
"host" : config.get("hub_host", "0.0.0.0"),
"port" : config.get("hub_port", 8080),
Expand All @@ -92,7 +97,7 @@ def user_context_helper(meta):
"site_context_helper" : site_context_helper,
"page_context_helper" : page_context_helper,
"user_context_helper" : user_context_helper,
"sessions_dir" : os.path.join("/tmp", config["site_name"] + "-sessions"),
"sessions_dir" : config.get("hub_sessions_dir", default_sessions_dir),
"sessions_timeout" : 60*24*120,
"hash_salt" : config.get("hash_salt", "nebulaissalty"),
"blocking" : True,
Expand Down
Binary file removed hub/static/img/android-chrome-192x192.png
Binary file not shown.
Binary file removed hub/static/img/android-chrome-512x512.png
Binary file not shown.
Binary file removed hub/static/img/apple-touch-icon.png
Binary file not shown.
9 changes: 0 additions & 9 deletions hub/static/img/browserconfig.xml

This file was deleted.

Binary file removed hub/static/img/favicon-16x16.png
Binary file not shown.
Binary file removed hub/static/img/favicon-32x32.png
Binary file not shown.
Binary file removed hub/static/img/favicon.ico
Binary file not shown.
228 changes: 0 additions & 228 deletions hub/static/img/logo-wide.svg

This file was deleted.

27 changes: 0 additions & 27 deletions hub/static/img/safari-pinned-tab.svg

This file was deleted.

42 changes: 0 additions & 42 deletions hub/static/js/assets.js

This file was deleted.

51 changes: 0 additions & 51 deletions hub/static/js/common.js

This file was deleted.

98 changes: 0 additions & 98 deletions hub/static/js/detail.js

This file was deleted.

Loading

0 comments on commit e067b69

Please sign in to comment.