diff --git a/Dockerfile b/Dockerfile index 24e6710..0b16564 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,7 +47,8 @@ RUN rm -f /usr/src/ujcms/WEB-INF/*.xml; \ VOLUME ["/ujcms/static"] EXPOSE 8080 -COPY --chmod=755 docker/docker-entrypoint.sh /usr/local/bin/ +COPY docker/docker-entrypoint.sh /usr/local/bin/ +RUN sed -i 's/\r$//' /usr/local/bin/docker-entrypoint.sh && chmod +x /usr/local/bin/docker-entrypoint.sh ENTRYPOINT ["docker-entrypoint.sh"] CMD ["java", "-jar", "ujcms.jar"] diff --git a/src/main/resources/application-docker.yaml b/src/main/resources/application-docker.yaml index 8ad4e58..5797125 100644 --- a/src/main/resources/application-docker.yaml +++ b/src/main/resources/application-docker.yaml @@ -1,31 +1,343 @@ -# https://docs.spring.io/spring-boot/reference/features/external-config.html#features.external-config.files.property-placeholders -# 数据库连接URL -spring.datasource.url: jdbc:mysql://${UJCMS_DB_HOST}:${UJCMS_DB_PORT:3306}/${UJCMS_DB_NAME}?serverTimezone=Asia/Shanghai&characterEncoding=UTF-8&nullCatalogMeansCurrent=true -# 数据库用户名 -spring.datasource.username: ${UJCMS_DB_USER} -# 数据库密码 -spring.datasource.password: ${UJCMS_DB_PASSWORD} -# 数据库驱动 -spring.datasource.driver-class-name: ${UJCMS_DB_DRIVER:com.mysql.cj.jdbc.Driver} -# 执行初始化脚本的数据库类型 -ujcms.data-sql-platform: ${UJCMS_DB_SQL_PLATFORM:mysql} +# 注意,所有配置名冒号后必须保留一个英文空格,否则启动项目会报错。 +# 例如:`spring.datasource.username:root`是非法配置,`spring.datasource.username: root`才是合法配置。 + +# 数据库连接 URL +# `127.0.0.1` 是数据库的IP地址,数据库安装在本机可直接用 `127.0.0.1`,如安装在其它服务器,则填写相应 IP,如 `192.168.0.1`。 +# `3306` 是数据库端口号,MySQL默认端口号就是 `3306`,如安装数据库时,没有手动修改过端口号,则无需修改。 +# `ujcms` 是数据库名,即创建数据库时,所填的数据库名。 +# `serverTimezone=Asia/Shanghai` 是时区,中国使用上海时区也就是北京时间,不用改动。 +# `characterEncoding=UTF-8` 是连接数据库的编码。不要改动。即使数据使用的是`utf8mb4`编码,此处依然使用`UTF-8`。 +spring.datasource.url: jdbc:mysql://192.168.20.230:33080/ujcms?serverTimezone=Asia/Shanghai&characterEncoding=UTF-8&nullCatalogMeansCurrent=true +# 数据库用户名(注意:所有配置名的冒号后必须保留一个英文空格) +spring.datasource.username: root +# 数据库密码(注意:所有配置名的冒号后必须保留一个英文空格) +spring.datasource.password: Mysql@zcloud33080 +# 数据库驱动。常用数据库(如MySQL、PostegreSQL、Oracle)可通过jdbc url自动判断,不用指定。无法自动判断时(如国产数据库),需要手动指定。 +#spring.datasource.driver-class-name: com.mysql.cj.jdbc.Driver +# 执行初始化脚本的数据库类型。 +ujcms.data-sql-platform: mysql # 数据库类型(用于数据库备份)。支持 mysql、postgresql、kingbase、opengauss -ujcms.database-type: ${UJCMS_DB_TYPE:mysql} -# 初始化站点域名 -ujcms.init-domain: ${UJCMS_INIT_DOMAIN:} -# 初始化站点协议 -ujcms.init-protocol: ${UJCMS_INIT_PROTOCOL:http} -# 初始化站点端口 -ujcms.init-port: ${UJCMS_INIT_PORT:} -# 初始化用户名 -ujcms.init-username: ${UJCMS_INIT_USERNAME:} -# 初始化密码 -ujcms.init-password: ${UJCMS_INIT_PASSWORD:} +ujcms.database-type: mysql +# 数据库命令所在目录(用于数据库备份)。如果已加入环境变量则留空即可。 +ujcms.database-bin-path: + + +# MariaDB 数据库 +#spring.datasource.url: jdbc:mariadb://127.0.0.1:3306/ujcms?serverTimezone=Asia/Shanghai&characterEncoding=UTF-8&nullCatalogMeansCurrent=true +#spring.datasource.username: root +#spring.datasource.password: password +#spring.datasource.driver-class-name: org.mariadb.jdbc.Driver +#ujcms.data-sql-platform: mysql +#ujcms.database-type: mysql +#ujcms.database-bin-path: + +# PostgreSQL数据库 +#spring.datasource.url: jdbc:postgresql://127.0.0.1:5432/ujcms +#spring.datasource.username: postgres +#spring.datasource.password: password +#spring.datasource.driver-class-name: org.postgresql.Driver +#ujcms.data-sql-platform: postgresql +#ujcms.database-type: postgresql +#ujcms.database-bin-path: + +# 人大金仓数据库(使用 PostgreSQL 驱动,官方推荐方式。不能使用 kingbase8 驱动) +# 安装参数选项:数据库兼容模式(PG),字符集编码(UTF8),大小写敏感(YES) +#spring.datasource.url: jdbc:postgresql://127.0.0.1:54321/ujcms +#spring.datasource.username: postgres +#spring.datasource.password: password +#spring.datasource.driver-class-name: org.postgresql.Driver +#ujcms.data-sql-platform: postgresql +#ujcms.database-type: kingbase +#ujcms.database-bin-path: + +# openGauss高斯数据库(使用仿 PostgreSQL 版驱动 org.opengauss:opengauss-jdbc:5.0.0,并删除 PostgreSQL 驱动) +# 直接使用 PostgreSQL 驱动,会报 Invalid or unsupported by client SCRAM mechanisms 错误 +# 数据库的 owner 必须与连接的用户一致。一般情况下应该避免使用数据库自带的用户和库,可新建一个用户、一个库,并将该库的 owner 设置为这个用户 +#spring.datasource.url: jdbc:postgresql://127.0.0.1:5432/ujcms +#spring.datasource.username: gaussdb +#spring.datasource.password: openGauss@123 +#spring.datasource.driver-class-name: org.postgresql.Driver +#ujcms.data-sql-platform: postgresql +#ujcms.database-type: opengauss +#ujcms.database-bin-path: + +# vastbase海量数据库(使用仿 PostgreSQL 版驱动 cn.com.vastdata:vastbase-jdbc:2.9p,并删除 PostgreSQL 驱动) +# 也可直接使用 openGauss 驱动 org.opengauss:opengauss-jdbc:5.0.0 +# 应先创建用户并赋予所有权限(或赋予必须的权限,如创建表权限等),再以该用户作为 owner 创建数据库 +#spring.datasource.url: jdbc:postgresql://127.0.0.1:5432/ujcms +#spring.datasource.username: gaussdb +#spring.datasource.password: openGauss@123 +#spring.datasource.driver-class-name: org.postgresql.Driver +#ujcms.data-sql-platform: postgresql +#ujcms.database-type: opengauss +#ujcms.database-bin-path: + +# 瀚高数据库(不能使用 PostgreSQL 原版驱动) +#spring.datasource.url: jdbc:highgo://127.0.0.1:5866/highgo +#spring.datasource.username: highgo +#spring.datasource.password: Highgo@123 +#spring.datasource.driver-class-name: com.highgo.jdbc.Driver +#ujcms.data-sql-platform: postgresql +#ujcms.database-type: postgresql +#ujcms.database-bin-path: + +# 达梦数据库(不可直接创建模式;应该创建用户,达梦会自动创建同名模式;用户要赋予 RESOURCE 角色;使用新建的用户连接数据库) +#spring.datasource.url: jdbc:dm://127.0.0.1:5236/UJCMS +## 达梦的用户名需与 spring.datasource.url 中的数据库名一致 +#spring.datasource.username: UJCMS +#spring.datasource.password: Pass@0000 +#spring.datasource.driver-class-name: dm.jdbc.driver.DmDriver +#ujcms.data-sql-platform: dm +## 达梦必须指定工作流的 schema 名称,需与 spring.datasource.url 中的数据库名一致 +#flowable.database-schema: UJCMS +## 达梦必须指定 liquibase 的 schema 名称,需与 spring.datasource.url 中的数据库名一致 +#spring.liquibase.liquibase-schema: UJCMS + +# 集群环境下,可以设置雪花算法主键的数据中心ID和工作机器ID。不设置时,会自动根据网卡mac地址和pid(进程ID)计算出一个相对随机的数值,一般情况下不会冲突。 +# 雪花算法主键:数据中心ID。范围 0-31 +#ujcms.datacenterId: +# 雪花算法主键:工作机器ID。范围 0-31 +#ujcms.workerId: + +# 集群环境需要使用jdbc。默认:memory +#spring.quartz.job-store-type: jdbc +# quartz是否集群 +#spring.quartz.properties.org.quartz.jobStore.isClustered: true +# jdbc模式需要指定驱动委托类。官方文档:https://www.quartz-scheduler.org/documentation/quartz-2.3.0/configuration/ConfigJobStoreTX.html +#spring.quartz.properties.org.quartz.jobStore.driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate +#spring.quartz.properties.org.quartz.jobStore.driverDelegateClass: org.quartz.impl.jdbcjobstore.PostgreSQLDelegate +#spring.quartz.properties.org.quartz.jobStore.driverDelegateClass: org.quartz.impl.jdbcjobstore.oracle.OracleDelegate +#spring.quartz.properties.org.quartz.jobStore.driverDelegateClass: org.quartz.impl.jdbcjobstore.MSSQLDelegate +#spring.quartz.properties.org.quartz.jobStore.driverDelegateClass: org.quartz.impl.jdbcjobstore.SybaseDelegate +#spring.quartz.properties.org.quartz.jobStore.driverDelegateClass: org.quartz.impl.jdbcjobstore.HSQLDBDelegate +# quartz线程数。默认:10 +spring.quartz.properties.org.quartz.threadPool.threadCount: 2 +# 通过Spring配置生成的Job,是否覆盖持久化到数据库的Job。需要设置成true。默认:false +spring.quartz.overwrite-existing-jobs: true +# 使用liquibase初始化数据库,要使用 never。默认:embedded +spring.quartz.jdbc.initialize-schema: never + +# 是否启用 liquibase。默认:true。Flowable 将 spring.liquibase.enabled 设置成了 false。需要显式的设置为 true。 +spring.liquibase.enabled: true +# Flowable 是否更新数据库表结构。默认:true。如果不希望 Flowable 更新表结构,可以设置为 none 或 ignore(注:不要设置成 false,这仍然会检查表结构)。 +# https://forum.flowable.org/t/how-to-disable-liquibase/2417 +# https://documentation.flowable.com/latest/develop/dbs/overview +# https://www.flowable.com/open-source/docs/form/ch02-Configuration +# https://www.flowable.com/open-source/docs/bpmn/ch05a-Spring-Boot#flowable-application-properties +#flowable.database-schema-update: none +# 是否执行初始化脚本。默认:true +#ujcms.data-sql-enabled: false + +# 数据库连接生命时长(毫秒)。默认值:1800000 (30 分钟)。 +# 官方强烈建议设置该值,该值必须比数据库连接过期时间小 30 秒以上。 +# MySQL默认的连接过期时间是 28800000 (8小时)。但有时候数据库管理员会把连接过期时间设置成15分钟甚至10分钟,这时需要调整该值。 +# 在数据库和网络允许的情况下,该值应设置的稍大一些。如:7200000(120分钟) +#spring.datasource.hikari.max-lifetime: 7200000 +# 最大连接数。默认值:10。不需要太大,100是过大的值,会导致性能下降。 +# 该值建议为((core_count * 2) + effective_spindle_count),即((cpu核心数*2)+硬盘数),如果是4核cpu一个硬盘,这个值应该是((4*2)+1)=9 +#spring.datasource.hikari.maximum-pool-size: 10 + +# 使用JNDI方式获取数据库连接,需先配置好JNDI +#spring.datasource.jndi-name: java:comp/env/jdbc/ujcms +# 防止在 WebSphere 下出现 UnsupportedOperationException 错误。包括宝兰德等应用服务器也必须加上这项配置 +spring.jta.enabled: false + +# 服务端口。默认8080端口。 +#server.port: 80 +# 上下文路径。默认根目录。 +#server.servlet.context-path: / +# Session timeout. If a duration suffix is not specified, seconds will be used. Default Value: 30m +# Session 过期时间。如果没有指定后缀,单位为秒。默认:30m (30分钟) +#server.servlet.session.timeout: 30m +# Session跟踪模式。为了避免url带;jsessionid,不使用url模式。 +# Session tracking modes (one or more of the following: "cookie", "url", "ssl"). +server.servlet.session.tracking-modes: cookie +# Session HttpOnly Cookie。防止 js 获取 Session 的 Cookie。 +server.servlet.session.cookie.http-only: true +# 上传文件最大限制。-1 为不限制上传大小。默认 1M +spring.servlet.multipart.max-file-size: -1 +# 上传请求最大限制。-1 为不限制上传大小。默认 10M +spring.servlet.multipart.max-request-size: -1 +# 是否注册 JSP Servlet。Whether the JSP servlet is registered. Default: true +server.servlet.jsp.registered: false +# 使用参数指定 HTTP Method +spring.mvc.hiddenmethod.filter.enabled: true +# 错误处理类 org.springframework.boot.autoconfigure.web.servlet.error +# 错误处理是否包含 "exception" 属性。Include the "exception" attribute +# 默认为 false +server.error.include-exception: true +# 错误处理是否包含 "message" 属性。Include the "message" attribute +# 开发环境默认为 always,生产环境默认为 never。如不需要包含 message,可注释该行,或设置为 never +server.error.include-message: always +# 错误处理是否包含 "stacktrace" (trace?) 属性。When to include a "stacktrace" attribute +# 开发环境默认为 always,生产环境默认为 never。如不需要包含 stacktrace,可注释该行,或设置为 never +server.error.include-stacktrace: always +# 日志级别为 ERROR +logging.level.root: ERROR +# 显示 MyBatis SQL 日志 +#logging.level.com.ujcms.cms.core.mapper: DEBUG +#logging.level.com.ujcms.cms.ext.mapper: DEBUG +# 显示 tomcat 启动信息 +logging.level.org.springframework.boot.web.embedded.tomcat.TomcatWebServer: INFO +logging.level.com.ujcms.cms.Application: INFO +# 关闭 springboot 日志图标 +spring.main.banner-mode: off +# 默认关闭 SpringDoc +# 文档 JSON 地址:/v3/api-docs +springdoc.api-docs.enabled: false +# 文档 HTML 地址:/swagger-ui/index.html (changed in SpringDoc 2.x) +springdoc.swagger-ui.enabled: false + +# MyBatis 是否开启二级缓存。默认:true +#mybatis.configuration.cache-enabled: false +mybatis.configuration.default-fetch-size: 100 +mybatis.configuration.default-statement-timeout: 30 +# MyBatis 分页方言。多个配置用';'分号分开。默认支持以下国产数据库(https://github.com/pagehelper/Mybatis-PageHelper): +# com.github.pagehelper.page.PageAutoDialect +# 方言别名取自 jdbc url 地址 `jdbc:://127.0.0.1:5432` +# 达梦数据库(dm): OracleDialect +# 阿里云 PPAS 数据库(edb): OracleDialect +# 神通数据库(oscar): OscarDialect +# 瀚高数据库(highgo): HsqldbDialect +# 虚谷数据库(xugu): HsqldbDialect +# 行云数据库(xcloud): CirroDataDialect +# 人大金仓版本(kingbase): PostgreSqlDialect +# 人大金仓新版本(kingbase8): PostgreSqlDialect +# openGauss数据库(opengauss): PostgreSqlDialect +pagehelper.dialect-alias: gbasedbt-sqli=com.github.pagehelper.dialect.helper.OracleDialect +# Jackson配置 https://docs.spring.io/spring-boot/docs/2.7.14/reference/htmlsingle/#howto.spring-mvc.customize-jackson-objectmapper +spring.jackson.serialization.FAIL_ON_EMPTY_BEANS: false +spring.jackson.deserialization.USE_BIG_DECIMAL_FOR_FLOATS: true +# 默认包含没有 View 注解的字段 +spring.jackson.mapper.DEFAULT_VIEW_INCLUSION: true +# 默认关闭 spring-data-elasticsearch 的 repositories +spring.data.elasticsearch.repositories.enabled: false +# 缓存类型。默认为内存缓存,集群环境需要设置为 redis +spring.cache.type: caffeine +# 禁用 Redis 和 Elasticsearch 自动配置(使用 caffeine 缓存且不使用 ES 时) +spring.autoconfigure.exclude: + - org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration + - org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchRestClientAutoConfiguration +# 如果多个应用共享一个redis,需要设置该值,以免冲突。默认:0 +#spring.redis.database: 0 + +# Core number of threads. Default: 8 +# 核心线程数量。参考值为 CPU核心数 * 1。对于IO密集型运算,可适当加大。 +#spring.task.execution.pool.core-size: 8 +# Time limit for which threads may remain idle before being terminated. Default: 60s +# 线程发呆时间 +#spring.task.execution.pool.keep-alive: 60s +# Maximum allowed number of threads. If tasks are filling up the queue, the pool can expand up to that size to accommodate the load. Ignored if the queue is unbounded. +# 最大线程数量。默认值是 Integer.MAX_VALUE。为避免内存溢出,应该设置一个值。参考值为 CPU核心数 * 2。对于IO密集型运算,可适当加大。 +spring.task.execution.pool.max-size: 16 +# Queue capacity. An unbounded capacity does not increase the pool and therefore ignores the "max-size" property. +# 线程等待队列,等待队列满后,则会根据 "max-size" 创建新线程。默认值是 Integer.MAX_VALUE。为避免内存溢出,应该设置一个值。 +spring.task.execution.pool.queue-capacity: 2048 + +# 模板保存路径。一般模板保存在项目根目录的/templates目录下,也可以将模板保存在其他地方。 +# 模板目录下通常包含img、css、js等文件,需确保能够被浏览器访问到。 +# 结尾必须带'/',否则 error 页面找不到模板。 +spring.freemarker.template-loader-path: /templates/ +#spring.freemarker.template-loader-path: file:d:/ujcms/templates/ +#spring.freemarker.template-loader-path: file:/my/dir/templates/ + +# 必须指定后缀,否则 error 页面找不到模板。后缀使用html,方便其它编辑器识别文件格式。 +spring.freemarker.suffix: .html +# 指定输出格式为HTML,会自动开启 html scape,防止 XSS 注入。(使用该模式后,模板中就不可以使用[#escape]标签,导致无法处理空值。所以不使用该功能) +#spring.freemarker.settings.output_format: HTML +# 使用中括号作为标签标志,避免DreamWeaver等开发工具因无法识别FreeMarker标签导致报错等情况。 +spring.freemarker.settings.tag_syntax: square_bracket +# 数值默认不加千分号 +spring.freemarker.settings.number_format: "0.######" +# Freemarker 错误信息处理方式 +# 模板异常处理方式。`html_debug`会将错误信息直接显示在页面里,方便调试。 +# 生产环境可以设置为`rethrow`,将异常重新抛出,由 spring 处理异常。 +spring.freemarker.settings.template_exception_handler: com.ujcms.commons.freemarker.SimpleTemplateExceptionHandler +# 生产环境下,模板异常写入日志可能导致日志文件过于庞大,可设置模板异常不写入日志。 +spring.freemarker.settings.log_template_exceptions: false +# Freemarker 默认允许在模板里创建类的实例,这会导致远程执行漏洞 +# 例如:[#assign value="freemarker.template.utility.Execute"?new()]${value("calc.exe")} +# 此项配置禁止模板创建类的实例 +# 官方文档:https://freemarker.apache.org/docs/ref_builtins_expert.html#ref_builtin_new +spring.freemarker.settings.new_builtin_class_resolver: allows_nothing +# 禁止 springMacroRequestContext,以防 freemarker SSTI 漏洞 +spring.freemarker.expose-spring-macro-helpers: false + +# 官方文档:https://www.flowable.com/open-source/docs/bpmn/ch05a-Spring-Boot#flowable-application-properties +# Whether the async executor should be activated. +# 是否启用工作流异步执行器。在不需要工作流功能的情况下,可以设置成 false。默认:true +#flowable.process.async-executor-activate: false + +# 如果需要将静态资源放到程序目录之外,且不想另外配置tomcat虚拟路径或nginx服务,则可通过static-locations配置,由程序提供静态资源服务。 +# 需注意,Tomcat必须要有相应目录的访问权限。 +# 默认值:[classpath:/META-INF/resources/, classpath:/resources/, classpath:/static/, classpath:/public/] +#spring.web.resources.static-locations: +# - classpath:/META-INF/resources/ +# - classpath:/resources/ +# - classpath:/static/ +# - classpath:/public/ +# - file:/to/my/path/ + +# JWT后台Session过期时间。单位:分钟。默认:30 +jwt.sessionTimeout: 30 +# 系统版本号。获取 maven 里的 version 配置。 +ujcms.version: "@project.version@" +# 主键序列缓存大小。正式环境建议50或100以上。 +ujcms.sequence-cache-size: 50 +# 是否允许访问JSP。默认不允许。允许JSP访问会带来一定的安全风险,攻击者可以通过上传JSP文件,获得webshell。 +# 若允许,所有JSP文件必须放在 {@code /jsp} 目录下,但访问地址不用加 {@code /jsp} 前缀。 +# 比如: {@code /jsp/example.jsp} 文件的访问地址依然为 {@code /example.jsp} +# 这样可以防止所有 {@code /jsp} 目录之外的 JSP 文件被访问,降低安全风险。 +ujcms.jsp-allowed: false # IP 反向代理深度。如果使用反向代理,需设置为 1;使用 CDN 再加上反向代理,则需设置为 2;否则无法获取真实 IP。默认:0 # 反向代理需要将客户端真实 IP 保存在 HTTP 请求头中,如 X-Forwarded-For -ujcms.ip-proxy-depth: ${UJCMS_IP_PROXY_DEPTH:0} +ujcms.ip-proxy-depth: 0 + +# ElasticSearch 前缀。默认:ujcms +#ujcms.es-prefix: ujcms +# Lucene 索引文件保存目录。可以放到程序目录之外,如 +#ujcms.lucene-path: file:d:\\ujcms\\lucene +#ujcms.lucene-path: file:/my/dir/lucene +ujcms.lucene-path: /WEB-INF/lucene +# 开发环境上传的图片无法立即访问,需要等待1至5秒不等。可能是因为上传后,开发工具需要将图片同步到实际 tomcat 的运行路径下。 +# 正确此配置可使开发环境上传的图片能立即访问 +ujcms.uploads-location: /uploads +# 储存点文件前缀。配置该项可以允许储存点使用`file:`前缀访问程序的其它目录及其子目录。多项使用逗号分割。如 file:/data/ujcms,file:d:/my/dir +#ujcms.storageFilePrefix: file:/data/ujcms,file:d:/my/dir +# lucene 分词器。支持`jcscg` `ik`。默认使用`jcseg`。`jcseg`支持最小粒度分词(单字),避免出现搜索某个字时无法搜索到结果 +#ujcms.lucene-analyzer: jcseg + +# JWT密钥。单机环境可以不设置,会默认生成一个64位的随机密钥。在集群环境下,为保持各机器密钥一致,必须手动设置一个长度不少于64位的随机密钥。密钥和普通密码一样,可使用大写字母、小写字母、数字、特殊字符。 +#jwt.secret: +# JWT token 密钥。单机环境可以不设置,会默认生成一个16位的随机密钥。在集群环境下,为保持各机器密钥一致,必须手动设置一个固定长度为16位(不可多也不可少)的随机密钥。密钥和普通密码一样,可使用大写字母、小写字母、数字、特殊字符。 +#jwt.token-secret: +# 验证码密钥。单机环境可以不设置,会默认生成一个32位的随机密钥。 +#captcha.secret: +# 下载认证密钥。单机环境可以不设置,会默认生成一个32位的随机密钥。 +#ujcms.download-secret: +# 客户端SM2公钥。使用QD值,HEX编码。单机环境可以不设置,会默认生成随机公钥。 +#ujcms.client-sm2-public-key: +# 客户端SM2私钥。使用QD值,HEX编码。单机环境可以不设置,会默认生成随机私钥。 +#ujcms.client-sm2-private-key: +# 密码胡椒。除非对加密密码安全要求特别高,否则不要修改此项。改动后用户密码将全部失效,需手动重置所有密码。一般不少于32个字符。密码胡椒将加在用户实际密码中,防止黑客在获取数据库数据后,对密码进行破解。 +#ujcms.password-pepper: 0.1.2.3.4.5.6.7.8.9.a.b.c.d.e.f. +ujcms.password-pepper: 0.1.2.3.4.5.6.7.8.9.a.b.c.d.e.f. # 是否启用 Office 功能(商业版功能) -jodconverter.local.enabled: ${UJCMS_OFFICE_ENABLED:false} +jodconverter.local.enabled: false # Office 安装路径 -jodconverter.local.office-home: ${UJCMS_OFFICE_HOME:/usr/lib/libreoffice} +# OpenOffice Windows 通常为 C:/Program Files (x86)/OpenOffice 4 +# OpenOffice CentOS 通常为 /opt/openoffice4 +# LibreOffice Linux 通常为 /usr/lib/libreoffice、/usr/lib64/libreoffice、/opt/libreoffice7.4 +# LibreOffice Centos 通常为 /usr/bin/libreoffice +# LibreOffice Windows 通常为 C:/Program Files/LibreOffice +jodconverter.local.office-home: C:/Program Files/LibreOffice +# 端口号。如果同一台服务器启动多个程序,需要修改端口号,使其不重复 +jodconverter.local.port-numbers: 8100 +# This property sets the maximum number of tasks an office process can execute before restarting. Default: 200 +jodconverter.local.max-tasks-per-process: 50 + +# 是否开启数据迁移功能。一般情况应关闭该功能,只在迁移数据时开启。默认:false +#ujcms.data-migration-enabled: false +# 是否显示商业版功能。默认:false +#ujcms.ep-display: true