mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-19 18:17:37 +03:00
Add the new Gateway/Relay and make them act in HTTPS
This commit is contained in:
parent
8bffbe91fa
commit
97ed7ad101
@ -6,10 +6,12 @@ var updateInterval = 60000,
|
||||
relayBottlePort = 9090,
|
||||
|
||||
gateways = [
|
||||
'eddn.edcd.io',
|
||||
'eddn-gateway.elite-markets.net'
|
||||
], // Must find a way to bind them to monitor
|
||||
|
||||
relays = [
|
||||
'eddn.edcd.io',
|
||||
'eddn-relay.elite-markets.net'
|
||||
]; // Must find a way to bind them to monitor
|
||||
|
||||
@ -539,7 +541,7 @@ var start = function(){
|
||||
gateway = gateway.replace(':8500', '');
|
||||
|
||||
$("select[name=gateways]").append($('<option>', {
|
||||
value: 'http://' + gateway + ':' + gatewayBottlePort + '/stats/',
|
||||
value: 'https://' + gateway + ':' + gatewayBottlePort + '/stats/',
|
||||
text : gateway
|
||||
}));
|
||||
|
||||
@ -586,7 +588,7 @@ var start = function(){
|
||||
//relays = relays.sort();
|
||||
$.each(relays, function(k, relay){
|
||||
$("select[name=relays]").append($('<option>', {
|
||||
value: 'http://' + relay + ':' + relayBottlePort + '/stats/',
|
||||
value: 'https://' + relay + ':' + relayBottlePort + '/stats/',
|
||||
text : relay
|
||||
}));
|
||||
|
||||
|
@ -213,8 +213,13 @@ class MalformedUploadError(Exception):
|
||||
def main():
|
||||
loadConfig()
|
||||
configure()
|
||||
run(host=Settings.GATEWAY_HTTP_BIND_ADDRESS, port=Settings.GATEWAY_HTTP_PORT, server='gevent')
|
||||
|
||||
run(
|
||||
host=Settings.GATEWAY_HTTP_BIND_ADDRESS,
|
||||
port=Settings.GATEWAY_HTTP_PORT,
|
||||
server='gevent',
|
||||
certfile='/etc/letsencrypt/live/eddn.edcd.io/fullchain.pem',
|
||||
keyfile='/etc/letsencrypt/live/eddn.edcd.io/privkey.pem'
|
||||
)
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
@ -111,7 +111,13 @@ def main():
|
||||
loadConfig()
|
||||
r = Relay()
|
||||
r.start()
|
||||
bottle_run(host='0.0.0.0', port=9090, server='gevent')
|
||||
bottle_run(
|
||||
host='0.0.0.0',
|
||||
port=9090,
|
||||
server='gevent',
|
||||
certfile='/etc/letsencrypt/live/eddn.edcd.io/fullchain.pem',
|
||||
keyfile='/etc/letsencrypt/live/eddn.edcd.io/privkey.pem'
|
||||
)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
@ -13,7 +13,7 @@ class _Settings(object):
|
||||
# Relay settings
|
||||
###############################################################################
|
||||
|
||||
RELAY_RECEIVER_BINDINGS = ["tcp://eddn-gateway.elite-markets.net:8500"]
|
||||
RELAY_RECEIVER_BINDINGS = ["tcp://eddn.edcd.io:8500", "tcp://eddn-gateway.elite-markets.net:8500"]
|
||||
|
||||
RELAY_SENDER_BINDINGS = ["tcp://*:9500"]
|
||||
|
||||
@ -70,9 +70,9 @@ class _Settings(object):
|
||||
# Monitor settings
|
||||
###############################################################################
|
||||
|
||||
MONITOR_RECEIVER_BINDINGS = ["tcp://eddn-gateway.elite-markets.net:8500"]
|
||||
MONITOR_RECEIVER_BINDINGS = ["tcp://eddn.edcd.io:8500", "tcp://eddn-gateway.elite-markets.net:8500"]
|
||||
|
||||
MONITOR_DB = "/opt/eddn/EDDN_Monitor.s3db"
|
||||
MONITOR_DB = "/home/EDDN_Monitor.s3db"
|
||||
|
||||
MONITOR_DECOMPRESS_MESSAGES = True
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user