暫無描述
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.

etc_gitea_app_ini.j2 930B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. ; sovereign gitea config file
  2. ; see https://github.com/go-gitea/gitea/blob/master/custom/conf/app.ini.sample
  3. APP_NAME = {{ domain }} Gitea
  4. RUN_MODE = prod
  5. [repository]
  6. ROOT = /data/gitea/repos
  7. [ui]
  8. DEFAULT_THEME = arc-green
  9. [server]
  10. PROTOCOL = http
  11. DOMAIN = {{ gitea_domain }}
  12. HTTP_ADDR = 127.0.0.1
  13. HTTP_PORT = 3000
  14. LANDING_PAGE = explore
  15. ROOT_URL = https://{{ gitea_domain }}/
  16. [database]
  17. DB_TYPE = postgres
  18. HOST = 127.0.0.1:5432
  19. NAME = {{ gitea_db_database }}
  20. USER = {{ gitea_db_username }}
  21. PASSWD = `{{ gitea_db_password }}`
  22. SSL_MODE = disable
  23. [service]
  24. DISABLE_REGISTRATION = true
  25. ENABLE_NOTIFY_MAIL = true
  26. [security]
  27. INSTALL_LOCK = true
  28. SECRET_KEY = {{ gitea_secret }}
  29. [mailer]
  30. ENABLED = true
  31. FROM = gitea@{{ domain }}
  32. MAILER_TYPE = sendmail
  33. [log]
  34. ROOT_PATH = /data/gitea/log
  35. MODE = file
  36. LEVEL = Info
  37. [log.file]
  38. LEVEL = Info
  39. LOG_ROTATE = true
  40. MAX_LINES = 1000000
  41. MAX_SIZE_SHIFT = 28
  42. DAILY_ROTATE = true
  43. MAX_DAYS = 7