...
A Shared Block | |||||
---|---|---|---|---|---|
| |||||
|
Description
WEB portal is included into SoftWLC project to implement Hotspot clients authorization model. An unknown user can connect to an access point without getting login and password in advance. But if he (or she) tries to access the Internet via a browser, he will be redirected to a WEB portal page where authorization or credentials obtaining (for example, via SMS) can be performed. During authorization, a user can see advertisement banners customized in accordance with operator's requirements.
...
An example of a portal initialization page:
Service management
Operation | Command | Response | ||||||
Status check |
|
| ||||||
Service start |
|
| ||||||
Service stop |
|
| ||||||
Service restart |
|
|
Configuration
/etc/eltex-portal/application.conf
main configuration file. Default configuration example:
...
Parameter | Description |
portal | |
defaultRedirectUrl | The address where the user will be redirected if his session should be restarted. It should be set in accordance with http protocol. |
tariffCheckerPeriod | The interval for checking tariff availability on portals. If there are no available tariffs, the error message is generated. |
jetty | |
https | Configuring container operation on https. Certificate location, key and listened port must be specified. |
accessLog | Server requests logging. |
database | |
host | Database server address |
port | The port of the database server for getting inbound connection |
name | Database name |
user | Database user's name |
password | Database user's password |
readOnly | Database connection status |
pool | Database connections management |
cache | Caching settings |
/etc/default/eltex-portal
The file contains parameters needed for service initialization. Default configuration example:
...
Parameter | Description |
PORT | The port for the server to get connections. |
JAVA_INIT_HEAP | Amount of memory allocated for service operation on startup. Recommended to be set equal to JAVA_MAX_HEAP. |
JAVA_MAX_HEAP | Maximum amount of memory that the service can reserve. |
JAVA_OPTS | Additional options for jvm launch. |
/etc/eltex-portal/log4j2.xml
service operation logging settings. Default configuration example
...
Parameter | Description |
monitorInterval | The interval for automatic monitoring of the logger configuration. |
maxFileSize | The maximum file size. When exceeded, a new file is created, and an old file is archived. |
accumulatedFileSize | Total log size (a current file + archived ones). When exceeded, the oldest files will be deleted. |
lastModified | Log storage time, files modified earlier than the timeless, will be deleted. |
maxCount | The maximum number of archived files. When exceeded, the oldest files will be deleted. |
baseDir | Base directory to store logs. |
<AppenderRef ref="RollingFile" level="ERROR"/> | Minimum logging level. |
Log errors description
Log file: /var/log/eltex-portal/log_ep.txt
...