-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a python file for default configuration | refs #29229
- Loading branch information
Showing
4 changed files
with
59 additions
and
67 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Miris Manager client base configuration | ||
# This file should not be modified directly, put your modification in another json file and give the path to the client. | ||
|
||
BASE_CONF = { | ||
# Logging level | ||
'LOG_LEVEL': 'INFO', | ||
|
||
# Server URL of Miris Manager | ||
'SERVER_URL': 'https://mirismanager', | ||
|
||
# API key of this system in Miris Manager | ||
# The API key is automatically set when empty and when Capus Manager discovery mode is enabled. | ||
'API_KEY': '', | ||
|
||
# Secret key of this system in Miris Manager, used to sign messages | ||
'SECRET_KEY': '', | ||
|
||
# Try to register this system if no API_KEY is defined | ||
'AUTO_REGISTRATION': True, | ||
|
||
# Notify systemd watchdog after each long polling call | ||
'WATCHDOG': False, | ||
|
||
# Verify server SSL certificate | ||
'VERIFY_SSL': False, | ||
|
||
# API requests max duration in seconds | ||
'TIMEOUT': 10, | ||
|
||
# Proxies for API requests | ||
# Example: {'http': 'http://10.10.1.10:3128', 'https': 'http://10.10.1.10:1080'} | ||
'PROXIES': None, | ||
|
||
# This list makes available or not actions buttons in Miris Manager | ||
'CAPABILITIES': {}, | ||
|
||
# List of Miris Manager urls (do not overwritte this) | ||
'API_CALLS': { | ||
'PING': {'method': 'get', 'url': '/api/', 'anonymous': True}, | ||
'TIME': {'method': 'get', 'url': '/api/time/', 'anonymous': True}, | ||
'INFO': {'method': 'get', 'url': '/api/info/', 'anonymous': True}, | ||
'LONG_POLLING': {'method': 'get', 'url': '/remote-event/v3'}, | ||
'SET_COMMAND_STATUS': {'method': 'post', 'url': '/api/v3/fleet/control/set-command-status/'}, | ||
'GET_INFO': {'method': 'get', 'url': '/api/v3/fleet/systems/get-info/'}, | ||
'SET_INFO': {'method': 'post', 'url': '/api/v3/fleet/systems/set-info/'}, | ||
'SET_STATUS': {'method': 'post', 'url': '/api/v3/fleet/systems/set-status/'}, | ||
'SET_SCREENSHOT': {'method': 'post', 'url': '/api/v3/fleet/systems/set-screenshot/'}, | ||
'REGISTER_SYSTEM': {'method': 'post', 'url': '/api/v3/fleet/systems/register/'}, | ||
'GET_MESSAGE': {'method': 'get', 'url': '/api/v3/fleet/messages/get/'}, | ||
'ADD_MESSAGE': {'method': 'post', 'url': '/api/v3/fleet/messages/add/'}, | ||
'ARCHIVE_MESSAGE': {'method': 'post', 'url': '/api/v3/fleet/messages/archive/'}, | ||
'DELETE_MESSAGE': {'method': 'post', 'url': '/api/v3/fleet/messages/delete/'}, | ||
'PREPARE_TUNNEL': {'method': 'post', 'url': '/api/v3/fleet/proxy/prepare-tunnel/'}, | ||
'SET_PROFILES': {'method': 'post', 'url': '/api/v3/fleet/profiles/set/'}, | ||
'CHECK_TOKEN': {'method': 'post', 'url': '/api/v3/users/check-token/'} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters