Removes more Wild Cloud cruft.
This commit is contained in:
@@ -60,7 +60,7 @@ func (api *API) DnsmasqRestart(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
// DnsmasqGenerate generates the dnsmasq configuration from global config.
|
||||
// Query param ?overwrite=true will write the config and restart the service.
|
||||
// Instance-specific DNS records are managed via service registration (not here).
|
||||
// Domain-specific DNS records are managed via domain registration and reconciliation.
|
||||
func (api *API) DnsmasqGenerate(w http.ResponseWriter, r *http.Request) {
|
||||
overwrite := r.URL.Query().Get("overwrite") == "true"
|
||||
|
||||
@@ -172,7 +172,7 @@ func writeConfigFile(path, content string) error {
|
||||
}
|
||||
|
||||
// updateDnsmasqConfig regenerates the main dnsmasq config from global config and restarts.
|
||||
// Instance-specific DNS records are managed via service registration (not here).
|
||||
// Domain-specific DNS records are managed via domain registration and reconciliation.
|
||||
func (api *API) updateDnsmasqConfig() error {
|
||||
globalConfigPath := api.statePath()
|
||||
globalCfg, err := config.LoadState(globalConfigPath)
|
||||
|
||||
@@ -62,14 +62,8 @@ func RequestLoggingMiddleware(next http.Handler) http.Handler {
|
||||
|
||||
// Add route params if present
|
||||
vars := mux.Vars(r)
|
||||
if name := vars["name"]; name != "" {
|
||||
attrs = append(attrs, "instance", name)
|
||||
}
|
||||
if app := vars["app"]; app != "" {
|
||||
attrs = append(attrs, "app", app)
|
||||
}
|
||||
if node := vars["node"]; node != "" {
|
||||
attrs = append(attrs, "node", node)
|
||||
if domain := vars["domain"]; domain != "" {
|
||||
attrs = append(attrs, "domain", domain)
|
||||
}
|
||||
|
||||
if sw.status >= 400 {
|
||||
|
||||
Reference in New Issue
Block a user