1. 01 Apr, 2022 1 commit
    • wxiaoguang's avatar
      Remove legacy `unknwon/com` package (#19298) · 4f27c289
      wxiaoguang authored
      Follows: #19284
      * The `CopyDir` is only used inside test code
      * Rewrite `ToSnakeCase` with more test cases
      * The `RedisCacher` only put strings into cache, here we use internal `toStr` to replace the legacy `ToStr`
      * The `UniqueQueue` can use string as ID directly, no need to call `ToStr`
      Unverified
      4f27c289
  2. 31 Mar, 2022 2 commits
    • Kevin Burke's avatar
      go.mod: update kevinburke/ssh_config to v1.2.0 (#19286) · 242d7103
      Kevin Burke authored
      Previously if you tried to read a HostName in a config file that
      looked like this:
      
      ```
      Host github
          HostName github.com        # This is the host for code review
      ```
      
      DefaultUserSettings.Get("HostName") would return "github.com        ",
      which I think is unintuitive and unexpected.
      
      This behavior is fixed in v1.2 which would return "github.com" in the
      above example.
      Unverified
      242d7103
    • zeripath's avatar
      Add Goroutine stack inspector to admin/monitor (#19207) · c88547ce
      zeripath authored
      
      Continues on from #19202.
      
      Following the addition of pprof labels we can now more easily understand the relationship between a goroutine and the requests that spawn them. 
      
      This PR takes advantage of the labels and adds a few others, then provides a mechanism for the monitoring page to query the pprof goroutine profile.
      
      The binary profile that results from this profile is immediately piped in to the google library for parsing this and then stack traces are formed for the goroutines.
      
      If the goroutine is within a context or has been created from a goroutine within a process context it will acquire the process description labels for that process. 
      
      The goroutines are mapped with there associate pids and any that do not have an associated pid are placed in a group at the bottom as unbound.
      
      In this way we should be able to more easily examine goroutines that have been stuck.
      
      A manager command `gitea manager processes` is also provided that can export the processes (with or without stacktraces) to the command line.
      Signed-off-by: default avatarAndrew Thornton <art27@cantab.net>
      Unverified
      c88547ce
  3. 30 Mar, 2022 1 commit
    • Justin Sievenpiper's avatar
      Add Redis Sentinel Authentication Support (#19213) · a2c20a6c
      Justin Sievenpiper authored
      Gitea was not able to supply any authentication parameters to it. So this brings support to do that, along with some light extraction of a couple of bits into some separate functions for easier testing.
      
      I looked at other libraries supporting similar RedisUri-style connection strings (e.g. Lettuce), but it looks like this type of configuration is beyond what would typically be done in a connection string. Since gitea doesn't have configuration options for manually specifying all this redis connection detail, I went ahead and just chose straightforward names for these new parameters.
      Unverified
      a2c20a6c
  4. 24 Mar, 2022 1 commit
  5. 16 Mar, 2022 3 commits
  6. 09 Mar, 2022 1 commit
  7. 08 Mar, 2022 1 commit
    • techknowlogick's avatar
      bump go deps (#19021) · 1546580f
      techknowlogick authored
      * update gitea.com/go-chi/binding
      
      * update gitea.com/go-chi/cache
      
      * update github.com/42wim/sshsig
      
      * update github.com/PuerkitoBio/goquery
      
      * update github.com/blevesearch/bleve/v2
      
      * update github.com/caddyserver/certmagic
      
      * update github.com/denisenkom/go-mssqldb
      
      * update github.com/duo-labs/webauthn
      
      * update github.com/dustin/go-humanize
      
      * update github.com/editorconfig/editorconfig-core-go/v2
      
      * update github.com/ethantkoenig/rupture
      
      * update github.com/go-chi/chi/v5
      
      * update github.com/go-git/go-git/v5
      
      * update github.com/go-ldap/ldap/v3
      
      * update github.com/go-redis/redis/v8
      
      * update github.com/go-swagger/go-swagger
      
      * update github.com/gogs/chardet
      
      * update github.com/golang-jwt/jwt/v4
      
      * update github.com/hashicorp/go-version
      
      * update github.com/jaytaylor/html2text
      
      * update github.com/klauspost/compress
      
      * update github.com/lib/pq
      
      * update github.com/markbates/goth
      
      * update github.com/mattn/go-sqlite3
      
      * update g...
      Unverified
      1546580f
  8. 04 Mar, 2022 1 commit
  9. 27 Feb, 2022 1 commit
  10. 20 Feb, 2022 1 commit
  11. 06 Feb, 2022 2 commits
  12. 29 Jan, 2022 1 commit
  13. 26 Jan, 2022 2 commits
  14. 22 Jan, 2022 1 commit
  15. 20 Jan, 2022 1 commit
  16. 18 Jan, 2022 1 commit
  17. 14 Jan, 2022 1 commit
  18. 07 Jan, 2022 1 commit
  19. 05 Jan, 2022 1 commit
  20. 01 Jan, 2022 2 commits
  21. 20 Dec, 2021 2 commits
  22. 19 Dec, 2021 1 commit
  23. 02 Dec, 2021 1 commit
  24. 20 Nov, 2021 1 commit
  25. 19 Nov, 2021 1 commit
    • wxiaoguang's avatar
      Better builtin avatar generator (#17707) · a8fd7655
      wxiaoguang authored
      This PR fixes the builtin avatar generator.
      
      1. The random background color makes some images very dirty. So now we only use white background for avatars.
      2. We use left-right mirror avatars to satisfy #14799
      3. Fix a small padding error in the algorithm
      Unverified
      a8fd7655
  26. 03 Nov, 2021 1 commit
  27. 26 Oct, 2021 1 commit
  28. 20 Oct, 2021 1 commit
  29. 16 Oct, 2021 1 commit
  30. 14 Oct, 2021 1 commit
  31. 29 Sep, 2021 1 commit
  32. 16 Sep, 2021 1 commit
  33. 13 Sep, 2021 1 commit