mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-13 01:37:10 +02:00
23 lines
497 B
Ruby
23 lines
497 B
Ruby
class Fluentd::SettingsController < ApplicationController
|
|
before_action :login_required
|
|
before_action :find_fluentd
|
|
|
|
def show
|
|
@config = @fluentd.agent.config
|
|
end
|
|
|
|
def edit
|
|
@config = @fluentd.agent.config
|
|
end
|
|
|
|
def update
|
|
@fluentd.agent.config_write params[:config]
|
|
@fluentd.agent.restart if @fluentd.agent.running?
|
|
redirect_to daemon_setting_path(@fluentd)
|
|
end
|
|
|
|
def source_and_output
|
|
@config = Fluentd::Setting::Config.new(@fluentd.config_file)
|
|
end
|
|
end
|