Add dash configuration for card-jitsu snow (#35)

* Remove `SNOWFLAKE_HOST` from docker compose file

* Update dash config template
This commit is contained in:
Levi 2024-06-19 05:30:54 +02:00 committed by GitHub
parent bb33fbd9ae
commit a55c8cd660
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 1 deletions

View File

@ -210,7 +210,7 @@ services:
networks:
- wand
ports:
- ${SNOWFLAKE_HOST}:${SNOWFLAKE_PORT}:${SNOWFLAKE_PORT}
- ${SNOWFLAKE_PORT}:${SNOWFLAKE_PORT}
env_file:
- .env
environment:

View File

@ -157,5 +157,17 @@ LOGIN_FAILURE_TIMER = 3600
LOGIN_FAILURE_LIMIT = 5
"""
Card-Jitsu Snow
---------------
CJS_HOST : str
External ip or domain of the Card-Jitsu Snow game server.
CJS_PORT : int
Port of the Card-Jitsu Snow game server.
"""
CJS_HOST = '{{ .Env.SNOWFLAKE_HOST }}'
CJS_PORT = {{ .Env.SNOWFLAKE_PORT }}
# For more configuration settings see
# https://sanic.readthedocs.io/en/latest/sanic/config.html#builtin-configuration-values