Improve application.yml documentation.

develop
Paulo Gustavo Veiga 2024-04-06 08:43:20 -07:00
parent 0d3d28b871
commit c71da91af0
2 changed files with 38 additions and 26 deletions

View File

@ -1,4 +1,4 @@
# Overview # WiseMapping Open Source
WiseMapping is an open-source web-based mind mapping tool that harnesses the potential of Mind Maps by blending together open standards technologies like SVG and React. It is built upon the foundation of the code supporting http://www.wisemapping.com, ensuring reliability and continuity in its development. WiseMapping is an open-source web-based mind mapping tool that harnesses the potential of Mind Maps by blending together open standards technologies like SVG and React. It is built upon the foundation of the code supporting http://www.wisemapping.com, ensuring reliability and continuity in its development.

View File

@ -1,10 +1,13 @@
# SpringBoot Configuration ... #
server: # This file contains all the defaults that it will be used when the application is started.
tomcat: # There are two main sections: SpringBoot Config and Application Config
remote-ip-header: x-forwarded-for #
protocol-header: x-forwarded-proto
#
# SpringBoot Config: WiseMapping Backend is based on SpringBoot. Additional configurations documentation could be found https://docs.spring.io/spring-boot/3.3/reference/features/external-config.html.
#
spring: spring:
# SMTP server configuration used for password recovery and notifications.
mail: mail:
host: smtp.example.com host: smtp.example.com
port: 25 port: 25
@ -16,12 +19,7 @@ spring:
connectiontimeout: 5000 connectiontimeout: 5000
timeout: 3000 timeout: 3000
writetimeout: 5000 writetimeout: 5000
output: # Database configuration options. Examples can be found: https://github.com/wisemapping/wisemapping-open-source/tree/develop/config/database
ansi:
enabled: always
application:
name: wisemapping-api
title: wisemapping-api
datasource: datasource:
url: jdbc:hsqldb:mem:wisemapping url: jdbc:hsqldb:mem:wisemapping
driver-class-name: org.hsqldb.jdbc.JDBCDriver driver-class-name: org.hsqldb.jdbc.JDBCDriver
@ -37,14 +35,24 @@ spring:
default_batch_fetch_size: 200 default_batch_fetch_size: 200
dialect: org.hibernate.dialect.HSQLDialect dialect: org.hibernate.dialect.HSQLDialect
format_sql: true format_sql: true
main:
allow-circular-references: true
sql: sql:
init: init:
mode: always mode: always
platform: hsqldb platform: hsqldb
# General Config: Do no touch.
main:
allow-circular-references: true
output:
ansi:
enabled: always
application:
name: wisemapping-api
title: wisemapping-api
# Login ...
#
# Log Level
#
logging: logging:
level: level:
org: org:
@ -52,35 +60,32 @@ logging:
tomcat: INFO tomcat: INFO
root: INFO root: INFO
# Application Configuration. #
# Application Config related options:
#
app: app:
# This information is mainly used by the frontend to connect to the backend. It must match the deployment topology used.
site: site:
ui-base-url: http://localhost ui-base-url: http://localhost
api-base-url: http://localhost api-base-url: http://localhost
# Enable API basic authentication.
api: api:
http-basic-enabled: false http-basic-enabled: false
# analytics: # JSON Web Token configuration options. Secret must be configured.
# account:
jwt: jwt:
secret: dlqxKAg685SaKhsQXIMeM=JWCw3bkl3Ei3Tb7LMlnd19oMd66burPNlJ0Po1qguyjgpakQTk2CN3 secret: dlqxKAg685SaKhsQXIMeM=JWCw3bkl3Ei3Tb7LMlnd19oMd66burPNlJ0Po1qguyjgpakQTk2CN3
expirationMin: 10080 # One week expirationMin: 10080 # One week
# Admin account with super admin permissions on the API.
admin: admin:
user: admin@wisemapping.org user: admin@wisemapping.org
# STMP email configurations
mail: mail:
sender-email: root@localhost sender-email: root@localhost
support-email: root@localhost support-email: root@localhost
enabled: false enabled: false
accounts: accounts:
max-inactive: 20 max-inactive: 20
#######################################################################################
# Google OAuth Authentication # Google OAuth Authentication
#######################################################################################
# OAuth Client id
#security.oauth2.google.clientId=<config settings>
# OAuth Client secret
#security.oauth2.google.clientSecret=<oauth client>
# Redirect to this url, this url must be configured in the google app {ui-base-url}/c/registration-google
#security.oauth2.google.callbackUrl=<oauth callback url>
security: security:
# corsAllowedOrigins: https://dev.wisemapping.com # corsAllowedOrigins: https://dev.wisemapping.com
oauth2: oauth2:
@ -94,6 +99,7 @@ app:
# accounts: # accounts:
# exclusion: # exclusion:
# domain: # domain:
# Account registration options dialog
registration: registration:
enabled: true enabled: true
captcha: captcha:
@ -102,3 +108,9 @@ app:
secretKey: some-secret secretKey: some-secret
# Behind reverse proxy configuration
server:
tomcat:
remote-ip-header: x-forwarded-for
protocol-header: x-forwarded-proto