FriedrichFroebel / brother_ql_web

A Python-based web service to print labels on Brother QL label printers. Based on brother_ql: https://github.com/pklaus/brother_ql
GNU General Public License v3.0
7 stars 3 forks source link

set path for host in config file #19

Open chrismaster opened 1 week ago

chrismaster commented 1 week ago

Is there a way to set the path for the host eg: now http://localhost:8013/labeldesigner with path http://localhost:8013/somepath/labeldesigner

the url labeldesigner does not care about the path, but the static files like css /static/css/bootstrap.min.css /static/css/bootstrap-icons.min.css /static/css/custom.css

FriedrichFroebel commented 1 week ago

No, there currently is no way to do so (and AFAIK has never been). But I understand that this might be desirable, as the static references might lead to conflicts otherwise when a setup with a reverse proxy or similar is used.

Feel free to submit a corresponding PR (with tests) to handle this.