Nekogirls-cr is a pomf-like website built in Crystal and Kemal, it lets users upload files from a webpage or (it is built for) using programs such as ShareX.
From the Repo
- Clone the Repo
git clone https://github.com/cyan101/nekogirls-cr.git
cd nekogirls-cr
- Delete the .git folder
rm -rf .git
and start your own repogit init
- Install all the required shards
shards
From the compiled release
- TODO
Using Nginx for file serving/ssl (Example)
server {
listen 80;
expires 30d;
client_max_body_size 20m;
server_name nekogirls.moe;
root /root/nekogirls-rb/public;
access_log /var/log/nginx/nekogirls-rb-access.log;
error_log /var/log/nginx/nekogirls-rb-error.log;
location /pictures/ {
try_files $uri $uri/ =404;
}
location /css/ {
try_files $uri $uri/ =404;
}
location /js/ {
try_files $uri $uri/ =404;
}
location / {
proxy_pass http://localhost:8080;
}
}
- This uses Nginx to serve pictures/css/js and then passes anything else onto nekogirls-cr
client_max_body_size 20m;
limits the filesize to 20mb for uploads- (Optional) Setup SSL/HTTPS using this guide
From the Repo
- Run
crystal src/nekogirls.cr
, alternatively use a proccess manager like PM2 to run it in the background
Uploading with ShareX (Example)
- Open ShareX and go to uploaders -> custom uploaders -> import -> from clipboard
- Copy/Paste the following code
{
"Name": "nekogirls.moe",
"RequestType": "POST",
"RequestURL": "https://nekogirls.moe/upload",
"FileFormName": "file_to_upload",
"Arguments": {
"code": "SpecialCodeGoesHere"
},
"ResponseType": "RedirectionURL"
}
- Set the upload types at the bottom
- Add code comments
- Add "secret" code to limit who can upload
- Fork it ( https://github.com/cyan101/nekogirls-cr/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
- Cyan101 Jos Spencer - creator, maintainer