github.com/readium/readium-lcp-server@v0.0.0-20240101192032-6e95190e99f1/test/config.yaml (about) 1 # Test configuration for lcpserver and lsdserver. 2 # It is meant to be used as a quick-start setup. 3 # 4 # Replace every occurence of <LCP_SERVER>:<PORT> by the License Server host name or IP address + port. 5 # Replace every occurence of <LSD_SERVER> by the Status Server host name. 6 # Replace every occurence of <GATEWAY> by the License Gateway host name. 7 # Replace every occurence of <LCP_HOME> by the absolute path to the folder hosting every file associated with the LCP service. 8 9 # Shared configuration 10 11 # The usernames and passwords must match the ones in the htpasswd files for each server. 12 13 lcp: 14 # the public url a client app will use to access the License Server (optional) 15 public_base_url: "http://<LCP_SERVER>:<PORT>" 16 lcp_update_auth: 17 # login and password used by the Status Server to access the License Server 18 username: "<adm_username>" 19 password: "<adm_password>" 20 21 lsd: 22 # the public url a client app will use to access the Status Server 23 public_base_url: "https://<PUBLIC_LSD_SERVER>" 24 lsd_notify_auth: 25 # login and password used by the License Server to access the Status Server 26 username: "<adm_username>" 27 password: "<adm_password>" 28 29 30 # LCP Server 31 32 profile: "basic" 33 lcp: 34 # the port on which the License Server will be running 35 port: <PORT> 36 # replace this dsn if you're not using SQLite 37 database: "sqlite3://file:<LCP_HOME>/db/lcp.sqlite?cache=shared&mode=rwc" 38 # authentication file of the License Server. Here we use the same file for the License Server and Status Server 39 auth_file: "<LCP_HOME>/config/htpasswd" 40 # uncomment if lcpencrypt does not manage the storage of encrypted publications 41 #storage: 42 # filesystem: 43 # directory: "<LCP_HOME>/files/storage" 44 certificate: 45 # theses test certificates are provided in the test/cert folder of the codebase 46 cert: "<LCP_HOME>/config/cert-edrlab-test.pem" 47 private_key: "<LCP_HOME>/config/privkey-edrlab-test.pem" 48 license: 49 links: 50 # leave the url as-is (after <LSD_SERVER> has been resolved) 51 status: "http://<LSD_SERVER>/licenses/{license_id}/status" 52 # the url of a REAL html page, that indicates how the user can get back his passphrase if forgotten 53 hint: "<CUSTOM_HINT_PAGE_URL>" 54 55 56 # LSD Server 57 58 lsd: 59 # the port on which the Status Server will be running 60 port: <PORT> 61 # replace this dsn if you're not using SQLite 62 database: "sqlite3://<LCP_HOME>/db/lsd.sqlite?cache=shared&mode=rwc" 63 # authentication file of the Status Server. Here we use the same file for the License Server and Status Server 64 auth_file: "<LCP_HOME>/config/htpasswd" 65 # in this example, the License Gateway is developed so that adding a license id 66 # to the host name gives access to a fresh license. 67 # Keep {license_id} as-is; this is a template. 68 # Read the doc to know more about how to develop a License Gateway. 69 license_link_url: "http://<GATEWAY>/{license_id}" 70 license_status: 71 register: true 72 # uncomment the lines below if you're allowing e-lending 73 #renew: true 74 #return: true 75 #renting_days: 60 76 #renew_days: 7