hectorqin / reader

阅读3服务器版,桌面端,iOS可用。后端 Kotlin + Spring Boot + Vert.x + Coroutine ;前端 Vue.js + Element。麻烦点点star,关注一下公众号【假装大佬】❗️ Demo服务器由于未备案已被关停,建议自行搭建
GNU General Public License v3.0
8.42k stars 5.24k forks source link

用户数量限制在非docker 环境里如果设置呢? #422

Closed spring-reader closed 1 year ago

spring-reader commented 1 year ago

请问用户数量等参数在非docker环境里如果设置呢,是以参数的形式传递给java 么,还是以配置文件的形式提供。如果以配置文件的形式提供应该放在什么位置,如何命名呢,感谢。


reader:
  app:
    workDir: "."
    showUI: false
    debug: false
    packaged: false
    secure: false
    inviteCode: ""
    secureKey: ""
    proxy: false
    proxyType: "HTTP"
    proxyHost: ""
    proxyPort: ""
    proxyUsername: ""
    proxyPassword: ""
    cacheChapterContent: true
    userLimit: 15
    userBookLimit: 200
    debugLog: false
    autoClearInactiveUser: 0
    mongoUri: ""
    mongoDbName: "reader"
    shelfUpdateInteval: 10
    remoteWebviewApi: ""
    defaultUserEnableWebdav: true  # 用户是否默认启用webdav
    defaultUserEnableLocalStore: true # 用户是否默认启用localStore
    defaultUserEnableBookSource: true  # 用户是否默认启用书源编辑
    defaultUserEnableRssSource: true   # 用户是否默认启用RSS源编辑
    defaultUserBookSourceLimit: 100  # 用户默认书源上限
    defaultUserBookLimit: 200    # 用户默认书籍上限

  server:
    port: 8080
    contextPath: ""
    webUrl: http://localhost:${reader.server.port}${reader.server.contextPath}

logging:
  path: "${reader.app.workDir}/logs"
hectorqin commented 1 year ago

参数形式传参,如 java -jar reader.jar --reader.app.secure=true