webbinaro/flarum-bluesky-handles
Composer 安装命令:
composer require webbinaro/flarum-bluesky-handles
包简介
Enables your Flarum users to set their Bluesky handles to use a sub-domain of your site. I.e. @username.example.com vs the default bluesky domain.
关键字:
README 文档
README
A Flarum extension. Enables your Flarum users to set their Bluesky handles to use a sub-domain of your site. I.e. @username.example.com vs the default bluesky domain.
Installation
Install with composer:
composer require webbinaro/flarum-bluesky-handles:"*"
Updating
composer update webbinaro/flarum-bluesky-handles:"*"
php flarum migrate
php flarum cache:clear
Requires FOF/Masquerade
This extension depends on a custom bio field provided by FOF/Masquerade. Setting details below.
- Create a new field, type
Advanced - Set name as
Bluesky DIDor similar - Set validation rule as
regex:/^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$/ - Set icon to
fas-brands fa-bluesky
User entry
Users can find their DID on their Bluesky Profile > Settings > Handle > Custom Handle
Users can enter it on Flarum > Profile > Edit Profile
Wildcard Domain Support - Handle requirements
Bluesky will try to resolve subdomains matching requested user handles.
I.e. @eddie.adkadv.com will attempt to resolve https://eddie.adkadv.com
This means you will need to configure your webserver (nginx, apache) to convert these into requests on a specific API endpoint /api/bluesky/<subdomain>
- Add wildcard to your DNS Settings as a new A and AAAA record
- Update your webserver to route all subdomains to documented API.
- Update your SSL Certificates to handle wildcard domains.
Nginx Example
You can add a new server block to nginx to listen to wildcard domains, excluding known ones.
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
# listen for any subdomains EXCEPT gear.
server_name ~^(?<slug>(?!other-suddomain-to-exclude)\w+)\.example\.com$;
if ( $request_uri ~ ^/.well-known/atproto-did ) {
# send atproto did verification requests to custom endpoint
return $scheme://example.com/api/bluesky/$slug;
}
# send all other requests to subpath of user profile
return $scheme://example.com/u/$slug$request_uri;
# Requires SSL, so make sure you have a wildcard enabled cert
# This DNS validation
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
}
Links
webbinaro/flarum-bluesky-handles 适用场景与选型建议
webbinaro/flarum-bluesky-handles 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 103 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 11 月 22 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「flarum」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 webbinaro/flarum-bluesky-handles 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 webbinaro/flarum-bluesky-handles 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 webbinaro/flarum-bluesky-handles 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Adds more BBCode
Output of discussions lists in form of cards
Allow users to log in with QQ
A headless CLI performance benchmarking tool for Flarum
The admin panel of afrux/asirem
Enhanced typography for french writings, mainly around punctuation.
统计信息
- 总下载量: 103
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 15
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-1.0-or-later
- 更新时间: 2024-11-22


