Configuration of http-server |
modules/HttpServerWidgets.ycp |
Widgets used by HTTP server configuration | |
|
|
This module has an unstable interface. |
Validate certificate
- Return value:
-
certificate valid
Get host value
- Parameters:
-
keyword string host list< map > defaultvalue any
- Return value:
-
host value
Set host value
- Parameters:
-
keyword string host list< map > value any
- Return value:
-
host map
Validate server name
- Parameters:
-
value
- Return value:
-
valid servername
Validate IP for host
- Parameters:
-
id any key any event map
- Return value:
-
is IP valid
Function for validate server entries
- Parameters:
-
hostid string server list < map >
- Return value:
-
valid server
Reload server
Handle function of the access log button (the first defined access log file)
- Parameters:
-
key any key of the widget event map event that occured
- Return value:
-
value for wizard sequencer, always nil
Handle function of the error log button
- Parameters:
-
key any key of the widget event map event that occured
- Return value:
-
value for wizard sequencer, always nil
Handle overview (listen) widget
- Parameters:
-
table string event map
- Return value:
-
(access/error popup)
- Parameters:
-
servername string ip string
- Return value:
-
servername:ip
Hosts contents
- Parameters:
-
descr map
- Return value:
-
host list
Widget for delete host
- Parameters:
-
opt_id any opt_key string
- Return value:
-
delete success
Get server name for host
- Parameters:
-
key any id string
- Return value:
-
server name
Get document root for host
- Parameters:
-
key any id string
- Return value:
-
document root
Is that host default?
- Parameters:
-
widget any key string
- Return value:
-
is_default?
Handle host widget
- Parameters:
-
table string event map
- Return value:
-
(`add, `edit)
Initialize hosts table widget
- Parameters:
-
widget string
Map of popups for CWM
Initialize host widget
- Parameters:
-
key string
Get host options
- Parameters:
-
mainhost
- Return value:
-
host options
Get SSL options
- Return value:
-
ssl options
Initialize directory table
- Parameters:
-
widget string
Get directory options
- Return value:
-
directory options
Handle directory table
- Parameters:
-
key string event map
- Return value:
-
tablehandle
Initialize directory popup
- Parameters:
-
option_id any option_type string
Store directory map
- Parameters:
-
key string event map
Map of widgets for CWM
Handle SSL widget table
- Parameters:
-
key string event map
- Return value:
-
sslhandle
Initialize SSL widget
- Parameters:
-
widget string
Store SSL setting
- Parameters:
-
key string event map
Convert a Listen string to an item for table. Splits by the colon.
- Parameters:
-
arg the Listen map id the id of this item
- Return value:
-
term for the table
Show a popup for editing Listen statement.
- Parameters:
-
network string initial value for the network part of the statement If empty or _("All Addresses"), considered for all Listen for all interfaces. port string initial value for a port number
- Return value:
-
the new Listen statement or nil if Cancel was pressed
Validate server function
- Parameters:
-
id string key map
- Return value:
-
validate
Get value from id
- Parameters:
-
desc map option_id any
- Return value:
-
value
find modules of all directives and check if are loaded
- Parameters:
-
new string
Store host settings
- Parameters:
-
key string event map
Set host options
- Parameters:
-
new_options map < integer, map < string,any > >
Function for getting contents of the default host table
- Parameters:
-
descr map description map of the table
- Return value:
-
of items for the table
Function for getting contents of the default host table
- Parameters:
-
descr map description map of the table
- Return value:
-
of items for the table
Delete function of the global table
- Parameters:
-
opt_id any option id of selected option opt_key any option key of selected option
- Return value:
-
true if was really deleted
Handler for editing default host. Handles additional buttons, like logs and modules. Rest is passed to TablePopup::TableHandle.
- Parameters:
-
key the key modified event event description
- Return value:
-
the result of the handling
Fallback initialization function of a table entry / popup
- Parameters:
-
option_id any unique option id option_type string the name of the key in the option list description
Fallback store function of a table entry / popup
- Parameters:
-
option_id any option id option_type string option key
Fallback summary function of a table entry / popup
- Parameters:
-
option_id any option unique id option_type string option type
- Return value:
-
table entry summary
Store SSL type
- Parameters:
-
option_id any option_type string
Contents of host table
- Parameters:
-
descr map
- Return value:
-
host contents
Initialize function of a widget
- Parameters:
-
key any widget key of widget that is processed
Handle function of a widget
- Parameters:
-
key any widget key of widget that is processed event any event that occured
- Return value:
-
symbol for WS or nil
Initialize function of a widget
- Parameters:
-
key any widget key of widget that is processed
Handle function of a widget
- Parameters:
-
key any widget key of widget that is processed event map event that occured
- Return value:
-
symbol for WS or nil
Initialize function of a widget
- Parameters:
-
key any widget key of widget that is processed
Store function of a widget
- Parameters:
-
key any widget key of widget that is processed event map event that occured
Handling service status
- Parameters:
-
key string event map
- Return value:
-
(`overview_table, `edit. `menu)
Initialization function for firewall adapting
- Parameters:
-
key any option key to be initialized
Store function for firewall adapting
- Parameters:
-
opt_id any option id event map event description
Initialize open port
- Parameters:
-
key string
Handling open port
- Parameters:
-
key string event map
- Return value:
-
nil
Validation open port
- Parameters:
-
key string event string
- Return value:
-
validate open port
Initialize listen interfaces
- Parameters:
-
key string
- Parameters:
-
key string event map
- Return value:
-
validate interfaces
Initialize firewall settings
- Parameters:
-
key string
Store firewall settings
- Parameters:
-
opt_id string event map
Initialization of checkboxes
- Parameters:
-
key string
Handler for expert configuration
- Parameters:
-
key string event map
- Return value:
-
(nil, `expert)
Get service start
- Return value:
-
status boolean
Set service start
- Parameters:
-
status boolean
Initialize widget with summary text
- Parameters:
-
key string