hotfix v0.4.2
This commit is contained in:
@@ -24,7 +24,7 @@ func Start(ctx context.Context) error {
|
|||||||
|
|
||||||
_log.Info().Msgf("Version: %s", version.GetInfo().String())
|
_log.Info().Msgf("Version: %s", version.GetInfo().String())
|
||||||
_log.Debug().Msgf("Config Loaded: %s", cfg.JsonFile())
|
_log.Debug().Msgf("Config Loaded: %s", cfg.JsonFile())
|
||||||
_log.Debug().Msgf("Default Log Level: %s", cfg.LogLevel)
|
_log.Info().Msgf("Default Log Level: %s", cfg.LogLevel)
|
||||||
|
|
||||||
svc := service.New()
|
svc := service.New()
|
||||||
_qbit := qbit.New()
|
_qbit := qbit.New()
|
||||||
|
|||||||
@@ -63,8 +63,14 @@ func (q *QBit) authContext(next http.Handler) http.Handler {
|
|||||||
a = arr.New(category, "", "", false)
|
a = arr.New(category, "", "", false)
|
||||||
}
|
}
|
||||||
if err == nil {
|
if err == nil {
|
||||||
a.Host = strings.TrimSpace(host)
|
host = strings.TrimSpace(host)
|
||||||
a.Token = strings.TrimSpace(token)
|
if host != "" {
|
||||||
|
a.Host = host
|
||||||
|
}
|
||||||
|
token = strings.TrimSpace(token)
|
||||||
|
if token != "" {
|
||||||
|
a.Token = token
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
svc.Arr.AddOrUpdate(a)
|
svc.Arr.AddOrUpdate(a)
|
||||||
|
|||||||
@@ -126,19 +126,27 @@
|
|||||||
<div class="section mb-5">
|
<div class="section mb-5">
|
||||||
<h5 class="border-bottom pb-2">Repair Configuration</h5>
|
<h5 class="border-bottom pb-2">Repair Configuration</h5>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6 mb-3">
|
<div class="col-md-3 mb-3">
|
||||||
<label class="form-label">Interval</label>
|
<label class="form-label">Interval</label>
|
||||||
<input type="text" disabled class="form-control" name="repair.interval" placeholder="e.g., 24h">
|
<input type="text" disabled class="form-control" name="repair.interval" placeholder="e.g., 24h">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12">
|
<div class="col-md-4 mb-3">
|
||||||
<div class="form-check mb-2">
|
<label class="form-label">Zurg URL</label>
|
||||||
<input type="checkbox" disabled class="form-check-input" name="repair.enabled" id="repairEnabled">
|
<input type="text" disabled class="form-control" name="repair.zurg_url" placeholder="http://zurg:9999">
|
||||||
<label class="form-check-label" for="repairEnabled">Enable Repair</label>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-check">
|
<div class="col-12">
|
||||||
<input type="checkbox" disabled class="form-check-input" name="repair.run_on_start" id="repairOnStart">
|
<div class="form-check me-3 d-inline-block">
|
||||||
<label class="form-check-label" for="repairOnStart">Run on Start</label>
|
<input type="checkbox" disabled class="form-check-input" name="repair.enabled" id="repairEnabled">
|
||||||
</div>
|
<label class="form-check-label" for="repairEnabled">Enable Repair</label>
|
||||||
|
</div>
|
||||||
|
<div class="form-check me-3 d-inline-block">
|
||||||
|
<input type="checkbox" disabled class="form-check-input" name="repair.run_on_start" id="repairOnStart">
|
||||||
|
<label class="form-check-label" for="repairOnStart">Run on Start</label>
|
||||||
|
</div>
|
||||||
|
<div class="form-check d-inline-block">
|
||||||
|
<input type="checkbox" disabled class="form-check-input" name="repair.skip_deletion" id="skipDeletion">
|
||||||
|
<label class="form-check-label" for="skipDeletion">Run on Start</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -201,6 +209,14 @@
|
|||||||
<input type="password" disabled class="form-control" name="arr[${index}].token" required>
|
<input type="password" disabled class="form-control" name="arr[${index}].token" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-2 mb-3">
|
||||||
|
<div class="form-check">
|
||||||
|
<label class="form-check-label" for="repairOnStart">Cleanup Queue</label>
|
||||||
|
<input type="checkbox" disabled class="form-check-input" name="arr[${index}].cleanup">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user