1. 15 Oct, 2021 1 commit
  2. 03 Oct, 2021 1 commit
    • Kevin Morris's avatar
      feat(PHP): add aurweb Prometheus metrics · 986fa9ee
      Kevin Morris authored
      
      
      Along with this initial requests metric implementation,
      we also now serve the `/metrics` route, which grabs request
      metrics out of cache and renders them properly for Prometheus.
      
      **NOTE** Metrics are only enabled when the aurweb system admin
      has enabled caching by configuring `options.cache` correctly
      in `$AUR_CONFIG`. Otherwise, an error is logged about no cache
      being configured.
      
      New dependencies have been added which require the use of
      `composer`. See `INSTALL` for the dependency section in regards
      to composer dependencies and how to install them properly for
      aurweb.
      
      Metrics are in the following forms:
      
          aurweb_http_requests_count(method="GET",route="/some_route")
          aurweb_api_requests_count(method="GET",route="/rpc",type="search")
      
      This should allow us to search through the requests for specific routes
      and queries.
      Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
      986fa9ee
  3. 13 Jun, 2021 1 commit
  4. 30 Apr, 2017 1 commit
  5. 27 Jun, 2015 1 commit
  6. 27 Dec, 2014 1 commit
  7. 13 Dec, 2014 1 commit
  8. 21 Nov, 2014 1 commit
  9. 24 Oct, 2014 1 commit
  10. 25 Jun, 2014 2 commits
  11. 05 Apr, 2014 2 commits
    • Lukas Fleischer's avatar
      Add package base detail pages · f7d13b5b
      Lukas Fleischer authored
      
      
      This adds package base details pages, similar to the package details
      pages. Each package base details page contains general information
      (package base name, category, submitter, maintainer, ...) and links to
      all the corresponding packages. As on the package details pages,
      comments and links to several package actions are also provided.
      Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
      f7d13b5b
    • Lukas Fleischer's avatar
      routing.inc.php: Add get_pkgbase_uri() · 45bd1b34
      Lukas Fleischer authored
      
      
      This will be used to create links to package base pages later. For now,
      this just returns a link to the corresponding package page since a
      package base currently only consists of a single package having the same
      name as the base itself.
      Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
      45bd1b34
  12. 04 Nov, 2012 1 commit
  13. 17 Sep, 2012 1 commit
  14. 18 Jul, 2012 2 commits
  15. 17 Jul, 2012 1 commit
  16. 15 Jul, 2012 2 commits
    • Lukas Fleischer's avatar
      Use virtual paths for package details · 03486c3b
      Lukas Fleischer authored
      
      
      Extend the routing front/back ends to allow for using
      "/package/$pkgname/" for individual packages.
      Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
      03486c3b
    • Lukas Fleischer's avatar
      Add routing front/back ends · eb22bcc7
      Lukas Fleischer authored
      
      
      This adds a URL mapping library that can be used to implement virtual
      paths. Also, "web/html/index.php" is moved to "web/html/home.php" and
      "web/html/index.php" becomes a routing front end that maps virtual paths
      to corresponding files.
      
      To enable the virtual path feature, all requests need to be redirected
      to the "index.php" routing script. If you use lighttpd, following
      rewrite rule can be used:
      
          url.rewrite = ( "^(.*)$" => "/index.php/$1" )
      
      A similar rule can be used for Apache (using mod_rewrite).
      
      Note that the current routing front end only works if PATH_INFO is
      provided.
      Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
      eb22bcc7