2022-01-14 12:18:28 -05:00
|
|
|
# ProxiTok
|
|
|
|
Use Tiktok with an alternative frontend, inspired by Nitter.
|
2022-01-01 14:14:57 -05:00
|
|
|
|
2022-01-06 18:13:51 -05:00
|
|
|
## Features
|
2022-01-14 12:18:28 -05:00
|
|
|
* Privacy: All requests made to TikTok are server-side, so you will never connect to their servers
|
2022-01-06 18:13:51 -05:00
|
|
|
* See user's feed
|
|
|
|
* See trending
|
|
|
|
* See tags
|
2022-01-08 10:03:57 -05:00
|
|
|
* See video by id
|
2022-02-05 18:58:30 -05:00
|
|
|
* Discovery
|
2022-01-28 09:54:09 -05:00
|
|
|
* RSS Feed for user, trending and tag (just add /rss to the url)
|
2022-01-06 18:13:51 -05:00
|
|
|
|
2022-03-05 16:50:47 -05:00
|
|
|
## Extension
|
2022-03-11 10:11:56 -05:00
|
|
|
If you want to automatically redirect Tiktok links to ProxiTok you can use:
|
|
|
|
* [Libredirect](https://github.com/libredirect/libredirect)
|
|
|
|
* [Redirector](https://github.com/einaregilsson/Redirector)
|
|
|
|
|
|
|
|
You can use the following config if you want to use Redirector (you can change https://proxitok.herokuapp.com with whatever instance you want to use):
|
|
|
|
```
|
|
|
|
Description: TikTok to ProxiTok
|
|
|
|
Example URL: https://www.tiktok.com/@tiktok
|
|
|
|
Include pattern: (.*//.*)(tiktok.com)(.*)
|
|
|
|
Redirect to: https://proxitok.herokuapp.com$3
|
|
|
|
Example result: https://proxitok.herokuapp.com/@tiktok
|
|
|
|
Pattern type: Regular Expression
|
|
|
|
Apply to: Main window (address bar)
|
|
|
|
```
|
2022-03-05 16:50:47 -05:00
|
|
|
|
2022-01-01 14:14:57 -05:00
|
|
|
## Installation
|
|
|
|
Clone the repository and fetch the requiered external packages with:
|
|
|
|
```bash
|
|
|
|
composer install
|
|
|
|
```
|
|
|
|
|
2022-01-13 10:51:45 -05:00
|
|
|
WARNING: You'll need a personal Github token for composer.
|
|
|
|
|
2022-01-01 14:14:57 -05:00
|
|
|
Then you can run it using for example the PHP Development Server with:
|
|
|
|
```bash
|
2022-03-11 12:56:19 -05:00
|
|
|
php -S localhost:8080 -t public
|
2022-01-01 14:14:57 -05:00
|
|
|
```
|
|
|
|
|
2022-01-03 08:32:35 -05:00
|
|
|
## Configuration
|
|
|
|
### .env
|
|
|
|
Move the .env.example file to .env and modify it.
|
|
|
|
|
2022-01-17 15:11:40 -05:00
|
|
|
### Cache engines
|
2022-01-13 10:51:45 -05:00
|
|
|
Available cache engines:
|
2022-01-28 09:54:09 -05:00
|
|
|
* redis: Writes response to Redis
|
2022-01-13 10:51:45 -05:00
|
|
|
* json: Writes response to JSON file
|
|
|
|
|
2022-01-03 08:32:35 -05:00
|
|
|
### Apache
|
2022-01-06 18:13:51 -05:00
|
|
|
You don't have to do anything more
|
2022-01-03 08:32:35 -05:00
|
|
|
|
|
|
|
### Nginx
|
2022-01-30 18:02:52 -05:00
|
|
|
Add the following to your config (you can modify the proxitok part if you have or not a subdir):
|
2022-01-03 08:32:35 -05:00
|
|
|
```
|
2022-01-30 18:02:52 -05:00
|
|
|
location /proxitok {
|
|
|
|
return 302 $scheme://$host/proxitok/;
|
2022-01-03 08:32:35 -05:00
|
|
|
}
|
|
|
|
|
2022-01-30 18:02:52 -05:00
|
|
|
location /proxitok/ {
|
|
|
|
try_files $uri $uri/ /proxitok/index.php?$query_string;
|
2022-01-03 08:32:35 -05:00
|
|
|
}
|
|
|
|
|
2022-01-30 18:02:52 -05:00
|
|
|
location /proxitok/.env {
|
2022-01-03 08:32:35 -05:00
|
|
|
deny all;
|
|
|
|
return 404;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2022-01-01 18:06:00 -05:00
|
|
|
## TODO
|
2022-01-06 18:13:51 -05:00
|
|
|
* Add a NoJS version / Make the whole program without required JS
|
2022-01-08 10:03:57 -05:00
|
|
|
* Better error handling
|
|
|
|
* Make video on /video fit screen and don't overflow
|
2022-02-06 08:22:23 -05:00
|
|
|
* i18n
|
2022-01-01 18:06:00 -05:00
|
|
|
|
2022-01-01 14:14:57 -05:00
|
|
|
## Credits
|
2022-02-16 09:20:35 -05:00
|
|
|
* [TikTok-API-PHP](https://github.com/ssovit/TikTok-API-PHP) (Currently using my personal fork)
|
2022-02-06 08:22:23 -05:00
|
|
|
* [Latte](https://github.com/nette/latte)
|
2022-01-28 09:54:09 -05:00
|
|
|
* [bramus/router](https://github.com/bramus/router)
|
2022-01-03 07:43:22 -05:00
|
|
|
* [PHP dotenv](https://github.com/vlucas/phpdotenv)
|
2022-01-30 18:42:20 -05:00
|
|
|
* [Bulma](https://github.com/jgthms/bulma) and [Bulmaswatch](https://github.com/jenil/bulmaswatch)
|
|
|
|
* [FeedWriter](https://github.com/mibe/FeedWriter)
|