| 1 | ; |
|---|
| 2 | ; Configuration file for OpenXCAP |
|---|
| 3 | ; |
|---|
| 4 | ; Copyright (c) 2007-2008 AG Projects |
|---|
| 5 | ; http://ag-projects.com |
|---|
| 6 | |
|---|
| 7 | [Server] |
|---|
| 8 | |
|---|
| 9 | ; IP address and port to listen for requests |
|---|
| 10 | ; 0.0.0.0 means any address of this host |
|---|
| 11 | address = 0.0.0.0 |
|---|
| 12 | port = 8000 |
|---|
| 13 | |
|---|
| 14 | ; The XCAP Root URI; must not contain any port number. If it has the 'https' scheme, |
|---|
| 15 | ; the server will listen for requests in TLS mode. |
|---|
| 16 | root = http://xcap.example.com/ |
|---|
| 17 | |
|---|
| 18 | ; The backend to be used for storage and authentication. Current supported |
|---|
| 19 | ; values are Database for generic support and OpenSER for integration with |
|---|
| 20 | ; OpenSIPs |
|---|
| 21 | backend = Database |
|---|
| 22 | |
|---|
| 23 | ; Validate XCAP documents against XML schemas, default is Yes |
|---|
| 24 | document_validation = Yes |
|---|
| 25 | |
|---|
| 26 | |
|---|
| 27 | [Authentication] |
|---|
| 28 | |
|---|
| 29 | ; The HTTP authentication type, this can be either 'basic' or 'digest'. |
|---|
| 30 | ; If you're using TLS, it's better to choose 'basic' because the data is encrypted anyway. |
|---|
| 31 | type = basic |
|---|
| 32 | |
|---|
| 33 | ; Specify if the passwords are stored as plain text - Yes |
|---|
| 34 | ; or in a hashed format MD5('username:domain:password') - No |
|---|
| 35 | cleartext_passwords = Yes |
|---|
| 36 | |
|---|
| 37 | ; The default authentication realm |
|---|
| 38 | default_realm = example.com |
|---|
| 39 | |
|---|
| 40 | ; A list of trusted peers from where XCAP requests are accepted without HTTP authentication |
|---|
| 41 | ; e.g. trusted_peers = 10.0.0.0/24, 192.168.0.1 |
|---|
| 42 | trusted_peers = |
|---|
| 43 | |
|---|
| 44 | |
|---|
| 45 | [TLS] |
|---|
| 46 | |
|---|
| 47 | ; Location of X509 certificate and private key that identify this server. The path is |
|---|
| 48 | ; relative to /etc/openxcap, or it can be given as an absolute path. |
|---|
| 49 | ; Server X509 certificate |
|---|
| 50 | certificate = tls/server.crt |
|---|
| 51 | |
|---|
| 52 | ; Server X509 private key |
|---|
| 53 | private_key = tls/server.key |
|---|
| 54 | |
|---|
| 55 | |
|---|
| 56 | [Database] |
|---|
| 57 | |
|---|
| 58 | ; Configuration settings for Database backend, active if this backend was selected |
|---|
| 59 | ; in the [Server] section |
|---|
| 60 | ; The database connection URI for the datase with subscriber accounts |
|---|
| 61 | authentication_db_uri = mysql://username:password@db-host/opensips |
|---|
| 62 | |
|---|
| 63 | ; The database connection URI for the database that stores the XCAP documents |
|---|
| 64 | storage_db_uri = mysql://username:password@db-host/opensips |
|---|
| 65 | |
|---|
| 66 | ; Authentication and storage tables |
|---|
| 67 | subscriber_table = subscriber |
|---|
| 68 | xcap_table = xcap |
|---|
| 69 | |
|---|
| 70 | |
|---|
| 71 | [OpenSER] |
|---|
| 72 | |
|---|
| 73 | ; Configuration settings for OpenSER backend, active if this backend was selected |
|---|
| 74 | ; in the [Server] section |
|---|
| 75 | ; The database connection URI for the datase with subscriber accounts |
|---|
| 76 | authentication_db_uri = mysql://username:password@db-host/opensips |
|---|
| 77 | |
|---|
| 78 | ; The database connection URI for the database that stores the XCAP documents |
|---|
| 79 | storage_db_uri = mysql://username:password@db-host/opensips |
|---|
| 80 | |
|---|
| 81 | ; Authentication and storage tables |
|---|
| 82 | subscriber_table = subscriber |
|---|
| 83 | xcap_table = xcap |
|---|
| 84 | |
|---|
| 85 | ; The address and port of the xml-rpc management interface |
|---|
| 86 | xmlrpc_url = http://localhost:8080 |
|---|
| 87 | |
|---|
| 88 | ; Uncomment to make openxcap work with presence_xcapdiff module, i.e. notify |
|---|
| 89 | ; publish xcap-diff event via OpenSER management interface |
|---|
| 90 | ; These features are only enabled in OpenSER backend. |
|---|
| 91 | ;enable_publish_xcapdiff = yes |
|---|