Configuration
Imported from
Edits belong in that repository, not in
agstack/inatrace-backend
·
docs/configuration.mdEdits belong in that repository, not in
agstack/docs.
Licensed under
MPL-2.0,
not this site's CC BY-SA 4.0.Every property the backend reads, grouped by what it configures.
Spring uses application.properties file stored in src/main/resources for configuration. A template is provided, see instructions below.
- Make a copy of
application.properties.templateand save it asapplication.properties - Fill the missing values
NOTE: The values defined below are applicable for a local development environment. For other environments, change the values accordingly.
Datasource
INATrace.database.name:inatracespring.datasource.username:inatracespring.datasource.password:inatrace
SMTP
spring.mail.protocol:smtpspring.mail.host:localhostspring.mail.port:1025spring.mail.usernamespring.mail.passwordspring.mail.properties.mail.smtp.ssl.checkserveridentity:falsespring.mail.properties.mail.smtps.auth:false
Email template
INAtrace.mail.template.from:info@inatrace.comINAtrace.mail.redirectINAtrace.mail.sendingEnabled:true(falseby default)INATrace.loginManager.mail:registrations@inatrace.com(Email address to receive notifications for new registrations)INAtrace.info.mail:info@inatrace.com(Contact email)
Security
INATrace.auth.jwtSigningKey:sign(Key for signing JWT tokens)INATrace.requestLog.token:token(Key for authorizing log requests)
Storage
INATrace.fileStorage.root: Path on local filesystem for saving images, documents, etc. (e.g.C:\\Users\\Name\\inatrace-backendor/home/name/inatrace-backend)
Exchange rates API
INAtrace.exchangerate.apiKey: API key for exchange rate service. Create a free account at https://exchangeratesapi.io to get an API key.
Beyco integration
INATrace supports integration with the Beyco platform. This allows users to create Beyco offers automatically from INATrace stock orders. For more info about Beyco, please go to: https://beyco.nl. This integration is optional. Integration properties are following:
beyco.oauth2.clientId:clientIdbeyco.oauth2.clientSecret:clientSecretbeyco.oauth2.url:url
The values of these properties are provided by Beyco. If integration with Byeco is not needed, the values of these properties should be empty.