Skip to content

Commit

Permalink
feat: Added Proxy and SecondaryProxy HTTP server plugins
Browse files Browse the repository at this point in the history
Closes #698
  • Loading branch information
g-bougard committed Jul 1, 2019
1 parent e4a6842 commit 18b0227
Show file tree
Hide file tree
Showing 6 changed files with 534 additions and 3 deletions.
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ core:
* fix HTTP server plugins installation from Makefile
* fix HTTP server SSL plugin so SSL sessions are not closed after one second
* fix #679: Win32 service HTTP server wasn't answering during an inventory
* feature: Added Proxy and SecondaryProxy HTTP server plugins

inventory:
* fix error message while starting fusioninventory-inventory script
Expand Down
4 changes: 1 addition & 3 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ requires 'Net::IP' => '0';
requires 'Text::Template' => '0';
requires 'UNIVERSAL::require' => '0';
requires 'XML::TreePP' => '0.26';
if ($OSNAME =~ /darwin/i) {
requires 'XML::XPath' => '0';
}
requires 'XML::XPath' => '0';

if ($OSNAME eq 'MSWin32') {
requires 'Win32::OLE' => '0';
Expand Down
30 changes: 30 additions & 0 deletions etc/proxy-server-plugin.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

# Set this to no or 0 to enable Inventory HTTP::Daemon Server plugin and
# permit remote inventory request for this agent
disabled = yes

# Set base url matching for API
#url_path = /proxy

# Port on which to listen for inventory requests, default to legacy port
#port = 62354

# The delay the proxy should return as contact timeout to agents (in hours)
#prolog_freq = 24

# Option to handle proxy local storing. Set a folder full path as local_store to
# also store received XML locally. Set only_local_store to not immediatly send
# received XML to known server(s).
#only_local_store = no
#local_store =

# To limit any abuse we expect a maximum of 30 requests by hour and by ip (3600 seconds)
# You can adjust the rate limitation by updating the requests number limit
# or the period on which apply the requests number limit
#maxrate = 30
#maxrate_period = 3600

# You should create and define you specific parameter in the following
# included configuration file to override any default.
# For example just set "disabled = no" in it to enable the plugin
include "proxy-server-plugin.local"
34 changes: 34 additions & 0 deletions etc/proxy2-server-plugin.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

# This config can be used to enable a secondary proxy in the case you need it.
# A good example: you can setup another port like 443 enabling SSL support at
# the same time you have a simple http proxy on port 80.

# Set this to no or 0 to enable Inventory HTTP::Daemon Server plugin and
# permit remote inventory request for this agent
disabled = yes

# Set base url matching for API
#url_path = /proxy

# Port on which to listen for inventory requests, default to legacy port
#port = 62354

# The delay the proxy should return as contact timeout to agents (in hours)
#prolog_freq = 24

# Option to handle proxy local storing. Set a folder full path as local_store to
# also store received XML locally. Set only_local_store to not immediatly send
# received XML to known server(s).
#only_local_store = no
#local_store =

# To limit any abuse we expect a maximum of 30 requests by hour and by ip (3600 seconds)
# You can adjust the rate limitation by updating the requests number limit
# or the period on which apply the requests number limit
#maxrate = 30
#maxrate_period = 3600

# You should create and define you specific parameter in the following
# included configuration file to override any default.
# For example just set "disabled = no" in it to enable the plugin
include "proxy2-server-plugin.local"
Loading

0 comments on commit 18b0227

Please sign in to comment.