app.ini.template 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. ; App name that shows on every page title
  2. APP_NAME = Gogs: Go Git Service
  3. ; Change it if you run locally
  4. RUN_USER = cloudron
  5. ; Either "dev", "prod" or "test", default is "dev"
  6. RUN_MODE = prod
  7. [repository]
  8. ROOT = /app/data
  9. SCRIPT_TYPE = bash
  10. [server]
  11. PROTOCOL = http
  12. DOMAIN = ##HOSTNAME
  13. ROOT_URL = https://%(DOMAIN)s/
  14. HTTP_ADDR =
  15. HTTP_PORT = 3000
  16. ; Disable SSH feature when not available
  17. DISABLE_SSH = false
  18. SSH_PORT = ##SSH_PORT
  19. ; Landing page for non-logged users, can be "home" or "explore"
  20. LANDING_PAGE = explore
  21. [database]
  22. ; Either "mysql", "postgres" or "sqlite3", it's your choice
  23. DB_TYPE = mysql
  24. HOST = ##MYSQL_HOST:##MYSQL_PORT
  25. NAME = ##MYSQL_DATABASE
  26. USER = ##MYSQL_USERNAME
  27. PASSWD = ##MYSQL_PASSWORD
  28. [admin]
  29. [security]
  30. INSTALL_LOCK = true
  31. [mailer]
  32. ENABLED = true
  33. ; Name displayed in mail title
  34. SUBJECT = %(APP_NAME)s
  35. ; Mail server
  36. ; Gmail: smtp.gmail.com:587
  37. ; QQ: smtp.qq.com:25
  38. ; Note, if the port ends with "465", SMTPS will be used. Using STARTTLS on port 587 is recommended per RFC 6409. If the server supports STARTTLS it will always be used.
  39. HOST = ##MAIL_SERVER:##MAIL_PORT
  40. ; Do not verify the certificate of the server. Only use this for self-signed certificates
  41. SKIP_VERIFY =
  42. ; Use client certificate
  43. USE_CERTIFICATE = false
  44. CERT_FILE =
  45. KEY_FILE =
  46. ; Mail from address, RFC 5322. This can be just an email address, or the "Name" <email@example.com> format
  47. FROM = ##MAIL_FROM
  48. ; Mailer user name and password
  49. USER =
  50. PASSWD =