Commit Graph
246 Commits
Author SHA1 Message Date
robert dennis 2f01a047df add lifecycle hook support for install events 2026-06-05 12:25:30 -04:00
DaneEveritt 6c60596421 bump rate limits until we can improve some bad endpoint calls 2026-02-14 11:27:06 -08:00
Dane Everitt a81c3b4d52 Add support for stripe-style identifiers on existing models with UUIDs (#5548)
This is a partial implementation to begin moving towards stripe-style
identifiers for resources in the system. Any models with an existing
`uuid` column can easily be updated to return an identifier in the
format of `prfx_xyz` where `prfx` is a four character prefix, and `xyz`
is the UUID, encoded using base-32.

These are quite easy to use within the API layer because we just need to
do one quick transformation to extract the UUID for those models. This
PR implements that logic for servers in the `SubstituteClientBindings`
logic.

A future PR will need to come through and handle identifiers for models
that _don't_ currently use UUIDs for reference that we want to expose to
clients. In those cases it is easier to just generate base-32 encoded
UUID7s that get stored in the database and indexed. They follow the same
base approach, but you don't need to do any transformations in the code
(other than stripping the prefix, unless we decide to store the prefix).

There is also now a `PTERODACTYL_USE_SERVER_IDENTIFIERS` environment
variable, that when set to true, updates the front-end and API response
to use this new identifier in place of the `uuidShort` value.
2026-02-14 11:21:57 -08:00
Sam Schumacher d4580076c2 Cast presigned URL lifespan to integer (#5515) 2026-01-10 10:01:57 -08:00
Всеволод МельникandDaneEveritt 09caa0d499 Merge commit from fork
* Add throttling to resource creation endpoints

* Fix middleware registration for the throttlers

* Lock the server's resource models when adding new ones

* Throttle subusers even more

---------

Co-authored-by: DaneEveritt <dane@daneeveritt.com>
2026-01-05 16:05:38 -08:00
Dane Everitt a264791fd4 Update PHP and JS dependencies to latest versions and modernize codebase (#5446) 2025-12-20 15:55:13 -08:00
Matthew Penner 8ca098940a chore: update composer dependencies (#5198)
Signed-off-by: Matthew Penner <me@matthewp.io>
2024-10-21 19:18:20 -06:00
Matthew Penner 1d38b4f0e2 Laravel 10 (#4706) 2023-02-23 12:30:16 -07:00
Matthew Penner 6377e3309a config(queue): fix queue names 2022-12-12 14:29:19 -07:00
Matthew Penner c14fc1ccb0 config(mail): fix SERVER_NAME; closes #4600 2022-12-12 14:26:07 -07:00
Matthew Penner 250c557e23 telemetry: include more detailed server egg and nest usage 2022-12-01 12:09:27 -07:00
Matthew Penner 794248d4d7 routes: fix imports 2022-12-01 11:51:26 -07:00
Matthew Penner ee033d6d08 Telemetry (#4564) 2022-11-22 13:39:43 -07:00
Matthew Penner 846ff7644f Fix missing email sender 2022-10-31 11:02:34 -06:00
Matthew Penner 1b78030291 Fix compatibility with old queue names 2022-10-31 10:58:32 -06:00
Matthew PennerandDaneEveritt cbcf62086f Upgrade to Laravel 9 (#4413)
Co-authored-by: DaneEveritt <dane@daneeveritt.com>
2022-10-14 10:59:20 -06:00
Matthew Penner 44598bf724 Support configuring storage class for S3 backup uploads (#4399)
Closes <https://github.com/pterodactyl/panel/issues/4072>
2022-10-04 19:39:25 -06:00
Pascal Zarrad 1ca4b08b48 backups: add S3 part size configuration (#4382) 2022-09-25 14:38:49 -06:00
Matthew Penner 8e1a21563e server: add configuration for install notifications (#4331)
* server: track `installed_at`, only send install notification on first install
* server: add configuration for install notifications
2022-09-25 13:16:58 -06:00
DaneEveritt abac317802 Make recaptcha domain configurable 2022-07-24 17:13:17 -04:00
DaneEveritt 271197e823 Fix cs-fix run 2022-06-26 16:21:07 -04:00
DaneEveritt cf01490883 Support hiding activity from admin accounts not associated with the server 2022-06-18 15:48:22 -04:00
DaneEveritt 92c1c162af Code cleanup for facades 2022-06-18 12:07:32 -04:00
DaneEveritt 21ca91abd0 Allow SES region configuration; closes #4124 2022-06-05 13:32:36 -04:00
DaneEveritt 5143faa4b1 Update changelog 2022-05-30 11:40:21 -04:00
DaneEveritt e15985ea39 Add support for automatically pruning activity logs 2022-05-29 19:45:00 -04:00
DaneEveritt 5bb66a00d8 Add new activity logging code to replace audit log 2022-05-28 15:36:26 -04:00
DaneEveritt dca53611ff Ensure we don't cause a mess with the auth providers 2022-05-22 18:16:47 -04:00
DaneEveritt bd37978a98 Initial pass at implementing Laravel Sanctum for authorization on the API 2022-05-22 14:57:06 -04:00
DaneEveritt 44bb8b4abf Fix bad config for PHP 8.1 2022-05-07 18:33:41 -04:00
DaneEveritt 66da520e11 Simplify testing process for integration tests, don't require second connection 2022-05-04 20:41:04 -04:00
DaneEveritt f5ad9b9e11 Replace debug bar with clockwork 2022-05-04 19:19:00 -04:00
DaneEveritt 34ffaebd3e Run cs-fix, ensure we only install dependency versions supporting 7.4+ 2022-05-04 19:01:29 -04:00
Dane Everitt 0bd182c2a7 Lower the default guzzle timeouts; ref pterodactyl/panel#3936 2022-02-05 12:33:54 -05:00
Alex 05bdffcd61 ref: set redis as default option for env drivers setup (#3915)
Redis is the recommended value yet the default options are different, e.g cache being file.
2022-02-05 09:05:18 -08:00
Omar Kamel b67aceb685 Add environment variable for per_schedule_task_limit (#3557)
The environment variable `PTERODACTYL_PER_SCHEDULE_TASK_LIMIT` can be used to change the maximum number of tasks per schedule.
2021-08-20 11:07:05 -06:00
Dane Everitt 25d9ba4779 Run php-cs-fixer 2021-08-15 17:20:36 -07:00
Matthew Penner 801cb8e487 config: add ssl/tls options for mysql and redis (#3464) 2021-07-17 10:01:23 -07:00
Lukas 75d254a6a4 Add support for mailgun API endpoint (#3364) 2021-06-05 08:38:47 -07:00
Dane EverittandMatthew Penner a043071e3c Update to Laravel 8
Co-authored-by: Matthew Penner <me@matthewp.io>
2021-01-23 12:12:54 -08:00
Dane Everitt 794cf9d9dd Make backup throttling configurable 2020-12-27 16:41:53 -08:00
Matthew Penner 17ca3659c5 Change 'backups.prune_age' default to 6 hours 2020-12-19 11:50:35 -07:00
Matthew Penner e34d31a58c Allow changing the prune age for backups 2020-12-16 14:15:07 -07:00
Matthew Penner a5cebd6bcf s3 backups: handle CompleteMultipartUpload and AbortMultipartUpload on the panel instead of in wings, add BACKUP_PRESIGNED_URL_LIFESPAN environment variable 2020-12-06 13:53:55 -07:00
Oreo Oreoniv 99c14ca422 Fixed an error when trying to install dependencies without a .env file 2020-11-24 22:48:27 +03:00
Dane Everitt aba7df3afa Basic concept for the EULA feature to demo how this will all work 2020-11-02 20:52:41 -08:00
Charles Morgan 6ac5741d8a Update app.php 2020-11-01 03:19:28 -05:00
Dane Everitt c6bd7ff661 Improve logic handle auto-allocation of ports for a server 2020-10-31 14:58:15 -07:00
Dane Everitt 665a4dd8a4 Merge branch 'develop' into develop 2020-10-31 13:47:12 -07:00
Matthew Penner fcdf154a12 Add more environment variables for S3 filesystem options 2020-10-29 19:39:55 -06:00