mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-14 00:16:21 +00:00
Typing is hard
This commit is contained in:
parent
47821474a5
commit
d009c2dcf6
@ -40,7 +40,7 @@ Which one you use is ultimately up to you. Either way, I've provided a sample co
|
||||
If you set `enableUserAccounts: true`, people will be able to create accounts on the service to keep track of their uploaded files and create albums to upload stuff to, pretty much like imgur does, but only through the API. Every user account has a token that the user can use to upload stuff through the API. You can find this token on the section called `Change your token` on the administration dashboard, and if it gets leaked or compromised you can renew it by clicking the button titled `Request new token`.
|
||||
|
||||
## Cloudflare Support
|
||||
If you are running lolisafe behind Cloudflare there is support to make the NGINX logs have the users IP instead of Cloudflares IP. ALl you need to do is uncomment the `include <path-to-lolisafe>/cloudflare-ips;`
|
||||
If you are running lolisafe behind Cloudflare there is support to make the NGINX logs have the users IP instead of Cloudflares IP. All you need to do is uncomment the `include /path/to/lolisafe/cloudflare-ips;`
|
||||
|
||||
## Using loli-safe
|
||||
Once the service starts you can start hitting the upload endpoint at `/api/upload` with any file. If you're using the frontend to do so then you are pretty much set, but if using the API to upload make sure the form name is set to `files[]` and the form type to `multipart/form-data`. If the service is running in private mode, dont forget to send a header of type `token: YOUR-CLIENT-TOKEN` to validate the request.
|
||||
|
Loading…
Reference in New Issue
Block a user