Skip to content

Commit

Permalink
feat: 简化设置,不允许修改监听端口
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxi committed Dec 26, 2024
1 parent dd80378 commit 24218ba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ RUN touch /app/.dockerenv

COPY supervisor.conf /etc/supervisor.conf

ENV XIAOMUSIC_HOSTNAME=192.168.2.5
ENV XIAOMUSIC_PORT=8090
VOLUME /app/conf
VOLUME /app/music
EXPOSE 8090
Expand Down
16 changes: 7 additions & 9 deletions xiaomusic/static/default/setting.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,23 +50,21 @@ <h2>小爱音箱设置面板
<label for="password">*小米密码:</label>
<input id="password" type="password" placeholder="填写小米登录密码" />

<label for="hostname">*XIAOMUSIC_HOSTNAME(IP或域名):</label>
<label for="hostname">*XIAOMUSIC_HOSTNAME(NAS的IP或域名):</label>
<input id="hostname" type="text" />

<label for="public_port">*本地端口(0表示跟容器端口一致):</label>
<input id="public_port" type="number" value="0" />
</div>
<hr>

<div class="rows">
<label for="verbose">是否开启调试日志:</label>
<select id="verbose">
<option value="true" selected>true</option>
<option value="false">false</option>
<option value="true">true</option>
<option value="false" selected>false</option>
</select>

<label for="port">监听端口(修改后需要重启):</label>
<input id="port" type="number" value="8090" />

<label for="public_port">外网访问端口(0表示跟监听端口一致):</label>
<input id="public_port" type="number" value="0" />

<label for="group_list">设备分组配置:<a href="https://github.com/hanxi/xiaomusic/issues/65#issuecomment-2215736529" target="_blank">文档</a></label>
<input id="group_list" type="text" placeholder="did1:组名1,did2:组名1,did3:组名2" />

Expand Down

0 comments on commit 24218ba

Please sign in to comment.