-
Notifications
You must be signed in to change notification settings - Fork 3
/
config-linux.yml
62 lines (53 loc) · 2.22 KB
/
config-linux.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Type of opeation system, it could be one of those three
# - linux
# - windows-home
# - windows-pro
#
os: linux
# This app keep all state in memory but periodically can unload some information to file.
# Basically it is one of ways to et information about users
statePath: /var/lib/parental-control
# The param allows to use http interface getting reports The param works if parental-control-web is set up
httpEnable: true
# The param works if parental-control-web is set up
httpPort: 8090
# Interface where UI will be available. The param works if parental-control-web is set up
# The param could also has the next values
# * means HostAny
# *4 means HostIPv4
# !4 means HostIPv4Only
# *6 means HostIPv6
# !6 means HostIPv6Only
httpInterface: 127.0.0.1
# PAth to http static content, like html pages and JS scripts
httpStaticPath: /usr/share/parental-control
commands:
# Can be used following command
# notify-send 'Hello world!' 'This is an example notification.' --icon=dialog-information
# Taken from here https://wiki.archlinux.org/index.php/Desktop_notifications
#
# Example
# message: "notify-send 'Your time is mostly up' 'You have only 5 minutes before logout.' --icon=dialog-information"
# or if to install "mpg321" command by "sudo apt install mpg321" any sound can be played
# message: "mpg321 /usr/share/parental-control/alien-siren.mp3"
# or if to install "play" command by "sudo apt install sox" any sound can be played
# message: "play /usr/share/parental-control/alien-siren.mp3"
#
# Template params
# {0} is user name/login
#
message: "echo 'This is stub which is not sent a message anywhere'"
# Command which should kill/logout a user
#
# Template params
# {0} is user name/login/session_id
kill: "skill -KILL -u {0}"
# Path to dynamic config with users information and schedules, by default it is in local
# file system file:///etc/parental-control/users-config.yml but it could be downloaded from
# any http/https source.
# Examples:
# file:///etc/parental-control/users-config.yml
# http://parental-control.link/vasyaod/users-config
usersConfigPath: file:///etc/parental-control/users-config.yml
# Reload period (sec) of users config, by default 300 sec.
usersConfigRefreshPeriod: 300