From 72adda4cd17c496fd13061c867de8d2c4984e7af Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 13 Oct 2022 13:35:54 -0300 Subject: Feat: site: adds hidden_service_ports param --- manifests/site.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manifests/site.pp b/manifests/site.pp index e890bb3..d0a3ff0 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -34,6 +34,7 @@ define apache::site( $custom_log_format = 'anon', $hidden_service = false, $hidden_service_version = 3, + $hidden_service_ports = [ "80 127.0.0.1:${apache::http_port}" ], $error_log = false, $custom_log = false, $custom_directives = false, @@ -60,7 +61,7 @@ define apache::site( if $hidden_service == true and $hidden_enabled == true { tor::daemon::hidden_service { "${name}": version => $hidden_service_version, - ports => [ "80 127.0.0.1:${apache::http_port}" ], + ports => $hidden_service_ports, data_dir => "${tor::daemon::data_dir}/hidden", require => File["${tor::daemon::data_dir}/hidden"], ensure => $ensure, -- cgit v1.2.3