Skip to content

Configuration

bartekl1 edited this page Jan 20, 2024 · 1 revision

The configuration should be saved in the configs.json file.

Key Type Required Default Description
debug bool ❌ No false Flask debug mode
host string ❌ No 127.0.0.1 The host from which you want the application to be accessible. Use 127.0.0.1 to make the application accessible only from localhost or 0.0.0.0 to make the application accessible from any host.
port integer ❌ No 5000 Port on which the application is running
remote_url string ✔ Yes ➖ No Meteo station URL
ttl integer ❌ No 0 Time in seconds for which readings should be cached.
google_site_verification string ❌ No ➖ No Google Search Console verification identifier
google_analytics string ❌ No ➖ No Google Analytics measurement identifier

Example configuration:

{
    "debug": true,
    "host": "0.0.0.0",
    "port": 80,
    "remote_url": "http://192.168.1.5:5000",
    "ttl": 600
}