支持可配置反代HTTPS端口并统一管理与重置入口
This commit is contained in:
1 parent
b2b8951bcf
commit
54b19a19f8
23 files changed
+268
-50
No files matched your search
@@ -365,7 +365,7 @@ export function useDashboard() {
|
||||
|
||||
function createEmptySettingsForm() {
|
||||
return {
|
||||
server: { host: "", port: 5200, https_mode: "direct" },
|
||||
server: { host: "", port: 5200, https_mode: "direct", proxy_https_port: 0 },
|
||||
web: { enabled: true, hostname: "", public_ip: "" },
|
||||
paths: { certificate: "" },
|
||||
acme: {
|
||||
|
||||
@@ -439,6 +439,10 @@ const {
|
||||
</div>
|
||||
<div class="form-grid">
|
||||
<label class="field"><span>HTTPS 模式</span><select v-model="settingsForm.server.https_mode"><option value="direct">直接终止 HTTPS</option><option value="proxy">反向代理 HTTPS</option></select></label>
|
||||
<label v-if="settingsForm.server.https_mode === 'proxy'" class="field">
|
||||
<span>代理公开 HTTPS 端口(0 为默认 443)</span>
|
||||
<input v-model.number="settingsForm.server.proxy_https_port" type="number" min="0" max="65535" required />
|
||||
</label>
|
||||
<label class="field"><span>证书存储路径</span><input v-model="settingsForm.paths.certificate" required /></label>
|
||||
</div>
|
||||
<div class="form-grid">
|
||||
|
||||
Reference in new issue
Block a user