昨天看到推特被特斯拉CEO马斯克收了,然后看了很多像mastodon、misskey等去中心化社交系统。不过对于我这种萌新来说,部署这些难度太大。于是我在翻Envato Market看到了个毛子写的程序 ColibriSM,自建了一个感觉还不错。
不过现在俄罗斯被制裁了,作者的钱钱也提不出来 网易也有报道: https://www.163.com/dy/article/H5NQ01KO0511FQO9.html 售价更是搞到离谱的 5000刀 :
地址: https://codecanyon.net/item/colibrism-the-ultimate-php-modern-social-media-sharing-platform/26612898 演示站: https://preview.codecanyon.net/item/colibrism-the-ultimate-php-modern-social-media-sharing-platform/full_screen_preview/26612898 文件仅供学习使用,如有侵权 请在 https://oh.sb/tg 与我联系,感谢!
程序下载 蓝奏网盘: https://itxe.lanzout.com/iLWEW03v708f 里面分别是:Document(部署文档)、ColibriSM(程序本体)、Update(旧版升级包)
汉化包 蓝奏网盘: https://itxe.lanzout.com/iIfl403v6ulc 安装方法: 前往后台找到UI Languages,右下角 按下方选择,找到 Chinese – 中文 然后Add Language 再覆盖汉化包到根目录,然后点圆圈设置为默认前台语言
伪静态 可直接引用根目录下 nginx.conf 或把以下内容放到配置文件中
- # @*************************************************************************@
- # [url=home.php?mod=space&uid=175]@[/url] Software author: Mansur Altamirov (Mansur_TL) @
- # @ Author_url 1: https://www.instagram.com/mansur_tl @
- # @ Author_url 2: http://codecanyon.net/user/mansur_tl @
- # @ Author E-mail: [email protected] @
- # @*************************************************************************@
- # @ ColibriSM – The Ultimate Modern Social Media Sharing Platform @
- # @ Copyright (c) 2020 – 2021 ColibriSM. All rights reserved. @
- # @*************************************************************************@
-
- location /404 {
- rewrite ^/404(/|)$ /index.php?app=err404;
- }
-
- location /500 {
- rewrite ^/500(/|)$ /index.php?app=err500;
- }
-
- location /download_info {
- rewrite ^/download_info(/|)$ /index.php?app=download_info;
- }
-
- location /native_api {
- rewrite "^/native_api/(w{3,32})/(w{3,32})$" /api.php?api=native&app=$1&action=$2;
- }
-
- location /mobile_api {
- rewrite "^/mobile_api/(w{3,32})$" /api.php?api=mobile&app=$1;
- }
-
- location /language{
- rewrite "^/language/(w{2,25})(/|)$" /index.php?app=home&language=$1;
- }
-
- location /guest {
- rewrite ^/guest(/|)$ /index.php?app=guest;
- }
-
- location /confirm_registration {
- rewrite ^/confirm_registration(/|)$ /index.php?app=confirm_reg;
- }
-
- location /confirm_email {
- rewrite ^/confirm_email(/|)$ /index.php?app=confirm_email;
- }
-
- location /admin_panel {
- rewrite ^/admin_panel(/|)$ /index.php?app=cpanel;
- rewrite "^/admin_panel/(w{3,25})(/|)$" /index.php?app=cpanel§ion=$1;
- }
-
- location /trending {
- rewrite ^/trending(/|)$ /index.php?app=trending;
- }
-
- location /bookmarks {
- rewrite ^/bookmarks(/|)$ /index.php?app=bookmarks;
- }
-
- location /notifications {
- rewrite ^/notifications(/|)$ /index.php?app=notifications&page=notifs;
- }
-
- location /mentions {
- rewrite ^/mentions(/|)$ /index.php?app=notifications&page=mentions;
- }
-
- location /search {
- rewrite ^/search(/|)$ /index.php?app=search;
- rewrite ^/search/(htags|people|posts)(/|)$ /index.php?app=search&tab=$1;
- }
-
- location /start_up {
- rewrite ^/start_up(/|)$ /index.php?app=start_up;
- }
-
- location /thread {
- rewrite "^/thread/([0-9]{1,11})(/|)$" /index.php?app=thread&thread_id=$1;
- }
-
- location /reset_password {
- rewrite ^/reset_password(/|)$ /index.php?app=guest;
- }
-
- location /home {
- rewrite ^/home(/|)$ /index.php?app=home;
- }
-
- location /logout {
- rewrite ^/logout(/|)$ /index.php?app=logout;
- }
-
- location /settings {
- rewrite ^/settings(/|)$ /index.php?app=settings;
- rewrite "^/settings/(w{3,25})(/|)$" /index.php?app=settings&sapp=$1;
- }
-
- location /terms_of_use {
- rewrite ^/terms_of_use(/|)$ /index.php?app=stat_pages&page=terms;
- }
-
- location /privacy_policy {
- rewrite ^/privacy_policy(/|)$ /index.php?app=stat_pages&page=privacy_policy;
- }
-
- location /cookies_policy {
- rewrite ^/cookies_policy(/|)$ /index.php?app=stat_pages&page=cookies_policy;
- }
-
- location /about_us {
- rewrite ^/about_us(/|)$ /index.php?app=stat_pages&page=about_us;
- }
-
- location /faqs {
- rewrite ^/faqs(/|)$ /index.php?app=stat_pages&page=faqs;
- }
-
- location /suggested {
- rewrite ^/suggested(/|)$ /index.php?app=suggested;
- }
-
- location /chats {
- rewrite ^/chats(/|)$ /index.php?app=chats;
- }
-
- location /affiliates {
- rewrite ^/affiliates(/|)$ /index.php?app=affiliates;
- }
-
- location /ads {
- rewrite ^/ads(/|)$ /index.php?app=ads;
- rewrite ^/ads/new(/|)$ /index.php?app=ads&page=upsert;
- rewrite ^/ads/archive(/|)$ /index.php?app=ads&page=archive;
- rewrite ^/ads/pending(/|)$ /index.php?app=ads&page=pending;
- rewrite ^/ads/edit/(d+)(/|)$ /index.php?app=ads&page=upsert&ad_id=$1;
- rewrite ^/ads/(d+)(/|)$ /index.php?app=ad_item&ad_id=$1;
- }
-
- location /oauth {
- rewrite ^/oauth(/|)$ /index.php?app=oauth;
- rewrite ^/oauth/推特(/|)$ index.php?app=oauth&provider=推特;
- rewrite ^/oauth/google(/|)$ index.php?app=oauth&provider=google;
- rewrite ^/oauth/FB(/|)$ index.php?app=oauth&provider=FB;
- }
-
- location /conversation {
- rewrite "^/conversation/(w{3,25})(/|)$" /index.php?app=conversation&uname=$1;
- }
-
- location / {
- if (!-e $request_filename){
- rewrite ^/$ /index.php?app=home;
- }
-
- if (!-e $request_filename){
- rewrite "^/(w{3,25})(/|)$" /index.php?app=profile&uname=$1;
- rewrite "^/(w{3,25})/(following|followers)(/|)$" /index.php?app=connections&uname=$1&tab=$2;
- rewrite "^/(w{3,25})/(posts|media|likes)(/|)$" /index.php?app=profile&uname=$1&tab=$2;
- }
- }
-
- location ~ /.ht {
- deny all;
- }
复制代码
总结 最后希望 推特 被收购后不会变味,毛子的复刻能力还是挺强的。文件仅供学习使用, 欢迎来 https://oh.sb/tg 交流学习,感谢! |