mirror of
https://git.proxmox.com/git/pmg-docs
synced 2025-08-14 16:25:40 +00:00
gen-pmg.conf.5-opts.pl: allow to generate docs for subgroups
This commit is contained in:
parent
797db11dab
commit
e09057abe2
@ -14,6 +14,27 @@ my $types = PMG::Config::Base->lookup_types;
|
||||
my $single_section = shift;
|
||||
my $found = 0;
|
||||
|
||||
my $key_groups = {
|
||||
'mail-relaying' => [
|
||||
'mail' , {
|
||||
relay => 1,
|
||||
relaynomx => 1,
|
||||
relayport => 1,
|
||||
smarthost => 1,
|
||||
}],
|
||||
};
|
||||
|
||||
my $select_keys;
|
||||
|
||||
if ($single_section) {
|
||||
if (my $a = $key_groups->{$single_section}) {
|
||||
my ($sec, $hash) = @$a;
|
||||
$single_section = $sec;
|
||||
$select_keys = $hash;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
foreach my $section (@$types) {
|
||||
my $plugin = PMG::Config::Base->lookup($section);
|
||||
my $schema = $plugin->updateSchema(1);
|
||||
@ -31,6 +52,7 @@ foreach my $section (@$types) {
|
||||
my ($key, $phash) = @_;
|
||||
return 1 if $key eq 'digest';
|
||||
return 1 if $key eq 'delete';
|
||||
return 1 if $select_keys && !$select_keys->{$key};
|
||||
return 0;
|
||||
};
|
||||
|
||||
|
@ -221,6 +221,10 @@ ifndef::manvolnum[]
|
||||
image::images/screenshot/pmg-gui-system-options.png[]
|
||||
endif::manvolnum[]
|
||||
|
||||
|
||||
Those settings are saved to subsection 'admin' in `/etc/pmg/pmg.conf`,
|
||||
using the following configuration keys:
|
||||
|
||||
include::pmg.admin-conf-opts.adoc[]
|
||||
|
||||
|
||||
@ -230,12 +234,14 @@ Mail Proxy Configuration
|
||||
Relaying
|
||||
~~~~~~~~
|
||||
|
||||
|
||||
ifndef::manvolnum[]
|
||||
image::images/screenshot/pmg-gui-mailproxy-relaying.png[]
|
||||
endif::manvolnum[]
|
||||
|
||||
TODO
|
||||
Those settings are saved to subsection 'mail' in `/etc/pmg/pmg.conf`,
|
||||
using the following configuration keys:
|
||||
|
||||
include::pmg.mail-relaying-conf-opts.adoc[]
|
||||
|
||||
Relay Domains
|
||||
~~~~~~~~~~~~~
|
||||
|
Loading…
Reference in New Issue
Block a user