This repository was archived by the owner on Oct 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 79
/
Copy pathglewlwyd.conf
165 lines (138 loc) · 3.17 KB
/
glewlwyd.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
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
#
#
# Glewlwyd SSO Authorization Server
#
# Copyright 2016-2019 Nicolas Mora <mail@babelouest.org>
# Gnu Public License V3 <http://fsf.org/>
#
#
# port to open for remote commands
port=4593
# bind to IPV4 address
#bind_address="127.0.0.1"
# external url to access to this instance
external_url="http://localhost:4593"
# login url relative to external url
login_url="login.html"
# url prefix
api_prefix="api"
# path to static files for /webapp url
static_files_path="/usr/share/glewlwyd/webapp/"
# access-control-allow-origin value
allow_origin="*"
# log mode (console, syslog, journald, file)
log_mode="console"
# log level: NONE, ERROR, WARNING, INFO, DEBUG
log_level="DEBUG"
# output to log file (required if log_mode is file)
log_file="/var/log/glewlwyd.log"
# cookie domain
#cookie_domain="localhost"
# cookie_secure, this options SHOULD be set to 1, set this to 0 to test glewlwyd on insecure connection http instead of https
cookie_secure=0
# session expiration, default is 4 weeks
session_expiration=2419200
# session key
session_key="GLEWLWYD2_SESSION_ID"
# admin scope name
admin_scope="g_admin"
# profile scope name
profile_scope="g_profile"
# user_module path
user_module_path="/usr/lib/glewlwyd/user"
# client_module path
client_module_path="/usr/lib/glewlwyd/client"
# user_auth_scheme_module path
user_auth_scheme_module_path="/usr/lib/glewlwyd/scheme"
# plugin_module path
plugin_module_path="/usr/lib/glewlwyd/plugin"
# TLS/SSL configuration values
use_secure_connection=false
secure_connection_key_file="/etc/glewlwyd/server.key"
secure_connection_pem_file="/etc/glewlwyd/server.crt"
secure_connection_ca_file="/etc/glewlwyd/ca.crt"
# Algorithms available are SHA1, SHA256, SHA512, MD5, default is MD5
hash_algorithm = "SHA512"
# MariaDB/Mysql database connection
#database =
#{
# type = "mariadb"
# host = "db_host"
# user = "glewlwyd"
# password = "glewlwyd"
# dbname = "glewlwyd"
# port = 0
#}
# SQLite database connection
database =
{
type = "sqlite3"
path = "/var/cache/glewlwyd/glewlwyd.db"
# path = "/tmp/glewlwyd.db"
}
# PostgreSQL database connection
#database =
#{
# type = "postgre"
# conninfo = "host=localhost dbname=glewlwyd user=glewlwyd password=glewlwyd"
#};
# mime types for webapp files
static_files_mime_types =
(
{
extension = ".html"
mime_type = "text/html"
},
{
extension = ".css"
mime_type = "text/css"
},
{
extension = ".js"
mime_type = "application/javascript"
},
{
extension = ".json"
mime_type = "application/json"
},
{
extension = ".png"
mime_type = "image/png"
},
{
extension = ".jpg"
mime_type = "image/jpeg"
},
{
extension = ".jpeg"
mime_type = "image/jpeg"
},
{
extension = ".ttf"
mime_type = "font/ttf"
},
{
extension = ".woff"
mime_type = "font/woff"
},
{
extension = ".woff2"
mime_type = "font/woff2"
},
{
extension = ".otf"
mime_type = "font/otf"
},
{
extension = ".eot"
mime_type = "application/vnd.ms-fontobject"
},
{
extension = ".map"
mime_type = "application/octet-stream"
},
{
extension = ".ico"
mime_type = "image/x-icon"
}
)