diff options
-rw-r--r-- | manifests/site.pp | 3 |
1 files changed, 2 insertions, 1 deletions
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, |