FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
barcodebuddy/config-dist.php at master · Buzz-coding-217/barcodebuddy · GitHub
Buzz-coding-217
/
barcodebuddy
Public
forked from
Forceu/barcodebuddy
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
barcodebuddy
/
config-dist.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
119 lines (92 loc) · 5.27 KB
Breadcrumbs
barcodebuddy
/
config-dist.php
Copy path
File metadata and controls
119 lines (92 loc) · 5.27 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<?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
;
//Set your base grocy URL here if it differs from the API URL (eg. because of different network / DNS)
const
EXTERNAL_GROCY_URL
=
null
;
//List of IPs and subnets that can bypass authentication. If using with a reverse proxy, ensure TRUSTED_PROXIES is set correctly.
const
AUTHENTICATION_BYPASS_NETS
=
array
(
// "192.168.0.1",
// "127.0.0.1"
);
// List of IPs and subnets that will be trusted for X-Forwarded-For header information
const
TRUSTED_PROXIES
=
array
(
// "192.168.0.1",
// "127.0.0.1"
);
// Replace with another searchengine for manual barcode lookup through UI
const
SEARCH_ENGINE
=
"
https://google.com/search?q=
"
;
// If you are running Barcode Buddy behind a proxy and need to change the baseurl
const
BASEURL
=
"
/
"
;
// Default language to use for product lookups. Currently, only OpenFoodFacts supports this.
const
DEFAULT_LOOKUP_LANGUAGE
=
"
en
"
;
//If you need to manually override a config value, you can do so with this array.
//Any overridden 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",
//"USE_GROCY_QU_FACTOR" => "0",
//"SHOW_STOCK_ON_SCAN" => "0",
// "LOOKUP_USE_OFF" => "1",
// "LOOKUP_USE_UPC" => "1",
// "LOOKUP_USE_JUMBO" => "0",
// "LOOKUP_USE_PLUS" => "0",
// "LOOKUP_USE_UPC_DATABASE" => "0",
// "LOOKUP_UPC_DATABASE_KEY" => null
);
// Currently not in use
const
IS_DOCKER
=
false
;
Back
|
FazBrowse Home
|
New Git URL