https://bugs.contribs.org/show_bug.cgi?id=10279
Bug ID: 10279
Summary: make disable for domains and host individually
override the global host/domain or all configuration
value
Classification: Contribs
Product: SME Contribs
Version: 9.2
Hardware: ---
OS: ---
Status: CONFIRMED
Severity: normal
Priority: P3
Component: smeserver-letsencrypt
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Target Milestone: ---
the global All host or domain value for configure is really usefull to
configure quickly the server however it might be better if we could exclude few
domain or hosts.
I see three situations when you have multiple hosts / domains :
1- all are well configured and DNS point to the server which is reachable from
internet (rare)
2- most of the domains/hosts configured are not reachable from outside , then
individually setting db domains setprop domain1.com letsencryptSSLcert enabled
is the faster way.
3- most of your 300 domains/hosts configured are reachable except 2 or 3, then
it would be easier to simply set all and exclude the few that are not reachable
or only local domains.
the modification would be really easy :
if ( $letsencryptConfig eq 'all' || $letsencryptConfig eq 'domains'
) {
# Check for self
#my $domainStatus =
# $domainsDB->get_prop( "Nameservers", 'HostType' ) || '';
#
#if ( $domainStatus eq 'Localhost' ) {
$OUT .= "$domain ";
#}
}
change $OUT .= "$domain "; to
my $domainEnabled = $domainsDB->get_prop( "$domain", 'letsencryptSSLcert' )
|| 'enabled';
$OUT .= "$domain " unless ( $domainEnabled eq 'disabled' ) ;
and farther do the same for
$OUT .= "$fqdn " unless $DomainName eq $fqdn;
replacing with
my $hostEnabled = $hostsDB->get_prop( "$fqdn", 'letsencryptSSLcert' )
|| 'enabled';
$OUT .= "$fqdn " unless $DomainName eq $fqdn unless
($hostEnabled eq 'disabled' );
--
You are receiving this mail because:
You are the QA Contact for the bug._______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/