mirror of
https://github.com/ansible/awx.git
synced 2026-02-02 01:58:09 -03:30
Angular logging now respects the debug_mode paraemter in the js/config.js file. When set to true $log.debug messages will appear in the browser console. Set to false and they no longer appear.
54 lines
2.0 KiB
JavaScript
54 lines
2.0 KiB
JavaScript
/**********************************************************************
|
|
*
|
|
* Copyright (c) 2014 AnsibleWorks, Inc.
|
|
*
|
|
* config.js
|
|
*
|
|
* Gobal configuration variables for controlling application behavior.
|
|
*
|
|
*/
|
|
|
|
/*jshint unused:false */
|
|
|
|
var $AnsibleConfig = {
|
|
|
|
tooltip_delay: {show: 500, hide: 100}, // Default number of milliseconds to delay displaying/hiding tooltips
|
|
|
|
debug_mode: false, // Enable console logging messages
|
|
|
|
password_strength: 45, // User password strength. Integer between 0 and 100, 100 being impossibly strong.
|
|
// This value controls progress bar colors:
|
|
// 0 to password_strength - 15 = red;
|
|
// password_strength - 15 to password_strength = yellow
|
|
// > password_strength = green
|
|
// It also controls password validation. Passwords are rejected if the score is not > password_strength.
|
|
|
|
session_timeout: 1800, // Number of seconds before an inactive session is automatically timed out and forced to log in again.
|
|
// Separate from time out value set in API.
|
|
|
|
|
|
variable_edit_modes: { // Options we pass to ControlMirror for editing YAML/JSON variables
|
|
yaml: {
|
|
mode:"text/x-yaml",
|
|
matchBrackets: true,
|
|
autoCloseBrackets: true,
|
|
styleActiveLine: true,
|
|
lineNumbers: true,
|
|
gutters: ["CodeMirror-lint-markers"],
|
|
lint: true
|
|
},
|
|
json: {
|
|
mode: "application/json",
|
|
styleActiveLine: true,
|
|
matchBrackets: true,
|
|
autoCloseBrackets: true,
|
|
lineNumbers: true,
|
|
gutters: ["CodeMirror-lint-markers"],
|
|
lint: true
|
|
}
|
|
},
|
|
|
|
websocket_port: 8080
|
|
|
|
};
|