aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorKana <[email protected]>2018-04-03 10:55:55 -0300
committerGitHub <[email protected]>2018-04-03 10:55:55 -0300
commit917cdabcb059d1bc7025c6fc0cad2b243aba1869 (patch)
tree77c1a973985a9cee48717720887d7eff2346f0d1 /README.md
parentMerge pull request #88 from RyoshiKayo/patch-1 (diff)
parentUpdated README about CF support (diff)
downloadhost.fuwn.me-917cdabcb059d1bc7025c6fc0cad2b243aba1869.tar.xz
host.fuwn.me-917cdabcb059d1bc7025c6fc0cad2b243aba1869.zip
Merge pull request #73 from RyoshiKayo/master
Added CF-Connecting-IP
Diffstat (limited to 'README.md')
-rw-r--r--README.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/README.md b/README.md
index 617d146..d77cc83 100644
--- a/README.md
+++ b/README.md
@@ -39,6 +39,9 @@ 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. You will need to compile NGINX from source with `--with-http_realip_module` as well as uncomment the following line in the NGINX config: `include /path/to/lolisafe/real-ip-from-cf;`
+
## 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.