%# Shown once, right after a printer is added or gets a new token: the agent's token and how to run the agent %> <% redmine_url = "#{Setting.protocol}://#{Setting.host_name}".chomp('/') %>
<%= l(:field_qbo_labels_token) %>
<%= @printer.token %>
<%= l(:text_qbo_labels_compose_intro) %>
services:
label-agent:
build: https://github.com/rickbarrette/redmine_qbo_label_agent.git
restart: always
# Host networking lets the agent find the printer on the local network (Bonjour/mDNS)
network_mode: host
environment:
REDMINE_URL: <%= redmine_url %>
AGENT_TOKEN: <%= @printer.token %>
PRINTER_MODEL: QL-820NWB
# Optional: skip the network search and use this printer
# PRINTER: tcp://192.168.0.100
# DEBUG, INFO or WARNING
LOG_LEVEL: INFO
<%= l(:text_qbo_labels_compose_after) %>
<%= link_to l(:button_back), label_printers_path %>