You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

100 lines
2.4 KiB

  1. #!/bin/bash
  2. ## Init is run on host
  3. ## For now it is run every time the script is launched, but
  4. ## it should be launched only once after build.
  5. ## Accessible variables are:
  6. ## - SERVICE_NAME Name of current service
  7. ## - DOCKER_BASE_IMAGE Base image from which this service might be built if any
  8. ## - SERVICE_DATASTORE Location on host of the DATASTORE of this service
  9. ## - SERVICE_CONFIGSTORE Location on host of the CONFIGSTORE of this service
  10. set -e
  11. . lib/common
  12. mkdir -p "$(dirname "$SERVICE_DATASTORE$CONFIG_FILE")"
  13. cat <<EOF > "$SERVICE_DATASTORE$CONFIG_FILE"
  14. APP_NAME = Gitea: Git with a cup of tea
  15. RUN_MODE = prod
  16. RUN_USER = git
  17. [repository]
  18. ROOT = /data/git/repositories
  19. [repository.local]
  20. LOCAL_COPY_PATH = /data/gitea/tmp/local-repo
  21. [repository.upload]
  22. TEMP_PATH = /data/gitea/uploads
  23. [server]
  24. APP_DATA_PATH = /data/gitea
  25. SSH_DOMAIN = localhost
  26. HTTP_PORT = 3000
  27. ROOT_URL = http://$SERVICE_NAME:3000/
  28. DISABLE_SSH = false
  29. SSH_PORT = 5022
  30. LFS_CONTENT_PATH = /data/git/lfs
  31. DOMAIN = localhost
  32. LFS_START_SERVER = true
  33. LFS_JWT_SECRET = j5N_xbVaT12B6qMM5Zc2jy0gSJPOAxGICGKio0Q8Ygo
  34. OFFLINE_MODE = false
  35. [database]
  36. PATH = /data/gitea/gitea.db
  37. DB_TYPE = sqlite3
  38. HOST = postgres
  39. NAME = gitea
  40. USER = root
  41. PASSWD =
  42. SSL_MODE = disable
  43. [indexer]
  44. ISSUE_INDEXER_PATH = /data/gitea/indexers/issues.bleve
  45. [session]
  46. PROVIDER_CONFIG = /data/gitea/sessions
  47. PROVIDER = file
  48. [picture]
  49. AVATAR_UPLOAD_PATH = /data/gitea/avatars
  50. DISABLE_GRAVATAR = false
  51. ENABLE_FEDERATED_AVATAR = true
  52. [attachment]
  53. PATH = /data/gitea/attachments
  54. [log]
  55. ROOT_PATH = /data/gitea/log
  56. MODE = file
  57. LEVEL = Info
  58. [security]
  59. INSTALL_LOCK = true
  60. SECRET_KEY = ZmxgxfSNZZgMEm3MJW1Nn6BfWqSuats7MIHQvgGD2AwIH2Vdx1L77yw569bWJXPI
  61. INTERNAL_TOKEN = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE1NDgyNDE1OTR9.1Uu3crRVkqamIL5U2axcRJh-HEEZzMLbrLvHlhgTv0g
  62. [service]
  63. DISABLE_REGISTRATION = false
  64. REQUIRE_SIGNIN_VIEW = false
  65. REGISTER_EMAIL_CONFIRM = false
  66. ENABLE_NOTIFY_MAIL = false
  67. ALLOW_ONLY_EXTERNAL_REGISTRATION = false
  68. ENABLE_CAPTCHA = false
  69. DEFAULT_KEEP_EMAIL_PRIVATE = false
  70. DEFAULT_ALLOW_CREATE_ORGANIZATION = true
  71. DEFAULT_ENABLE_TIMETRACKING = true
  72. NO_REPLY_ADDRESS = noreply.example.org
  73. [mailer]
  74. ENABLED = false
  75. [openid]
  76. ENABLE_OPENID_SIGNIN = false
  77. ENABLE_OPENID_SIGNUP = false
  78. EOF