mirror of
https://github.com/pablorevilla-meshtastic/meshview.git
synced 2026-03-04 23:27:46 +01:00
* Add alembic DB schema management (#86) * Use alembic * add creation helper * example migration tool * Store UTC int time in DB (#81) * use UTC int time * Remove old index notes script -- no longer needed * modify alembic to support cleaner migrations * add /version json endpoint * move technical docs * remove old migrate script * add readme in docs: * more doc tidy * rm * update api docs * ignore other database files * health endpoint * alembic log format * break out api calls in to their own file to reduce footprint * ruff and docs * vuln * Improves arguments in mvrun.py * Set dbcleanup.log location configurable * mvrun work * fallback if missing config * remove unused loop * improve migrations and fix logging problem with mqtt * Container using slim/uv * auto build containers * symlink * fix symlink * checkout and containerfile * make /app owned by ap0p * Traceroute Return Path logged and displayed (#97) * traceroute returns are now logged and /packetlist now graphs the correct data for a return route * now using alembic to update schema * HOWTO - Alembic --------- Co-authored-by: Joel Krauska <jkrauska@gmail.com> * DB Backups * backups and cleanups are different * ruff * Docker Docs * setup-dev * graphviz for dot in Container * Summary of 3.0.0 stuff * Alembic was blocking mqtt logs * Add us first/last timestamps to node table too * Worked on /api/packet. Needed to modify - Store.py to read the new time data - api.py to present the new time data - firehose.html chat.html and map.html now use the new apis and the time is the browser local time * Worked on /api/packet. Needed to modify - Store.py to read the new time data - api.py to present the new time data - firehose.html chat.html and map.html now use the new apis and the time is the browser local time * Improves container build (#94) * Worked on /api/packet. Needed to modify - Store.py to read the new time data - api.py to present the new time data - firehose.html chat.html and map.html now use the new apis and the time is the browser local time * Worked on /api/packet. Needed to modify - Store.py to read the new time data - api.py to present the new time data - firehose.html chat.html and map.html now use the new apis and the time is the browser local time * Worked on /api/packet. Needed to modify - Added new api endpoint /api/packets_seen - Modified web.py and store.py to support changes to APIs. - Started to work on new_node.html and new_packet.html for presentation of data. * Worked on /api/packet. Needed to modify - Added new api endpoint /api/packets_seen - Modified web.py and store.py to support changes to APIs. - Started to work on new_node.html and new_packet.html for presentation of data. * Finishing up all the pages for the 3.0 release. Now all pages are functional. * Finishing up all the pages for the 3.0 release. Now all pages are functional. * fix ruff format * more ruff * Finishing up all the pages for the 3.0 release. Now all pages are functional. * Finishing up all the pages for the 3.0 release. Now all pages are functional. * pyproject.toml requirements * use sys.executable * fix 0 epoch dates in /chat * Make the robots do our bidding * another compatibility fix when _us is empty and we need to sort by BOTH old and new * Finishing up all the pages for the 3.0 release. Now all pages are functional. * Finishing up all the pages for the 3.0 release. Now all pages are functional. * Remamed new_node to node. shorter and descriptive. * Remamed new_node to node. shorter and descriptive. * Remamed new_node to node. shorter and descriptive. * Remamed new_node to node. shorter and descriptive. * Remamed new_node to node. shorter and descriptive. * Remamed new_node to node. shorter and descriptive. * More changes... almost ready for release. Ranamed 2 pages for easy or reading. * Fix the net page as it was not showing the date information * Fix the net page as it was not showing the date information * Fix the net page as it was not showing the date information * Fix the net page as it was not showing the date information * ruff --------- Co-authored-by: Óscar García Amor <ogarcia@connectical.com> Co-authored-by: Jim Schrempp <jschrempp@users.noreply.github.com> Co-authored-by: Pablo Revilla <pablorevilla@gmail.com>
123 lines
3.1 KiB
INI
123 lines
3.1 KiB
INI
# -------------------------
|
|
# Server Configuration
|
|
# -------------------------
|
|
[server]
|
|
# The address to bind the server to. Use * to listen on all interfaces.
|
|
bind = *
|
|
|
|
# Port to run the web server on.
|
|
port = 8081
|
|
|
|
# Path to TLS certificate (leave blank to disable HTTPS).
|
|
tls_cert =
|
|
|
|
# Path for the ACME challenge if using Let's Encrypt.
|
|
acme_challenge =
|
|
|
|
|
|
# -------------------------
|
|
# Site Appearance & Behavior
|
|
# -------------------------
|
|
[site]
|
|
# The domain name of your site.
|
|
domain =
|
|
|
|
# Select language
|
|
language = en
|
|
|
|
# Site title to show in the browser title bar and headers.
|
|
title = Bay Area Mesh
|
|
|
|
# A brief message shown on the homepage.
|
|
message = Real time data from around the bay area and beyond.
|
|
|
|
# Starting URL when loading the index page.
|
|
starting = /chat
|
|
|
|
# Enable or disable site features (as strings: "True" or "False").
|
|
nodes = True
|
|
conversations = True
|
|
everything = True
|
|
graphs = True
|
|
stats = True
|
|
net = True
|
|
map = True
|
|
top = True
|
|
|
|
# Map boundaries (used for the map view).
|
|
map_top_left_lat = 39
|
|
map_top_left_lon = -123
|
|
map_bottom_right_lat = 36
|
|
map_bottom_right_lon = -121
|
|
|
|
# Updates intervals in seconds, zero or negative number means no updates
|
|
# defaults will be 3 seconds
|
|
map_interval=3
|
|
firehose_interal=3
|
|
|
|
# Weekly net details
|
|
weekly_net_message = Weekly Mesh check-in. We will keep it open on every Wednesday from 5:00pm for checkins. The message format should be (LONG NAME) - (CITY YOU ARE IN) #BayMeshNet.
|
|
net_tag = #BayMeshNet
|
|
|
|
# -------------------------
|
|
# MQTT Broker Configuration
|
|
# -------------------------
|
|
[mqtt]
|
|
# MQTT server hostname or IP.
|
|
server = mqtt.bayme.sh
|
|
|
|
# Topics to subscribe to (as JSON-like list, but still a string).
|
|
topics = ["msh/US/bayarea/#", "msh/US/CA/mrymesh/#", "msh/US/CA/sacvalley"]
|
|
|
|
# Port used by MQTT (typically 1883 for unencrypted).
|
|
port = 1883
|
|
|
|
# MQTT username and password.
|
|
username = meshdev
|
|
password = large4cats
|
|
|
|
|
|
# -------------------------
|
|
# Database Configuration
|
|
# -------------------------
|
|
[database]
|
|
# SQLAlchemy connection string. This one uses SQLite with asyncio support.
|
|
connection_string = sqlite+aiosqlite:///packets.db
|
|
|
|
|
|
# -------------------------
|
|
# Database Cleanup Configuration
|
|
# -------------------------
|
|
[cleanup]
|
|
# Enable or disable daily cleanup
|
|
enabled = False
|
|
# Number of days to keep records in the database
|
|
days_to_keep = 14
|
|
# Time to run daily cleanup (24-hour format)
|
|
hour = 2
|
|
minute = 00
|
|
# Run VACUUM after cleanup
|
|
vacuum = False
|
|
|
|
# Enable database backups (independent of cleanup)
|
|
backup_enabled = False
|
|
# Directory to store database backups (relative or absolute path)
|
|
backup_dir = ./backups
|
|
# Time to run daily backup (24-hour format)
|
|
# If not specified, uses cleanup hour/minute
|
|
backup_hour = 2
|
|
backup_minute = 00
|
|
|
|
|
|
# -------------------------
|
|
# Logging Configuration
|
|
# -------------------------
|
|
[logging]
|
|
# Enable or disable HTTP access logs from the web server
|
|
# When disabled, request logs like "GET /api/chat" will not appear
|
|
# Application logs (errors, startup messages, etc.) are unaffected
|
|
# Set to True to enable, False to disable (default: False)
|
|
access_log = False
|
|
# Database cleanup logfile
|
|
db_cleanup_logfile = dbcleanup.log
|