diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties deleted file mode 100644 index 488d3b8..0000000 --- a/src/main/resources/application.properties +++ /dev/null @@ -1,69 +0,0 @@ -server.servlet.context-path=/record-manager -management.endpoints.web.exposure.include=health - -# Driver to manage triple stores -persistenceDriver=cz.cvut.kbss.ontodriver.rdf4j.Rdf4jDataSource -# URL of repository that holds main data of the application -repositoryUrl=http://localhost:7200/repositories/record-manager-app -# URL of repository where output and configuration of form-generator should be held -formGenRepositoryUrl=http://localhost:7200/repositories/record-manager-formgen -# REST endpoint of form generator service -formGenServiceUrl=http://localhost:8080/s-pipes/service?_pId=transform&sgovRepositoryUrl=https%3A%2F%2Fgraphdb.onto.fel.cvut.cz%2Frepositories%2Fkodi-slovnik-gov-cz -# Option to pass sameSite attribute for set-cookie headers. Possible values are None,Lax,Strict. In case of None value also attribute "Secure;" is added. -security.sameSite= - -# Url of the website for password reset emails. e.g. https://study.com/ (must have "/" at the end) -appContext=http://localhost:3000/record-manager - -# SMTP host -smtp.host=smtp.gmail.com -# SMTP port -smtp.port=587 -# SMTP user -smtp.user=recordmanager@gmail.com -# SMTP password -smtp.password=AdminOrganization123 - -# Email display name -email.displayName=Record Manager -# if email.from is not entered, smtp.user is used instead -email.from= -# Email cc addresses where all invitations will be sent. For more use delimiter "," (can remain empty) -email.replyTo= -email.cc= -email.bcc= - -# You can use variables in email contents by using {{variable}}, available variables are listed before email content property -# Password Reset email subject -email.passwordResetSubject=Password Reset -# PasswordReset email html content, variables: username, link, appContext -email.passwordResetContent=

Dear user {{username}},

please set your new password here: {{link}}

Best regards,
StudyManager

- -# UserInvite email subject -email.invitationSubject=Welcome to study -# UserInvite email html content, variables: username, link, name, appContext -email.invitationContent=

Dear {{name}},

you have been invited to a study running at {{appContext}}.

Your username is: {{username}}.

\ -

Please set your password here: {{link}}

Best regards,
StudyManager

- -# Password change email -email.passwordChangeSubject=Password Change -# PasswordReset email html content, variables: username, appContext -email.passwordChangeContent=

Dear user {{username}},

your password has been changed.

Best regards,
RecordManager

- -# Profile update email -email.profileUpdateSubject=Profile updated by a study coordinator -# PasswordReset email html content, variables: username, appContext -email.profileUpdateContent=

Dear user {{username}},

your profile at {{appContext}} has been updated by a study coordinator.

Best regards,
RecordManager

- -# Provider of application security. Possible values are 'internal' for internally stored users and 'oidc' for using an -# OIDC-compatible authentication service. Its URL is configured via Spring Boot configuration parameters -security.provider=internal - -# Claim containing user roles in the OIDC access token (applies only when 'oidc' security provider is selected). Use -# dot notation for nested objects -security.oidc.roleClaim=realm_access.roles - -# Configures allowed origins for CORS (e.g. http://localhost:3000). Use a comma to separate multiple values -security.cors.allowedOrigins= - -records.allowedRejectReason=true diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml new file mode 100644 index 0000000..8663ead --- /dev/null +++ b/src/main/resources/application.yml @@ -0,0 +1,56 @@ +server: + servlet: + context-path: /record-manager + +management: + endpoints: + web: + exposure: + include: health + +persistenceDriver: cz.cvut.kbss.ontodriver.rdf4j.Rdf4jDataSou# URL of repository that holds main data of the application + +repositoryUrl: http://localhost:7200/repositories/record-manager-app + +formGenRepositoryUrl: http://localhost:7200/repositories/record-manager-formgen + +formGenServiceUrl: http://localhost:8080/s-pipes/service?_pId=transform&sgovRepositoryUrl=https%3A%2F%2Fgraphdb.onto.fel.cvut.cz%2Frepositories%2Fkodi-slovnik-gov-cz + +security: + sameSite: "" + provider: internal + oidc: + roleClaim: realm_access.roles + cors: + allowedOrigins: "" + +appContext: http://localhost:3000/record-manager + +smtp: + host: smtp.gmail.com + port: 587 + user: recordmanager@gmail.com + password: AdminOrganization123 + +email: + displayName: Record Manager + from: "" + replyTo: "" + cc: "" + bcc: "" + passwordResetSubject: Password Reset + passwordResetContent: >- +

Dear user {{username}},

please set your new password here: {{link}}

Best regards,
StudyManager

+ invitationSubject: Welcome to study + invitationContent: >- +

Dear {{name}},

you have been invited to a study running at {{appContext}}.

Your username is: {{username}}.

\ +

Please set your password here: {{link}}

Best regards,
StudyManager

+ passwordChangeSubject: Password Change + passwordChangeContent: >- +

Dear user {{username}},

your password has been changed.

Best regards,
RecordManager

+ profileUpdateSubject: Profile updated by a study coordinator + profileUpdateContent: >- +

Dear user {{username}},

your profile at {{appContext}} has been updated by a study coordinator.

Best regards,
RecordManager

+ +records: + allowedRejectReason: true