forked from Forceu/barcodebuddy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-dist.php
86 lines (67 loc) · 2.94 KB
/
config-dist.php
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php
/**
* Barcode Buddy for Grocy
*
* PHP version 7
*
* LICENSE: This source file is subject to version 3.0 of the GNU General
* Public License v3.0 that is attached to this project.
*
* @author Marc Ole Bulling
* @copyright 2019 Marc Ole Bulling
* @license https://www.gnu.org/licenses/gpl-3.0.en.html GNU GPL v3.0
* @since File available since Release 1.0
*
*
* Config file for Barcode Buddy. These configurations cannot be changed
* during runtime
*/
//Port for websocket server to use
const PORT_WEBSOCKET_SERVER = 47631;
//Make sure to disallow reading the file in your webserver!
const DATABASE_PATH = __DIR__ . '/../data/barcodebuddy.db';
//Set timeout for CURL
const CURL_TIMEOUT_S = 20;
//If you are using a self-signed certificate on the Grocy server, enable this.
//WARNING: ONLY ENABLE IN THIS CASE! Potentially all data sent and received
//could be read or modified by a 3rd party!
const CURL_ALLOW_INSECURE_SSL_CA = false;
//If the Grocy url does not match the one given in its SSL certificate, enable this.
//WARNING: ONLY ENABLE IN THIS CASE! Potentially all data sent and received
//could be read or modified by a 3rd party!
const CURL_ALLOW_INSECURE_SSL_HOST = false;
//Require API authentication for API
const REQUIRE_API_KEY = true;
//Disable user authentication. Enable if you don't want to use username/password
const DISABLE_AUTHENTICATION = false;
//Enable debug output
const IS_DEBUG = false;
//Enable to hide the Grocy link in the header
const HIDE_LINK_GROCY = false;
//Enable to hide the Screen module link in the header
const HIDE_LINK_SCREEN = false;
//If you need to manually override a config value, you can do so with this array.
//Any overriden value cannot be changed through the UI anymore!
const OVERRIDDEN_USER_CONFIG = array(
//"BARCODE_C" => "BBUDDY-C",
//"BARCODE_CS" => "BBUDDY-CS",
//"BARCODE_P" => "BBUDDY-P",
//"BARCODE_O" => "BBUDDY-O",
//"BARCODE_GS" => "BBUDDY-I",
//"BARCODE_Q" => "BBUDDY-Q-",
//"BARCODE_AS" => "BBUDDY-AS",
//"REVERT_TIME" => "10",
//"REVERT_SINGLE" => "1",
//"MORE_VERBOSE" => "1",
//"GROCY_API_URL" => null,
//"GROCY_API_KEY" => null,
//"LAST_BARCODE" => null,
//"LAST_PRODUCT" => null,
//"WS_FULLSCREEN" => "0",
//"SHOPPINGLIST_REMOVE" => "1",
//"USE_GENERIC_NAME" => "1",
//"CONSUME_SAVED_QUANTITY" => "0"
);
// Currently not in use
const IS_DOCKER = false;
?>