From b31f28ddcfa47d4a5f3943cad008fddca1c38271 Mon Sep 17 00:00:00 2001 From: Bobby Wibowo Date: Wed, 4 Apr 2018 23:47:20 +0700 Subject: [PATCH] Updates * De loli-safe wherever it's safe to do so. * Removed bulma tooltip. Sigh, it came from an impulsive decision out of boredom to begin with. * Chrome extension and GitHub links in home page will now open in new tab. * File's link in the dashboard's list will still show the full URL in its tooltip, but it will no longer use bulma tooltip extension. --- README.md | 10 +++++----- config.sample.js | 2 +- package.json | 2 +- pages/dashboard.html | 3 +-- pages/home.html | 15 +++++++-------- public/js/dashboard.js | 2 +- public/libs/bulma/bulma-tooltip.min.css | 1 - 7 files changed, 16 insertions(+), 19 deletions(-) delete mode 100644 public/libs/bulma/bulma-tooltip.min.css diff --git a/README.md b/README.md index b78f624..1ff57fd 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # lolisafe, a small safe worth protecting -![loli-safe](https://s.fiery.me/5nYA.png) +![lolisafe](https://s.fiery.me/5nYA.png) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://raw.githubusercontent.com/kanadeko/Kuro/master/LICENSE) [![Chat / Support](https://img.shields.io/badge/Chat%20%2F%20Support-discord-7289DA.svg?style=flat-square)](https://discord.gg/5g6vgwn) @@ -50,7 +50,7 @@ If you set `enableUserAccounts: true`, people will be able to create accounts on 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 +## Using lolisafe 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. @@ -68,9 +68,9 @@ To make it easier and better than any other service, you can download [our Chrom Because of how nodejs apps work, if you want it attached to a domain name you will need to make a reverse proxy for it. -Here is a tutorial [on how to do this with nginx](https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-16-04). Keep in mind that this is only a requirement if you want to access your loli-safe service by using a domain name (ex: `https://i.kanacchi.moe`), otherwise you can use the service just fine by accessing it from your server's IP. +Here is a tutorial [on how to do this with nginx](https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-16-04). Keep in mind that this is only a requirement if you want to access your lolisafe service by using a domain name (ex: `https://i.kanacchi.moe`), otherwise you can use the service just fine by accessing it from your server's IP. -## Sites using loli-safe +## Sites using lolisafe - [lolisafe.moe](https://lolisafe.moe): A small safe worth protecting. - [safe.moe](https://safe.moe): The world's most ~~un~~safe pomf clone @@ -81,7 +81,7 @@ Here is a tutorial [on how to do this with nginx](https://www.digitalocean.com/c ## Author -**lolisafe** © [Pitu](https://github.com/Pitu), Released under the [MIT](https://github.com/WeebDev/loli-safe/blob/master/LICENSE) License. +**lolisafe** © [Pitu](https://github.com/Pitu), Released under the [MIT](https://github.com/WeebDev/lolisafe/blob/master/LICENSE) License. Authored and maintained by Pitu. diff --git a/config.sample.js b/config.sample.js index 97f6601..6afce88 100644 --- a/config.sample.js +++ b/config.sample.js @@ -3,7 +3,7 @@ module.exports = { /* If set to true the user will need to specify the auto-generated token on each API call, meaning random strangers won't be able to use the service - unless they have the token loli-safe provides you with. + unless they have the token lolisafe provides you with. If it's set to false, then upload will be public for anyone to use. */ private: true, diff --git a/package.json b/package.json index 19ff8f6..b7e3492 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "url": "https://github.com/WeebDev/lolisafe" }, "bugs": { - "url": "https://github.com/WeebDev/loli-safe/issues" + "url": "https://github.com/WeebDev/lolisafe/issues" }, "engines": { "node": ">=7.0.0" diff --git a/pages/dashboard.html b/pages/dashboard.html index 26889f5..d23a0ee 100644 --- a/pages/dashboard.html +++ b/pages/dashboard.html @@ -11,14 +11,13 @@ - - + diff --git a/pages/home.html b/pages/home.html index b764aa7..69b3cd2 100644 --- a/pages/home.html +++ b/pages/home.html @@ -11,7 +11,6 @@ - @@ -136,37 +135,37 @@