All Downloads are FREE. Search and download functionalities are using the official Maven repository.

onweb-kotlin.lionweb-kotlin-2024.1-repo-client-testing.0.2.6.source-code.config-gen.py Maven / Gradle / Ivy

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