cm.yaml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. apiVersion: v1
  2. kind: ConfigMap
  3. metadata:
  4. name: gogs-app-ini
  5. namespace: cicd
  6. data:
  7. app.ini: |
  8. BRAND_NAME = Observe
  9. RUN_USER = git
  10. RUN_MODE = prod
  11. [database]
  12. TYPE = mysql
  13. HOST = gogs-mysql.cicd.svc.cluster.local:3306
  14. NAME = gogs
  15. SCHEMA = public
  16. USER = gogs
  17. PASSWORD = cecf@cestong.com
  18. SSL_MODE = disable
  19. PATH = /app/gogs/data/gogs.db
  20. [repository]
  21. ROOT = /data/git/gogs-repositories
  22. [server]
  23. DOMAIN = git.cestong.com.cn
  24. HTTP_PORT = 6161
  25. EXTERNAL_URL = http://git.cestong.com.cn
  26. DISABLE_SSH = false
  27. SSH_PORT = 8162
  28. START_SSH_SERVER = false
  29. OFFLINE_MODE = false
  30. [mailer]
  31. ENABLED = false
  32. [auth]
  33. REQUIRE_EMAIL_CONFIRMATION = false
  34. DISABLE_REGISTRATION = false
  35. ENABLE_REGISTRATION_CAPTCHA = true
  36. REQUIRE_SIGNIN_VIEW = false
  37. [user]
  38. ENABLE_EMAIL_NOTIFICATION = false
  39. [picture]
  40. DISABLE_GRAVATAR = false
  41. ENABLE_FEDERATED_AVATAR = false
  42. [session]
  43. PROVIDER = file
  44. [log]
  45. MODE = file
  46. LEVEL = Info
  47. ROOT_PATH = /app/gogs/log
  48. [security]
  49. INSTALL_LOCK = true
  50. SECRET_KEY = yrVPvcB2Li1vTtB
  51. LOCAL_NETWORK_ALLOWLIST = jenkins.cestong.com.cn
  52. [http]
  53. ACCESS_CONTROL_ALLOW_ORIGIN = *