onweb-kotlin.lionweb-kotlin-2024.1-repo-client-testing.0.2.6.source-code.config-gen.py Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lionweb-kotlin-2024.1-repo-client-testing Show documentation
Show all versions of lionweb-kotlin-2024.1-repo-client-testing Show documentation
Client library to connect to the LionWeb Repository
The newest version!
import os
code = f"""{{
"server": {{
"serverPort": 3005,
"expectedToken": null
}},
"startup": {{
"createDatabase": true,
"createRepositories": [{{
"name": "default",
"history": false
}}
]
}},
"logging": {{
"request": "silent",
"database": "silent",
"express": "silent"
}},
"postgres": {{
"database": {{
"host": "{os.environ['PGHOST']}",
"user": "{os.environ['PGUSER']}",
"db": "{os.environ['PGDB']}",
"password": "{os.environ['PGPASSWORD']}",
"port": "{os.environ['PGPORT']}"
}},
"certificates": {{
"rootcert": null,
"rootcertcontent": null
}}
}}
}}
"""
with open("server-config.json", "w") as file:
file.write(code)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy