2022-09-06 01:40:46 +02:00
|
|
|
import socket
|
|
|
|
|
|
|
|
# https://stackoverflow.com/a/28950776
|
|
|
|
def get_ip():
|
|
|
|
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
|
|
|
s.settimeout(0)
|
|
|
|
try:
|
2022-11-15 15:03:37 +01:00
|
|
|
s.connect(("10.254.254.254", 1))
|
2022-09-06 01:40:46 +02:00
|
|
|
IP = s.getsockname()[0]
|
|
|
|
except Exception:
|
2022-11-15 15:03:37 +01:00
|
|
|
IP = "127.0.0.1"
|
2022-09-06 01:40:46 +02:00
|
|
|
finally:
|
|
|
|
s.close()
|
|
|
|
return IP
|
|
|
|
|
2022-11-15 15:03:37 +01:00
|
|
|
|
2022-09-06 01:40:46 +02:00
|
|
|
ip = get_ip()
|
2022-08-26 12:39:11 +02:00
|
|
|
port = 8000
|
|
|
|
services_prefix = "/core"
|
|
|
|
verbose_log = True
|
|
|
|
|
|
|
|
arcade = "Monkey Business"
|
|
|
|
paseli = 5730
|
|
|
|
maintenance_mode = False
|