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.

55 lines
1.1 KiB

Repository avatars (#6986) * Repository avatars - first variant of code from old work for gogs - add migration 87 - add new option in app.ini - add en-US locale string - add new class in repository.less * Add changed index.css, remove unused template name * Update en-us doc about configuration options * Add comments to new functions, add new option to docker app.ini * Add comment for lint * Remove variable, not needed * Fix formatting * Update swagger api template * Check if avatar exists * Fix avatar link/path checks * Typo * TEXT column can't have a default value * Fixes: - remove old avatar file on upload - use ID in name of avatar file - users may upload same files - add simple tests * Fix fmt check * Generate PNG instead of "static" GIF * More informative comment * Fix error message * Update avatar upload checks: - add file size check - add new option - update config docs - add new string to en-us locale * Fixes: - use FileHEader field for check file size - add new test - upload big image * Fix formatting * Update comments * Update log message * Removed wrong style - not needed * Use Sync2 to migrate * Update repos list view - bigger avatar - fix html blocks alignment * A little adjust avatar size * Use small icons for explore/repo list * Use new cool avatar preparation func by @lafriks * Missing changes for new function * Remove unused import, move imports * Missed new option definition in app.ini Add file size check in user/profile avatar upload * Use smaller field length for Avatar * Use session to update repo DB data, update DeleteAvatar - use session too * Fix err variable definition * As suggested @lafriks - return as soon as possible, code readability
5 years ago
  1. APP_NAME = $APP_NAME
  2. RUN_MODE = $RUN_MODE
  3. [repository]
  4. ROOT = /data/git/repositories
  5. [repository.local]
  6. LOCAL_COPY_PATH = /data/gitea/tmp/local-repo
  7. [repository.upload]
  8. TEMP_PATH = /data/gitea/uploads
  9. [server]
  10. APP_DATA_PATH = /data/gitea
  11. DOMAIN = $DOMAIN
  12. SSH_DOMAIN = $SSH_DOMAIN
  13. HTTP_PORT = $HTTP_PORT
  14. ROOT_URL = $ROOT_URL
  15. DISABLE_SSH = $DISABLE_SSH
  16. SSH_PORT = $SSH_PORT
  17. SSH_LISTEN_PORT = $SSH_LISTEN_PORT
  18. LFS_START_SERVER = $LFS_START_SERVER
  19. LFS_CONTENT_PATH = /data/git/lfs
  20. [database]
  21. PATH = /data/gitea/gitea.db
  22. DB_TYPE = $DB_TYPE
  23. HOST = $DB_HOST
  24. NAME = $DB_NAME
  25. USER = $DB_USER
  26. PASSWD = $DB_PASSWD
  27. [indexer]
  28. ISSUE_INDEXER_PATH = /data/gitea/indexers/issues.bleve
  29. [session]
  30. PROVIDER_CONFIG = /data/gitea/sessions
  31. [picture]
  32. AVATAR_UPLOAD_PATH = /data/gitea/avatars
  33. REPOSITORY_AVATAR_UPLOAD_PATH = /data/gitea/repo-avatars
  34. [attachment]
  35. PATH = /data/gitea/attachments
  36. [log]
  37. ROOT_PATH = /data/gitea/log
  38. [security]
  39. INSTALL_LOCK = $INSTALL_LOCK
  40. SECRET_KEY = $SECRET_KEY
  41. [service]
  42. DISABLE_REGISTRATION = $DISABLE_REGISTRATION
  43. REQUIRE_SIGNIN_VIEW = $REQUIRE_SIGNIN_VIEW