add webui
This commit is contained in:
22
config.example.ini
Normal file
22
config.example.ini
Normal file
@@ -0,0 +1,22 @@
|
||||
# HPGL Plotter – example config
|
||||
# Copy to config.ini and adjust. config.ini is gitignored.
|
||||
|
||||
[plotter]
|
||||
# Serial port (e.g. /dev/ttyUSB0 on Linux, COM3 on Windows)
|
||||
port = /dev/ttyUSB0
|
||||
# Baud rate (often 9600 for HPGL plotters)
|
||||
baudrate = 9600
|
||||
# Timeout in seconds when reading from plotter
|
||||
timeout = 15
|
||||
# Center program at origin before sending (True) or align to bottom-left (False)
|
||||
center_at_origin = false
|
||||
|
||||
[webui]
|
||||
# Host to bind (0.0.0.0 = all interfaces, for access from other devices)
|
||||
host = 0.0.0.0
|
||||
# Port for the web UI
|
||||
port = 5000
|
||||
# Max upload size in bytes (default 16 MB)
|
||||
max_upload_mb = 16
|
||||
# Secret key for Flask sessions; set a random string in production
|
||||
secret_key = change-me-in-production
|
||||
Reference in New Issue
Block a user