feat: 服务管理支持 HTTP/HTTPS 协议选择
- Service 增加 scheme 字段,build_url 按协议拼接地址 - 表单新增协议下拉;启动时自动迁移已有 SQLite 库 - 更新部署说明中的 HTTPS 服务添加示例 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -28,9 +28,16 @@
|
||||
<div class="errors">{{ form.name.errors[0] }}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="form-row">
|
||||
{{ form.scheme.label }}
|
||||
{{ form.scheme() }}
|
||||
{% if form.scheme.errors %}
|
||||
<div class="errors">{{ form.scheme.errors[0] }}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="form-row">
|
||||
{{ form.host.label }}
|
||||
{{ form.host(placeholder="例如 192.168.1.10 或 主机名") }}
|
||||
{{ form.host(placeholder="例如 192.168.1.10 或 api.example.com") }}
|
||||
{% if form.host.errors %}
|
||||
<div class="errors">{{ form.host.errors[0] }}</div>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user