mirror of
https://github.com/EDCD/EDDN.git
synced 2025-06-17 07:41:01 +03:00
conf/Settings: s/'/"/g; But not with black
We **do** want the special layout of the actual config defaults, so screw black!
This commit is contained in:
parent
7a6314cba8
commit
d87344459a
@ -16,8 +16,8 @@ class _Settings(object):
|
|||||||
# Local installation settings
|
# Local installation settings
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
CERT_FILE = '/etc/letsencrypt/live/eddn.edcd.io/fullchain.pem' # noqa: E221
|
CERT_FILE = "/etc/letsencrypt/live/eddn.edcd.io/fullchain.pem" # noqa: E221
|
||||||
KEY_FILE = '/etc/letsencrypt/live/eddn.edcd.io/privkey.pem' # noqa: E221
|
KEY_FILE = "/etc/letsencrypt/live/eddn.edcd.io/privkey.pem" # noqa: E221
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Relay settings
|
# Relay settings
|
||||||
@ -134,10 +134,10 @@ class _Settings(object):
|
|||||||
BOUNCER_HTTP_BIND_ADDRESS = "127.0.0.1" # noqa: E221
|
BOUNCER_HTTP_BIND_ADDRESS = "127.0.0.1" # noqa: E221
|
||||||
BOUNCER_HTTP_PORT = 8081 # noqa: E221
|
BOUNCER_HTTP_PORT = 8081 # noqa: E221
|
||||||
|
|
||||||
BOUNCER_LIVE_GATEWAY_URL = 'https://eddn.edcd.io:4430/upload/'
|
BOUNCER_LIVE_GATEWAY_URL = "https://eddn.edcd.io:4430/upload/"
|
||||||
|
|
||||||
def load_from(self, file_name: str) -> None:
|
def load_from(self, file_name: str) -> None:
|
||||||
f = open(file_name, 'r')
|
f = open(file_name, "r")
|
||||||
conf = simplejson.load(f)
|
conf = simplejson.load(f)
|
||||||
for key, value in conf.items():
|
for key, value in conf.items():
|
||||||
if key in dir(self):
|
if key in dir(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user