A painless self-hosted Git service
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.

40 lines
865 B

  1. APP_NAME = {{ env "GITEA_APP_NAME" }}
  2. RUN_MODE = prod
  3. [database]
  4. DB_TYPE = {{ env "GITEA_DB_TYPE" }}
  5. HOST = {{ env "GITEA_DB_HOST" }}
  6. NAME = {{ env "GITEA_DB_NAME" }}
  7. PASSWD = {{ secret "db_passwd" }}
  8. USER = {{ env "GITEA_DB_USER" }}
  9. [repository]
  10. DEFAULT_BRANCH = main
  11. [indexer]
  12. STARTUP_TIMEOUT = 0
  13. [server]
  14. APP_DATA_PATH = /data
  15. DOMAIN = {{ env "GITEA_DOMAIN" }}
  16. ROOT_URL = https://%(DOMAIN)s/
  17. SSH_DOMAIN = {{ env "GITEA_DOMAIN" }}
  18. SSH_LISTEN_PORT = {{ env "GITEA_SSH_PORT" }}
  19. SSH_PORT = {{ env "GITEA_SSH_PORT" }}
  20. START_SSH_SERVER = true
  21. [security]
  22. INSTALL_LOCK = true
  23. INTERNAL_TOKEN = {{ secret "internal_token" }}
  24. SECRET_KEY = {{ secret "secret_key" }}
  25. [oauth2]
  26. JWT_SECRET = {{ secret "jwt_secret" }}
  27. [picture]
  28. AVATAR_UPLOAD_PATH = /data/gitea/avatars
  29. REPOSITORY_AVATAR_UPLOAD_PATH = /data/gitea/repo-avatars
  30. [attachment]
  31. PATH = /data/gitea/attachments