Loading README.md +2 −0 Original line number Diff line number Diff line Loading @@ -56,6 +56,8 @@ does not support websockets, which are necessary for GraphQL subscriptions. Currently, it is not recommended to use **more than 1 worker**. An additional environment variable `HOST_ADDRESSES` must be set with a comma-separated list of allowed host addresses. ### Formatting with Black [Black](https://pypi.org/project/black/) is included in the poetry environment and configured appropriately. Loading ttxbackend/settings.py +2 −2 Original line number Diff line number Diff line Loading @@ -29,8 +29,8 @@ SECRET_KEY = "15x0%_1i(iklaolx6x5cfr)t)#o%gnldjf!hgf*mz94!9(pnv3" DEBUG = os.environ.get("INJECT_DEBUG") is not None ALLOWED_HOSTS = ["localhost", "127.0.0.1"] if host := os.environ.get("HOST_ADDRESS"): ALLOWED_HOSTS.append(host) if hosts := os.environ.get("HOST_ADDRESSES"): ALLOWED_HOSTS.extend(hosts.split(",")) CORS_ORIGIN_ALLOW_ALL = True Loading Loading
README.md +2 −0 Original line number Diff line number Diff line Loading @@ -56,6 +56,8 @@ does not support websockets, which are necessary for GraphQL subscriptions. Currently, it is not recommended to use **more than 1 worker**. An additional environment variable `HOST_ADDRESSES` must be set with a comma-separated list of allowed host addresses. ### Formatting with Black [Black](https://pypi.org/project/black/) is included in the poetry environment and configured appropriately. Loading
ttxbackend/settings.py +2 −2 Original line number Diff line number Diff line Loading @@ -29,8 +29,8 @@ SECRET_KEY = "15x0%_1i(iklaolx6x5cfr)t)#o%gnldjf!hgf*mz94!9(pnv3" DEBUG = os.environ.get("INJECT_DEBUG") is not None ALLOWED_HOSTS = ["localhost", "127.0.0.1"] if host := os.environ.get("HOST_ADDRESS"): ALLOWED_HOSTS.append(host) if hosts := os.environ.get("HOST_ADDRESSES"): ALLOWED_HOSTS.extend(hosts.split(",")) CORS_ORIGIN_ALLOW_ALL = True Loading