Commit Graph

50 Commits (163cd9f589a485e6191c7ba8b3fa8f666deb80c8)

Author SHA1 Message Date
Your Name 163cd9f589 polish 1 week ago
Your Name 99c3f2f6ba Default image driver to vips
Switch IMAGE_DRIVER default from gd to vips in config/image.php and the
shipped .env examples. libvips is faster, lower-memory, and has strong
WebP/AVIF support; both libvips and the php-vips extension ship in the
official Docker image. ImageDriverManager already maps 'vips' to the
installed Intervention Vips driver, so no code change is needed.

.env.testing stays on gd because the CI test runners install the gd
extension, not php-vips.
1 week ago
Your Name 5a364be58b fix: remove deprecated Passport::personalAccessClientId() and enableImplicitGrant()
- Remove Passport::personalAccessClientId() (removed in Passport v13, auto-discovers now)
- Remove Passport::enableImplicitGrant() (legacy grant, no clients use it)
- Flatten config instance.oauth.pat to pat_enabled (remove dead pat.id key)
- Add OAUTH_PAT_ENABLED=false to .env.example and .env.docker.example
- Show swal alert when PATs disabled instead of hidden API error
- Improve store() error handling to surface 403 messages in the UI
- Remove OAUTH_PAT_ID row from admin diagnostics blade
4 weeks ago
Your Name 8a2649b3ff feat: add critical path test suite and fix auth/config issues
Test Infrastructure:
- Modernize phpunit.xml (bootstrap, source block, Laravel 12 env vars)
- Configure tests/Pest.php with pest()->extend(TestCase::class)->in('Feature')
- Add docker-compose.test.yml (Redis for test suite)
- Add composer test/test:quick scripts
- Rename CACHE_DRIVER to CACHE_STORE across config (backwards compatible)
- Update .env.testing for in-memory SQLite + Docker Redis

Test Coverage (190 tests):
- CriticalRoutes: public routes, auth routes, API endpoints, middleware, schedule
- Auth/LoginTest: login, logout, rate limiting, redirect behavior
- Auth/RegisterTest: registration flow, validation, disabled registration
- Auth/PasswordResetTest: reset request, token validation, password update
- Auth/TwoFactorTest: 2FA checkpoint, setup behind password confirmation
- Auth/PasswordConfirmationTest: sudo mode flow via Laravel password.confirm
- Api/ScopeTest: scope enforcement, public endpoints, admin access

Bugs Fixed:
- Fix unauthenticated API returning 500 instead of 401 (AuthenticationException
  not handled in custom exception renderer in bootstrap/app.php)
- Replace custom DangerZone middleware with Laravel password.confirm
- Add HasFactory trait to Profile model for test factories

Bugs Documented (known-bugs group):
- Registration crashes with str_ends_with TypeError (RegisterController:82)
- OAuth routes use legacy array syntax causing ReflectionFunction TypeError
4 weeks ago
Shlee ec2b758bc5
Add IMAGE_DRIVER option to .env.example 4 weeks ago
Shlee ea8156a247
Update .env.example 7 months ago
Shlee b9232abd1c
Update .env.example 10 months ago
Ramon van Belzen 779906cd6a
closing brackets for ENABLE_CONFIG_CACHE in .env.example 1 year ago
daniel 6276d3539a
Staging (#5674)
* Update .env.docker

Registry has changed. Old registry has been discontinued in August 2024. New Registry added, format of Docker tag has been adjusted as it now contains the Debian Release as well.

Sample Version is set to current stable but can be adjusted to any of the available branches.

* Update .env.docker

Stick major.minor according to https://jippi.github.io/docker-pixelfed/customize/tags/#pixelfed-version

Disable Debian Release Check until it's solved in dottie.

Closes https://github.com/pixelfed/pixelfed/issues/5264

* New translations web.php (Finnish)
[ci skip]

* New translations web.php (Finnish)
[ci skip]

* fix: don't restore memory limit after cities import

Since this command can only be invoked by CLI, the process will exit after a successful import, so restoring the transient PHP memory limit doesn't really have any affect.

In PHP 8.4, this throws the following error (which doesn't happen in 8.3 and below)

> [entrypoint / 11-first-time-setup.sh] - (stderr) 128769/128769 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%[2025-01-20 11:29:23] production.ERROR: Failed to set memory limit to 134217728 bytes (Current memory usage is 134746112 bytes) {"exception":"[object] (ErrorException(code: 0): Failed to set memory limit to 134217728 bytes (Current memory usage is 134746112 bytes) at /var/www/app/Console/Commands/ImportCities.php:140)

It seems to be a 8.4 behavior change, so removing the logic would make it go away

* New translations web.php (Finnish)
[ci skip]

* New translations web.php (Finnish)
[ci skip]

* New translations web.php (Portuguese)
[ci skip]

* New translations web.php (Portuguese)
[ci skip]

* fix(compose-modal): avoid WebGL if it's not needed

* fix(compose-modal): update webgl-media-editor

* New translations web.php (Hungarian)
[ci skip]

* New translations web.php (Russian)
[ci skip]

* New translations web.php (Russian)
[ci skip]

* Update .env.example

Adding the parameter INSTANCE_DISCOVER_PUBLIC="true" to prevent a HTTP 403 error at the explorer tab in the instance preview.

* New variable for lang spanish

* Variable for lang spanish

* Update Dockerfile, fixes #5535 #5559

* Fix #5582

* Fix #5632

* Update status twitter:card to summary_large_image for images/albums

* Update changelog

---------

Co-authored-by: Lioh Moeller <lioh.moeller@gmx.net>
Co-authored-by: Christian Winther <jippignu@gmail.com>
Co-authored-by: Taye Adeyemi <dev@taye.me>
Co-authored-by: stemy2 <stemy2@users.noreply.github.com>
Co-authored-by: Uthanien <feldarec@gmail.com>
2 years ago
Daniel Supernault 60a62b59c9
Update ConfigCacheService, fix database race condition and fallback to file config and enable by default 2 years ago
Daniel Supernault e46bd6cc06
Disable config cache by default 2 years ago
Daniel Supernault 4608c66c0b
Re-add .env.example 2 years ago
Christian Winther bc66b6da18 many small fixes and improvements 3 years ago
Christian Winther 88ad5d6a4f ignore some shellchecks for .env files 3 years ago
Daniel Supernault 573c88d7b5
Update filesystem config, change FILESYSTEM_DRIVER env variable to DANGEROUSLY_SET_FILESYSTEM_DRIVER and remove from default env configs. Changing the default filesystem should be avoided, use FILESYSTEM_CLOUD for s3 support, otherwise you can break things 4 years ago
Shlee d749b3c376
Update .env.example 4 years ago
Shlee 51eeb26185
Update .env.example 4 years ago
Shlee a0efe2b408
Update .env.example 4 years ago
Shlee 6be0109dff
Update .env.example 4 years ago
Shlee 6218c40af7
Update .env.example 4 years ago
Shlee 0903b06e8e
Update .env.example 4 years ago
Shlee b43c464fd3
Update .env.example 7 years ago
Daniel Supernault 38199308d1
Update .env, remove SESSION_LIFETIME 7 years ago
Daniel Supernault 0697f780d3
Update .env.example 7 years ago
Daniel Supernault 06c34560e5
Update .env.example 7 years ago
trwnh 4ea368ce9b
Update .env.example 7 years ago
Daniel Supernault 53b0a0601a
Update .env.example 7 years ago
Daniel Supernault 73f37e4dc7
Update .env.example 7 years ago
Daniel Supernault bf08cfd471
Update .env.example 7 years ago
Kirk Strauser 5d263d1c2e
PixelFed -> Pixelfed
There was a remaining mix of capital-F "PixelFed" occurrences. This
changes everything to the same capitalization, "Pixelfed", for
consistency.
7 years ago
Shlee 7a2897757b
Update .env.example 7 years ago
Shleeble de8a1d47da
Update .env.example 8 years ago
Shleeble eb66ab3af4
Update .env.example 8 years ago
Shleeble c8de214adb
Update .env.example 8 years ago
Shleeble cf9d6eb52d
Update .env.example 8 years ago
Shleeble d8d7b93c40
Update .env.example 8 years ago
Shleeble 9e497142f3
Update .env.example 8 years ago
Shleeble 9477e35953
Update .env.example 8 years ago
Shleeble 37266ff3cf
Update .env.example 8 years ago
Daniel Supernault 916ffe268f
Add COSTAR config 8 years ago
Daniel Supernault 69f5f584ba
Update .env.example 8 years ago
Marek Isalski fae22c3491 more useful settings in .env.example file 8 years ago
Marek Isalski 05f829b572 add default ACTIVITY_PUB=false to .env.example 8 years ago
Angristan 96efb57cf0 Add missing double quotes 8 years ago
Angristan 49f34e8fe2 Add MAIL_FROM_ADDRESS and MAIL_FROM_NAME to env 8 years ago
Daniel Supernault f4f2921951 Update .env.example 8 years ago
Christopher Davis b9d7d74882 general: Add detailed README.md
Previously the README.md was sparse, including no intructions on setting
up PixelFed. This could be progibitive for attracting new contributors.
I have updated the README and based the install instructions on
https://gist.github.com/dansup/999de4577f864d1822d226b9ddd62ca0.

Closes https://github.com/dansup/pixelfed/issues/18
8 years ago
Daniel Supernault 1e3a432087 Restrict new registrations with env setting 8 years ago
Daniel Supernault 82ff70e847 Update .env.example 8 years ago
Daniel Supernault a034358c98 Add Laravel Framework 9 years ago