docker: fix data persistence with TINYWEB_DATA_DIR env var
This commit is contained in:
parent
af6ad6d391
commit
71c1175df8
4 changed files with 4 additions and 5 deletions
2
app.py
2
app.py
|
|
@ -16,7 +16,7 @@ from gateway import GatewayState, GatewayHandler
|
|||
IDENTITY_FILE = "tinyweb_identity"
|
||||
DEFAULT_TRANSPORT_HOST = "rnode.bre.land"
|
||||
DEFAULT_TRANSPORT_PORT = 4242
|
||||
DATA_DIR = os.path.expanduser("~/.tinyweb")
|
||||
DATA_DIR = os.environ.get("TINYWEB_DATA_DIR") or os.path.expanduser("~/.tinyweb")
|
||||
|
||||
|
||||
def get_transport_config():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue