improve docs and set default domain_suffix to be list
This commit is contained in:
@@ -99,7 +99,11 @@ sub search_by_ip {
|
|||||||
|
|
||||||
=head1 search_by_dns( \%cond, \%attrs? )
|
=head1 search_by_dns( \%cond, \%attrs? )
|
||||||
|
|
||||||
my $set = $rs->search_by_dns({dns => 'foo.example.com', active => 1});
|
my $set = $rs->search_by_dns({
|
||||||
|
dns => 'foo.example.com',
|
||||||
|
suffix => qr/(?:\.example\..com|\.local)$/,
|
||||||
|
active => 1
|
||||||
|
});
|
||||||
|
|
||||||
Like C<search()>, this returns a ResultSet of matching rows from the
|
Like C<search()>, this returns a ResultSet of matching rows from the
|
||||||
NodeIp table.
|
NodeIp table.
|
||||||
@@ -118,8 +122,8 @@ to search for. The value may optionally include SQL wildcard characters.
|
|||||||
|
|
||||||
=item *
|
=item *
|
||||||
|
|
||||||
The C<cond> parameter may optionally have a suffix parameter which is a
|
The C<cond> parameter may optionally have a C<suffix> parameter which is a
|
||||||
regular expression of domain names that must also match the results.
|
regular expression of domain names - one of which must match the results.
|
||||||
|
|
||||||
=item *
|
=item *
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ external_databases: []
|
|||||||
# WEB FRONTEND
|
# WEB FRONTEND
|
||||||
# ------------
|
# ------------
|
||||||
|
|
||||||
domain_suffix: ""
|
domain_suffix: []
|
||||||
no_auth: false
|
no_auth: false
|
||||||
suggest_guest: false
|
suggest_guest: false
|
||||||
navbar_autocomplete: true
|
navbar_autocomplete: true
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ device_auth:
|
|||||||
# will be stripped from fqdn when displayed in the web UI
|
# will be stripped from fqdn when displayed in the web UI
|
||||||
# also, do not forget the leading dot.
|
# also, do not forget the leading dot.
|
||||||
# ```````````````````````````````````````````````````````
|
# ```````````````````````````````````````````````````````
|
||||||
#domain_suffix: '.example.com'
|
#domain_suffix: ['.example.com']
|
||||||
|
|
||||||
|
|
||||||
# ¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸
|
# ¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸
|
||||||
|
|||||||
Reference in New Issue
Block a user