gitea源码

global.go 536B

12345678910111213141516171819
  1. // Copyright 2024 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package setting
  4. // Global settings
  5. var (
  6. // RunUser is the OS user that Gitea is running as. ini:"RUN_USER"
  7. RunUser string
  8. // RunMode is the running mode of Gitea, it only accepts two values: "dev" and "prod".
  9. // Non-dev values will be replaced by "prod". ini: "RUN_MODE"
  10. RunMode string
  11. // IsProd is true if RunMode is not "dev"
  12. IsProd bool
  13. // AppName is the Application name, used in the page title. ini: "APP_NAME"
  14. AppName string
  15. )