Added iptables update command config option

This commit is contained in:
Priit Tark 2015-05-26 03:06:11 +03:00
parent 869c3fa95e
commit 5318e64a64
3 changed files with 10 additions and 0 deletions

View file

@ -1,5 +1,6 @@
25.05.2015
* Added iptables counter commant to application-example.yml
* Add update application.yml with correct `sk_digi_doc_service_endpoint`
22.05.2015

View file

@ -98,6 +98,7 @@ class EppController < ApplicationController
@response = render_to_string(*args)
render xml: @response
write_to_epp_log
iptables_counter_update
end
# VALIDATION
@ -282,4 +283,8 @@ class EppController < ApplicationController
end
# rubocop: enable Metrics/PerceivedComplexity
# rubocop: enable Metrics/CyclomaticComplexity
def iptables_counter_update
`ENV['iptables_counter_update_command']` if ENV['iptables_counter_update_command'].present?
end
end

View file

@ -9,6 +9,7 @@ legal_documents_dir: 'import/legal_documents'
# Example: 'Admin, EPP, REPP' will have name 'Admin, EPP, REPP - production' at New Relic.
new_relic_app_name: 'Admin, EPP, REPP, Registrar, Registrant'
# You can use `rake secret` to generate a secure secret key.
# Your secret key is used for verifying the integrity of signed cookies.
# If you change this key, all old signed cookies will become invalid!
@ -29,6 +30,9 @@ webclient_cert_common_name: 'webclient'
# and returns 2306 "Parameter value policy error"
contact_org_enabled: 'false'
# Firewall countrer update command
# iptables_counter_update_command: ''
# DEPP server configuration (both for Registrar/Registrant servers)
show_ds_data_fields: 'false'
default_nameservers_count: '2'