app.ini.template 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 = https
  12. DOMAIN = ##HOSTNAME
  13. ROOT_URL = %(PROTOCOL)s://%(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. [mailer]
  29. ENABLED = true
  30. ; Name displayed in mail title
  31. SUBJECT = %(APP_NAME)s
  32. ; Mail server
  33. ; Gmail: smtp.gmail.com:587
  34. ; QQ: smtp.qq.com:25
  35. ; 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.
  36. HOST = ##MAIL_SERVER
  37. ; Do not verify the certificate of the server. Only use this for self-signed certificates
  38. SKIP_VERIFY =
  39. ; Use client certificate
  40. USE_CERTIFICATE = false
  41. CERT_FILE =
  42. KEY_FILE =
  43. ; Mail from address, RFC 5322. This can be just an email address, or the "Name" <email@example.com> format
  44. FROM = ##MAIL_FROM
  45. ; Mailer user name and password
  46. USER =
  47. PASSWD =