app.ini.template 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. APP_NAME = Gogs: Go Git Service
  2. RUN_USER = git
  3. RUN_MODE = prod
  4. [database]
  5. ; these settings are protected and can't be modified
  6. DB_TYPE = mysql
  7. HOST = ##MYSQL_HOST:##MYSQL_PORT
  8. NAME = ##MYSQL_DATABASE
  9. USER = ##MYSQL_USERNAME
  10. PASSWD = ##MYSQL_PASSWORD
  11. SSL_MODE = disable
  12. PATH =
  13. [server]
  14. ; these settings are protected and can't be modified
  15. PROTOCOL = http
  16. DOMAIN = ##DOMAIN
  17. ROOT_URL = https://%(DOMAIN)s/
  18. HTTP_ADDR =
  19. HTTP_PORT = 3000
  20. DISABLE_SSH = ##DISABLE_SSH
  21. SSH_PORT = ##SSH_PORT
  22. APP_DATA_PATH = /app/data/appdata
  23. ; Landing page for non-logged users, can be "home" or "explore"
  24. LANDING_PAGE = explore
  25. [repository]
  26. ; these settings are protected and can't be modified
  27. ROOT = /app/data/repository
  28. SCRIPT_TYPE = bash
  29. [repository.upload]
  30. ENABLED = true
  31. TEMP_PATH = /run/gogs/tmp/uploads
  32. [release.attachment]
  33. ENABLED = true
  34. ; APP_DATA_PATH/attachments
  35. PATH =
  36. [mailer]
  37. ; these settings are protected and can't be modified
  38. ENABLED = true
  39. HOST = ##MAIL_SERVER:##MAIL_PORT
  40. USER = ##MAIL_SMTP_USERNAME
  41. PASSWD = ##MAIL_SMTP_PASSWORD
  42. FROM = ##MAIL_FROM
  43. SKIP_VERIFY = true
  44. [security]
  45. INSTALL_LOCK = true
  46. SECRET_KEY = ##SECRET_KEY
  47. [service]
  48. DISABLE_REGISTRATION = false
  49. SHOW_REGISTRATION_BUTTON = false
  50. ENABLE_NOTIFY_MAIL = true
  51. [log]
  52. ; these settings are protected and can't be modified
  53. ; Either "console", "file", "conn", "smtp" or "database", default is "console"
  54. MODE = console
  55. ; used for xorm.log
  56. ROOT_PATH = /run/gogs
  57. [picture]
  58. ; APP_DATA_PATH/avatars
  59. AVATAR_UPLOAD_PATH =
  60. GRAVATAR_SOURCE = gravatar
  61. DISABLE_GRAVATAR = false
  62. [attachment]
  63. ENABLE = true
  64. ; APP_DATA_PATH/attachments
  65. PATH =