|
| 1 | +############################################################################## |
| 2 | +# This is the master ORR configuration file. |
| 3 | +############################################################################## |
| 4 | + |
| 5 | +## The ${...} substitution syntax (e.g., ${branding.instanceName}) allows to |
| 6 | +## refer # to the value assigned to a specific entry elsewhere in this file. |
| 7 | +## The ${?...} substitution syntax allows to override settings via environment |
| 8 | +## variables. See |
| 9 | +## https://github.com/typesafehub/config#optional-system-or-env-variable-overrides |
| 10 | + |
| 11 | +## --------------------------------------------------------------------------- |
| 12 | +## There will be an "admin" user automatically created upon initial start of |
| 13 | +## the ORR. This user will have all privileges on your ORR instance. |
| 14 | +admin { |
| 15 | + ## (required) Password to be given to the ORR 'admin' user. |
| 16 | + password = "actual-admin-pw" |
| 17 | + |
| 18 | + ## (required) Email address associated with the ORR 'admin' user. |
| 19 | + |
| 20 | + |
| 21 | + ## (optional) comma-separated list of additional usernames to be granted |
| 22 | + ## admin privilege right upon creation of the corresponding account. |
| 23 | + #extra = "foo, bar" |
| 24 | +} |
| 25 | + |
| 26 | +## --------------------------------------------------------------------------- |
| 27 | +## User authentication |
| 28 | +auth { |
| 29 | + ## (required) A strong password to generate authentication tokens. |
| 30 | + secret = "actual-strong-password" |
| 31 | +} |
| 32 | + |
| 33 | +## --------------------------------------------------------------------------- |
| 34 | +## Info about the deployment of this ORR instance. |
| 35 | +deployment { |
| 36 | + ## (required) The (external) URL of this ORR instance. No trailing slash. |
| 37 | + url = "http://localhost:9090/ont" |
| 38 | + |
| 39 | + ## (required) The (external) URL of the SPARQL endpoint. No trailing slash. |
| 40 | + sparqlEndpoint = "http://localhost:9090/sparql" |
| 41 | +} |
| 42 | + |
| 43 | +## --------------------------------------------------------------------------- |
| 44 | +branding { |
| 45 | + ## (required) A short name used in email messages and other places. |
| 46 | + instanceName = "MyORR" |
| 47 | + |
| 48 | + ## (optional) HTML fragment to be inserted right before </body> |
| 49 | + footer = """ |
| 50 | + <div align="center"> |
| 51 | + MyORR footer |
| 52 | + </div> |
| 53 | + """ |
| 54 | + |
| 55 | + ## (optional) URL of image to show in the page header. |
| 56 | + ## By default, this will be MMI ORR's logo. |
| 57 | + #logo = "?" |
| 58 | + |
| 59 | + ## (optional) URL for "Terms of Use" link. |
| 60 | + ## No default value (so no such link is shown). |
| 61 | + #tou = "?" |
| 62 | + |
| 63 | + ## (optional) "Contact us" link. |
| 64 | + ## No default value (so no such link is shown). |
| 65 | + ## Examples: "https://somewhere/contactus", "mailto: [email protected]" |
| 66 | + #contactUs = "mailto:"${admin.email} |
| 67 | +} |
| 68 | + |
| 69 | +## --------------------------------------------------------------------------- |
| 70 | +## Optional section. |
| 71 | +#googleAnalytics { |
| 72 | +# propertyId = "?" |
| 73 | +#} |
| 74 | + |
| 75 | +## --------------------------------------------------------------------------- |
| 76 | +## Optional section. |
| 77 | +## See https://www.google.com/recaptcha/intro/. |
| 78 | +#recaptcha { |
| 79 | +# privateKey = "?" |
| 80 | +# siteKey = "?" |
| 81 | +#} |
| 82 | + |
| 83 | +## --------------------------------------------------------------------------- |
| 84 | +## MongoDB |
| 85 | +mongo { |
| 86 | + ## (required) Name of Mongo database to be used for ORR purposes. |
| 87 | + ## Can be changed if desired/needed. |
| 88 | + db = "orr-ont" |
| 89 | + |
| 90 | + ## (required) Mongo server host. Should be same value as indicated in |
| 91 | + ## `docker-compose.yml` for the environment of the orr service. |
| 92 | + host = "mongo" |
| 93 | + |
| 94 | + ## (required) Mongo server port. Should be same value as indicated in |
| 95 | + ## `docker-compose.yml` for the environment of the orr service. |
| 96 | + port = 27017 |
| 97 | +} |
| 98 | + |
| 99 | +## --------------------------------------------------------------------------- |
| 100 | +## files: managed file locations. |
| 101 | +files { |
| 102 | + ## DO NOT change this. |
| 103 | + baseDirectory = "/opt/orr-ont-base-directory" |
| 104 | +} |
| 105 | + |
| 106 | +## --------------------------------------------------------------------------- |
| 107 | +## AllegroGraph server (which supports the triple store and SPARQL endpoint) |
| 108 | +agraph { |
| 109 | + ## (required) The AG username to access the triple store |
| 110 | + userName = "test" |
| 111 | + |
| 112 | + ## (required) The password for the AG username above: |
| 113 | + password = "actual-pw" |
| 114 | + |
| 115 | + ## (required) Name of the AG repository for the ORR. |
| 116 | + ## Can be changed if desired. |
| 117 | + repoName = "mmiorr" |
| 118 | + |
| 119 | + ## (required) AGraph server host. Should be same value as indicated in |
| 120 | + ## `docker-compose.yml` for the environment of the orr service. |
| 121 | + host = "agraph" |
| 122 | + |
| 123 | + ## (required) AGraph server port. Should be same value as indicated in |
| 124 | + ## `docker-compose.yml` for the environment of the orr service. |
| 125 | + port = 10035 |
| 126 | + |
| 127 | + ## DO NOT change: |
| 128 | + sparqlEndpoint = "http://"${agraph.host}":"${agraph.port}/repositories/${agraph.repoName} |
| 129 | + |
| 130 | + ## initDelay: (optional) Re-attempt triple store initialization after this delay. |
| 131 | + initDelay = 20 seconds |
| 132 | +} |
| 133 | + |
| 134 | +## --------------------------------------------------------------------------- |
| 135 | +## (Required) email related information used for user account management and |
| 136 | +## notifications. |
| 137 | +email { |
| 138 | + ## (required) account used for sending emails |
| 139 | + account { |
| 140 | + |
| 141 | + password = "actual-pw" |
| 142 | + } |
| 143 | + |
| 144 | + ## (required) corresponding email server for the account above. |
| 145 | + server { |
| 146 | + host = "?" |
| 147 | + port = 465 |
| 148 | + prot = "smtps" |
| 149 | + debug = false |
| 150 | + } |
| 151 | + |
| 152 | + ## info used to compose emails (when user resets password; notifications |
| 153 | + ## about registrations, etc.): |
| 154 | + from = ${branding.instanceName}" <"${admin.email}">" |
| 155 | + replyTo = ${admin.email} |
| 156 | + mailer = ${branding.instanceName} |
| 157 | +} |
0 commit comments