mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-17 11:26:03 +00:00
01_FHEMWEB.pm: add allowfrom doc, remove allowCommands/... attr (Forum #130035)
git-svn-id: https://svn.fhem.de/fhem/trunk@26642 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
38d8e5168f
commit
d2b90c06f3
@ -157,10 +157,7 @@ FHEMWEB_Initialize($)
|
||||
csrfTokenHTTPHeader:0,1
|
||||
alarmTimeout
|
||||
allowedHttpMethods
|
||||
allowedCommands
|
||||
allowfrom
|
||||
basicAuth
|
||||
basicAuthMsg
|
||||
closeConn:1,0
|
||||
column
|
||||
confirmDelete:0,1
|
||||
@ -2877,19 +2874,6 @@ FW_Attr(@)
|
||||
}
|
||||
}
|
||||
|
||||
if(($attrName eq "allowedCommands" ||
|
||||
$attrName eq "basicAuth" ||
|
||||
$attrName eq "basicAuthMsg")
|
||||
&& $type eq "set") {
|
||||
my $aName = "allowed_$devName";
|
||||
my $exists = ($defs{$aName} ? 1 : 0);
|
||||
AnalyzeCommand(undef, "defmod $aName allowed");
|
||||
AnalyzeCommand(undef, "attr $aName validFor $devName");
|
||||
AnalyzeCommand(undef, "attr $aName $attrName ".join(" ",@param));
|
||||
return "$devName: ".($exists ? "modifying":"creating").
|
||||
" device $aName for attribute $attrName";
|
||||
}
|
||||
|
||||
if($attrName eq "iconPath" && $type eq "set") {
|
||||
foreach my $pe (split(":", $param[0])) {
|
||||
$pe =~ s+\.\.++g;
|
||||
@ -3767,7 +3751,7 @@ FW_log($$)
|
||||
</li>
|
||||
<li>pathlist<br>
|
||||
return FHEMWEB specific directories, where files for given types are
|
||||
located
|
||||
located</li>
|
||||
<br><br>
|
||||
|
||||
</ul>
|
||||
@ -3781,10 +3765,6 @@ FW_log($$)
|
||||
widgets. This might be necessary for some screenreaders. Default is 1.
|
||||
</li><br>
|
||||
|
||||
|
||||
|
||||
<li><a href="#addStateEvent">addStateEvent</a></li><br>
|
||||
|
||||
<li>alias_<RoomName><br>
|
||||
If you define a userattr alias_<RoomName> and set this attribute
|
||||
for a device assgined to <RoomName>, then this value will be used
|
||||
@ -3794,14 +3774,19 @@ FW_log($$)
|
||||
alias_.* attributes.
|
||||
</li><br>
|
||||
|
||||
<li><a href="#allowfrom">allowfrom</a></li>
|
||||
</li><br>
|
||||
|
||||
<li>allowedCommands, basicAuth, basicAuthMsg<br>
|
||||
Please create these attributes for the corresponding <a
|
||||
href="#allowed">allowed</a> device, they are deprecated for the FHEMWEB
|
||||
instance from now on.
|
||||
</li><br>
|
||||
<a id="FHEMWEB-attr-allowfrom"></a>
|
||||
<li>allowfrom<br>
|
||||
Regexp of allowed ip-addresses or hostnames. If set, only connections
|
||||
from these addresses are allowed.<br>
|
||||
NOTE: if this attribute is not defined and there is no valid allowed
|
||||
device defined for the telnet/FHEMWEB instance and the client tries to
|
||||
connect from a non-local net, then the connection is refused. Following
|
||||
is considered a local net:<br>
|
||||
<ul>
|
||||
IPV4: 127/8, 10/8, 192.168/16, 172.16/10, 169.254/16<br>
|
||||
IPV6: ::1, fe80/10<br>
|
||||
</ul>
|
||||
</li><br>
|
||||
|
||||
<a id="FHEMWEB-attr-allowedHttpMethods"></a>
|
||||
<li>allowedHttpMethods<br>
|
||||
@ -3819,7 +3804,6 @@ FW_log($$)
|
||||
solve problems on iOS9 for WebApp startup.
|
||||
</li><br>
|
||||
|
||||
|
||||
<a id="FHEMWEB-attr-column"></a>
|
||||
<li>column<br>
|
||||
Allows to display more than one column per room overview, by specifying
|
||||
@ -4607,8 +4591,6 @@ FW_log($$)
|
||||
manchen Screenreadern erforderlich. Die Voreinstellung ist 1.
|
||||
</li><br>
|
||||
|
||||
<li><a href="#addStateEvent">addStateEvent</a></li><br>
|
||||
|
||||
<li>alias_<RoomName><br>
|
||||
Falls man das Attribut alias_<RoomName> definiert, und dieses
|
||||
Attribut für ein Gerät setzt, dann wird dieser Wert bei
|
||||
@ -4619,15 +4601,21 @@ FW_log($$)
|
||||
funktionieren.
|
||||
</li><br>
|
||||
|
||||
<li><a href="#allowfrom">allowfrom</a>
|
||||
<a id="FHEMWEB-attr-allowfrom"></a>
|
||||
<li>allowfrom<br>
|
||||
Regexp der erlaubten IP-Adressen oder Hostnamen. Wenn dieses Attribut
|
||||
gesetzt wurde, werden ausschließlich Verbindungen von diesen
|
||||
Adressen akzeptiert.<br>
|
||||
Achtung: falls allowfrom nicht gesetzt ist, und keine gütige
|
||||
allowed Instanz definiert ist, und die Gegenstelle eine nicht lokale
|
||||
Adresse hat, dann wird die Verbindung abgewiesen. Folgende Adressen
|
||||
werden als local betrachtet:
|
||||
<ul>
|
||||
IPV4: 127/8, 10/8, 192.168/16, 172.16/10, 169.254/16<br>
|
||||
IPV6: ::1, fe80/10<br>
|
||||
</ul>
|
||||
</li><br>
|
||||
|
||||
<li>allowedCommands, basicAuth, basicAuthMsg<br>
|
||||
Diese Attribute müssen ab sofort bei dem passenden <a
|
||||
href="#allowed">allowed</a> Gerät angelegt werden, und sind
|
||||
für eine FHEMWEB Instanz unerwünscht.
|
||||
</li><br>
|
||||
|
||||
<a id="FHEMWEB-attr-allowedHttpMethods"></a>
|
||||
<li>allowedHttpMethods</br>
|
||||
FHEMWEB implementiert die HTTP Methoden GET, POST und OPTIONS. Manche
|
||||
@ -4639,7 +4627,6 @@ FW_log($$)
|
||||
aktiviert.
|
||||
</li><br>
|
||||
|
||||
|
||||
<a id="FHEMWEB-attr-closeConn"></a>
|
||||
<li>closeConn<br>
|
||||
Falls gesetzt, wird pro TCP Verbindung nur ein HTTP Request
|
||||
|
Loading…
x
Reference in New Issue
Block a user