-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlucca.conf
72 lines (58 loc) · 2.64 KB
/
lucca.conf
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
#################################################################
# Copyright (c) 2018 Daniel Eynis, Bishoy Hanna, Bryan Mikkelson,
# Justin Moore, Huy Nguyen, Michael Olivas, Andrew Wood
# This program is licensed under the "MIT License".
# Please see the file LICENSE in the source
# distribution of this software for license terms.
#################################################################
[General]
; The 'General' section is for general behavioral parameters that can be used
; to tune the system usage and maintenance experience for users and admins.
; 'badge_override_interval' is the length of time, in seconds, that an admin
; has to swipe their badge at a station after a user swipes and is rejected
; in order to indicate "trained" status for the user.
badge_override_interval=10
[Server]
; The 'Server' section is for config parameters that control how the express
; server core behaves (e.g. address and port to bind to)
; Set the interface address and port number for the server to listen on.
; If not set, this defaults to 0.0.0.0:443
bind_address=0.0.0.0
bind_port=3000
pkcs_cert_file=path/to/cert.p12
; Setting redirect_port_80=no disables HTTP port 80 redirection. Any other
; value, or omitting this setting, enables redirecting for HTTP requests on
; port 80, redirecting the client to HTTPS at the bind_port set above.
redirect_port_80=yes
[API]
; Set the interface address and port number for the server to listen on.
; If not set, this defaults to 0.0.0.0:443
bind_address=0.0.0.0
bind_port=3001
pkcs_cert_file=path/to/cert.p12
[Database]
; The 'Database' section is for parameters used by the database module. this
; includes parameters such as the IP address of the database server to
; which to connect.
username = postgres
password = password
database = database_test
host = localhost
port = 5432
dialect = postgres
logging = false
remote_hostname=localhost
remote_port=5432
[Developer Options]
; UISNG THESE OPTIONS IS EXTREMELY INSECURE!
; Setting require_client_certificates=false disables using TLS client
; certificates for station authentication to the API.
; Setting validate_client_certificate=false disables validation of TLS
; certificates provided by API clients.
; LUCCA has no fallback authentication scheme. Without authentication,
; any network-connected node can trivially pose as a registered lab
; station and circumvent your access controls, granting users privileges
; and otherwise abusing the system.
; These options exists for use by developers. set it at your own risk.
;require_client_certificate=true
;validate_client_certificate=true