root/config.ini.sample

Revision 613, 3.2 KB (checked in by Saul Ibarra <saul@ag-projects.com>, 3 months ago)

Deprecate port parameter, now port should be specified in root URI

Line 
1;
2; Configuration file for OpenXCAP
3;
4; Copyright (c) 2007-2009 AG Projects
5; http://ag-projects.com
6
7[Server]
8
9; IP address to listen for requests
10; 0.0.0.0 means any address of this host
11address = 0.0.0.0
12
13
14; This is a comma separated list of XCAP root URIs. The first is the
15; primary XCAP root URI, while the others (if specified) are aliases.
16; The primary root URI is used when generating xcap-diff
17; If the scheme is https, then the server will listen for requests in TLS mode.
18
19root = https://xcap.example.com/xcap-root
20
21; The backend to be used for storage and authentication. Current supported
22; values are Database and OpenSIPS. OpenSIPS backend inherits all the settings
23; from the Database backend but performs extra actions related to the
24; integration with OpenSIPS for which it read the settings from [OpenSIPS]
25; section
26
27backend = OpenSIPS
28
29; Validate XCAP documents against XML schemas
30document_validation = Yes
31
32
33[Logging]
34; directory where to put log files, default is /var/log/openxcap
35; if empty, like in the following line, logs will be printed to stdout
36;directory=
37
38; The following log_* parameters control what information is logged for
39; which errors. Their format is comma-separated list of HTTP error codes
40; that should enable the feature currently implemented: log_request_headers,
41; log_response_body, log_stacktrace
42
43; Some examples:
44
45; * log stack trace for 500 Internal Error only (default)
46;log_stacktrace=500
47
48; * log stack trace (if available) for any error
49;log_stacktrace=any
50
51; * log responses sent to the client for 400 and 409 errors (default is 500)
52;log_response_body=400,409
53
54; * log headers sent by the client for 401 errors (default is 500)
55;log_request_headers=401
56
57
58[Authentication]
59
60; The HTTP authentication type, this can be either 'basic' or 'digest'.
61; If you're using TLS, it's better to choose 'basic' because the data is
62; encrypted anyway.
63type = basic
64
65; Specify if the passwords are stored as plain text - Yes
66; or in a hashed format MD5('username:domain:password') - No
67cleartext_passwords = Yes
68
69; The default authentication realm
70default_realm = example.com
71
72; A comma-separated list of hosts or networks to trust.
73; The elements can be an IP address in CIDR format, a
74; hostname or an IP address (in the latter 2 a mask of 32
75; is assumed), or the special keywords 'any' and 'none'
76; (being equivalent to 0.0.0.0/0 and 0.0.0.0/32
77; respectively).
78trusted_peers =
79
80
81[TLS]
82
83; Location of X509 certificate and private key that identify this server.
84; The path is relative to /etc/openxcap, or it can be given as an absolute
85; path.
86
87; Server X509 certificate
88;certificate = tls/server.crt
89
90; Server X509 private key
91;private_key = tls/server.key
92
93
94[Database]
95
96; The database connection URI for the datase with subscriber accounts
97authentication_db_uri = mysql://username:password@db/database
98
99; The database connection URI for the database that stores the XCAP documents
100storage_db_uri = mysql://username:password@db/database
101
102; Authentication and storage tables
103subscriber_table = subscriber
104xcap_table = xcap
105
106
107[OpenSIPS]
108
109; The address and port of the xml-rpc management interface
110xmlrpc_url = http://sip.example.com:8080
111
112; Publish xcap-diff event via OpenSIPS management interface
113; enable_publish_xcapdiff = yes
114
Note: See TracBrowser for help on using the browser.