- 15 Oct, 2021 1 commit
-
-
Kevin Morris authored
This reverts commit 986fa9ee.
-
- 03 Oct, 2021 1 commit
-
-
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 <kevr@0cost.org>
-
- 13 Jun, 2021 1 commit
-
-
- 30 Apr, 2017 1 commit
-
-
Lukas Fleischer authored
This allows for adding Terms of Service documents to the database that registered users need to accept before using the AUR. A revision field can be used to indicate whether a document was updated. If it is increased, all users are again asked to accept the new terms. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 27 Jun, 2015 1 commit
-
-
Lukas Fleischer authored
Until now, we used the same unit to register and edit accounts. Split these features into separate source files for clarity. This also allows us to redirect to the home page when a logged-in user tries to access the registration page. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 27 Dec, 2014 1 commit
-
-
Lukas Fleischer authored
* Remove package submission page from the web interface. * Replace PKGBUILD and tarball links with links to cgit. * Remove the "URLPath" field from RPC replies. Signed-off-by:
Lukas Fleischer <archlinux@cryptocrack.de>
-
- 13 Dec, 2014 1 commit
-
-
Lukas Fleischer authored
Refactor some of the URI generation code to avoid double slashes in absolute URIs. Signed-off-by:
Lukas Fleischer <archlinux@cryptocrack.de>
-
- 21 Nov, 2014 1 commit
-
-
Lukas Fleischer authored
Support for non-virtual URLs has been broken for a long time and is no longer used on the official AUR setup. Signed-off-by:
Lukas Fleischer <archlinux@cryptocrack.de>
-
- 24 Oct, 2014 1 commit
-
-
Lukas Fleischer authored
Replace web/lib/config.inc.php with an INI-style configuration file. This allows us to get rid of several globals and makes it easier to use the same configuration file in external scripts. Signed-off-by:
Lukas Fleischer <archlinux@cryptocrack.de>
-
- 25 Jun, 2014 2 commits
-
-
Lukas Fleischer authored
This allows Trusted Users to close package requests via the request list. Also, entries are now sorted such that open requests are shown before closed requests. Signed-off-by:
Lukas Fleischer <archlinux@cryptocrack.de>
-
Lukas Fleischer authored
Introduce a new navigation point "Requests" that shows a list of pending package requests. This functionality is only available to Trusted Users. Signed-off-by:
Lukas Fleischer <archlinux@cryptocrack.de>
-
- 05 Apr, 2014 2 commits
-
-
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:
Lukas Fleischer <archlinux@cryptocrack.de>
-
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:
Lukas Fleischer <archlinux@cryptocrack.de>
-
- 04 Nov, 2012 1 commit
-
-
Lukas Fleischer authored
Make sure we always return root-relative URIs in get_pkg_uri() and in get_user_uri() and prepend a slash ("/") if the virtual URL feature is disabled. Signed-off-by:
Lukas Fleischer <archlinux@cryptocrack.de>
-
- 17 Sep, 2012 1 commit
-
-
canyonknight authored
Navigation to the "AccountInfo" page should only require a user to know the username of the account they are looking for. Update all AUR links that use the user info page to reflect the new URL. Before: AUR_URL/account/?Action=AccountInfo&U=userfoo After: AUR_URL/account/userfoo Signed-off-by:
canyonknight <canyonknight@gmail.com> Signed-off-by:
Lukas Fleischer <archlinux@cryptocrack.de>
-
- 18 Jul, 2012 2 commits
-
-
Lukas Fleischer authored
Link to "/packages/$pkgname/voters/" instead of using "/voters/" and a get parameter to request a specific package by ID. Signed-off-by:
Lukas Fleischer <archlinux@cryptocrack.de>
-
Lukas Fleischer authored
Minor oversight when adding the routing back end in commit eb22bcc7 . Signed-off-by:
Lukas Fleischer <archlinux@cryptocrack.de>
-
- 17 Jul, 2012 1 commit
-
-
Lukas Fleischer authored
Return the correct route -- even if a "/" is appended to the URI. Signed-off-by:
Lukas Fleischer <archlinux@cryptocrack.de>
-
- 15 Jul, 2012 2 commits
-
-
Lukas Fleischer authored
Extend the routing front/back ends to allow for using "/package/$pkgname/" for individual packages. Signed-off-by:
Lukas Fleischer <archlinux@cryptocrack.de>
-
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:
Lukas Fleischer <archlinux@cryptocrack.de>
-