Merging all the changes from 'master'

There's nothing much really. Here's a summary:
* Added dmca.gripe to README.md.
* Updated chrome extension's instruction in README.md.
* Bumped year in LICENSE.
* Moved error pages from /pages/errors to /pages/error.
* Added a README.md to /pages/error clarifying the fact that this repo is using symlinks for error pages.
This commit is contained in:
Bobby Wibowo 2018-04-26 19:28:31 +07:00
commit 6cc6928c62
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF
6 changed files with 10 additions and 4 deletions

View File

@ -1,6 +1,6 @@
MIT License
Copyright (c) 2017 Pitu
Copyright (c) 2018 Pitu
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@ -64,7 +64,7 @@ A sample of the returning json from the endpoint can be seen below:
}
```
To make it easier and better than any other service, you can download [our Chrome extension](https://chrome.google.com/webstore/detail/loli-safe-uploader/enkkmplljfjppcdaancckgilmgoiofnj) that will let you configure your hostname and tokens, so that you can simply `right click` -> `send to loli-safe` to any image/audio/video file on the web.
To make it easier and better than any other service, you can download [our Chrome extension](https://chrome.google.com/webstore/detail/lolisafe-uploader/enkkmplljfjppcdaancckgilmgoiofnj) that will let you configure your hostname and tokens, so that you can simply `right click` -> `loli-safe` -> `send to safe` to any image/audio/video file on the web.
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.
@ -77,6 +77,7 @@ Here is a tutorial [on how to do this with nginx](https://www.digitalocean.com/c
- [updx.xyz](http://updx.xyz): A shitty clone. ~~At least the files are more secure!~~
- [safe.fiery.me](https://safe.fiery.me): Just another clone.
- [kayo.pics](https://kayo.pics): File hosting for all~
- [dmca.gripe](https://dmca.gripe): a dmca-resistant, permanent file hosting service.
- Feel free to add yours here.
## Author

View File

@ -63,11 +63,11 @@ for (const page of config.pages) {
}
safe.use((req, res, next) => {
res.status(404).sendFile('HTTP404.html', { root: './pages/errors/' })
res.status(404).sendFile('HTTP404.html', { root: './pages/error/' })
})
safe.use((error, req, res, next) => {
console.error(error)
res.status(500).sendFile('HTTP500.html', { root: './pages/errors/' })
res.status(500).sendFile('HTTP500.html', { root: './pages/error/' })
})
safe.listen(config.port, () => console.log(`lolisafe started on port ${config.port}`))

5
pages/error/README.md Normal file
View File

@ -0,0 +1,5 @@
# Why do this folder only have symlinks?
At safe.fiery.me, we are using this: [https://github.com/BobbyWibowo/HttpErrorPages](https://github.com/BobbyWibowo/HttpErrorPages).
It's nothing too important, but we are sharing the error pages from that directory to all other instances in the server.