Skip to content

Nekogirls-rb is a pomf-like website built in Ruby and Sinatra

License

Notifications You must be signed in to change notification settings

Cyan101/nekogirls-rb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nekogirls-rb

Nekogirls-rb is a pomf-like website built in Ruby and Sinatra, it lets users upload files from a webpage or (it is built for) using programs such as ShareX

To Do

  • Add Readme setup/usage
  • Make custom 404 page
  • Redirect to image after its uploaded
  • Setup special code to make the website Personal
  • Damn favicon

Setup/Usage

The following files need to be created and uncommented out from nekogirls.rb

  • views/index.haml
  • views/404.haml The config file is pretty self explanatory and has code comments to help

ShareX Example

{
  "Name": "nekogirls.moe",
  "RequestType": "POST",
  "RequestURL": "https://nekogirls.moe/upload",
  "FileFormName": "file_to_upload",
  "Arguments": {
    "code": "SpecialCodeGoesHere"
  },
  "ResponseType": "RedirectionURL"
}

Using Nginx to serve files example

Probably not a great example since its assuming you are just using a root user on your server.

You'll need to change the locations, the proxy pass (since nginx will handle the website domain and port 80), the return link for uploads and the names of the folders and files.

server {
        listen 80;
        expires 30d;
        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 /p/ {
                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 is also the best way to limit file sizes by using client_max_body_size 5m; for example to limit the size to 5mb

Also you can checkout this guide for setting up https (just remember to edit the link returned by the server)

About

Nekogirls-rb is a pomf-like website built in Ruby and Sinatra

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published