improved README

pull/12/head
tycrek 3 years ago
parent eff3c9bde1
commit d1cc84923c
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -5,12 +5,15 @@ This project is still very young, so don't expect *everything* to be perfect yet
## Features ## Features
- [x] Token authorization via HTTP `Authorization` header - ✔️ Token authorization via HTTP `Authorization` header
- [x] Upload images, videos, files - ✔️ Upload images, videos, files
- [ ] Thumbnail support - ❌ Thumbnail support
- [x] Delete support - ✔️ Delete support
- [ ] Multiple database types (JSON, Mongo, MySQL, PostgreSQL, etc. Currently uses JSON) - ❌ Multiple database types (JSON, Mongo, MySQL, PostgreSQL, etc. Currently uses JSON)
- [ ] Multiple access types (original, mixed-case alphanumeric, [ZWS](https://zws.im), etc. Currently uses ZWS) - ❌ Multiple access types (original, mixed-case alphanumeric, [ZWS](https://zws.im), etc. Currently uses ZWS)
- ❌ Multi-user support (upload restrictions, web library, etc.)
- ❌ Block-storage support including Amazon S3
- ❌ Usage metrics
## Installation ## Installation
@ -18,15 +21,14 @@ The installation may look daunting but it's really pretty straightforward. Just
1. First of all you must have Node.js 14 or later installed. It might work with Node.js 12 but just use 14. 1. First of all you must have Node.js 14 or later installed. It might work with Node.js 12 but just use 14.
2. Clone this repo using `git clone https://github.com/tycrek/anssxustawai.git && cd anssxustawai/` 2. Clone this repo using `git clone https://github.com/tycrek/anssxustawai.git && cd anssxustawai/`
3. Install the required dependencies using `npm i` 3. Run `npm i` to install the required dependencies
4. Configure `.env.example` *before* running if you wish to. This will let you configure your port number & domain name. 4. Run `npm run setup` to start the easy configuration
5. Run `npm start` to start. This will: 5. Run `npm start` to start the server. The first-time run will:
- Automatically copy `.env.example` to `.env` - Create `data.json` & `auth.json`
- Creates `data.json` & `auth.json` - Generate your first authorization token & save it to `auth.json`
- Generates your first authorization token & saves it to `auth.json` 6. **(Optional)** You must also configure an SSL-enabled reverse proxy (only if you want to use HTTPS):
6. You must also configure an SSL-enabled reverse proxy:
- I personally use Caddy, see [my tutorial](https://jmoore.dev/tutorials/2021/03/caddy-express-reverse-proxy/) on setting that up - I personally use Caddy, see [my tutorial](https://jmoore.dev/tutorials/2021/03/caddy-express-reverse-proxy/) on setting that up
- You may also Apache or Nginx as reverse proxies - You may also use Apache or Nginx as reverse proxies
## Configure ShareX ## Configure ShareX
@ -37,7 +39,7 @@ The installation may look daunting but it's really pretty straightforward. Just
- Method: `POST` - Method: `POST`
- URL: `https://your.domain.name.here/` - URL: `https://your.domain.name.here/`
- Body: `Form data (multipart/form-data)` - Body: `Form data (multipart/form-data)`
- File from name: `file` - File from name: `file` (literally put "`file`" in the field)
- Headers: - Headers:
- Name: `Authorization` - Name: `Authorization`
- Value: (the value provided by `npm start` on first run) - Value: (the value provided by `npm start` on first run)
@ -48,5 +50,4 @@ The installation may look daunting but it's really pretty straightforward. Just
## Known issues ## Known issues
- **Videos won't embed on Discord**: I know. This is because Discord developers make some really stupid decisions & only show embeds if the URL ends with `.mp4`. So the workaround: manually type "`.mp4`" after pasting your URL. This will be fixed automatically in the future with some ZWS redirect tricks. - **Videos won't embed on Discord**: I know. This is because Discord developers make some really stupid decisions & only show embeds if the URL ends with `.mp4`. So the workaround: manually type "`.mp4`" after pasting your URL. This will be fixed in the future with a "Discord mode" for video uploads.
- **It won't work over HTTP**: Yes because HTTP is outdated crap, why are you still using it??

Loading…
Cancel
Save