Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rajiska/0x1
Simple file hosting website based on 0x0
https://github.com/rajiska/0x1
docker docker-compose file-sharing php self-hosted web-server website
Last synced: 10 days ago
JSON representation
Simple file hosting website based on 0x0
- Host: GitHub
- URL: https://github.com/rajiska/0x1
- Owner: RaJiska
- Created: 2018-08-16T15:46:49.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-05T10:44:53.000Z (almost 3 years ago)
- Last Synced: 2024-10-13T02:08:31.175Z (25 days ago)
- Topics: docker, docker-compose, file-sharing, php, self-hosted, web-server, website
- Language: PHP
- Homepage:
- Size: 49.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# The Non-Null Pointer
This project is a PHP implementation of ["The Null Pointer" (0x0)](https://github.com/lachs0r/0x0) by lachs0r.
The purpose of this tool is to seamlessly upload files to a webserver.## Setup
Clone the repository in your web root, your nginx configuration shall include:
```
location / {
rewrite ^/$ /scripts/upload.php last;
rewrite ^/([^/]*)$ /scripts/read.php?file=$1 last;
}location ~ /(classes|config|crons|logs|sql|uploads) {
internal;
}
```
Further restrictions will also be required to avoid having files larger than the limit to be uploaded. You can achieve that by editing your PHP configuration or restricting Nginx's request maximum body size.You'll also need to setup the cronjob which will delete files after their expiration date:
```
$ contab -e
0 */1 * * * (cd /path/to/website/root/crons && php clean.php)
```Finally you'll need to edit the configuration file found in `/config/config.php` to suit your needs.
## Credits
[lachs0r](https://github.com/lachs0r) for the original idea.