{"id":24586813,"url":"https://github.com/derenderkeks/yanius","last_synced_at":"2025-04-28T14:28:35.517Z","repository":{"id":10190374,"uuid":"64864260","full_name":"DerEnderKeks/Yanius","owner":"DerEnderKeks","description":"[Abandoned] Yet Another Node Image Upload Server","archived":false,"fork":false,"pushed_at":"2023-01-08T02:44:19.000Z","size":2139,"stargazers_count":2,"open_issues_count":19,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-14T01:06:32.938Z","etag":null,"topics":["file","nodejs","server","upload","yanius"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DerEnderKeks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-03T17:12:43.000Z","updated_at":"2021-11-25T22:12:06.000Z","dependencies_parsed_at":"2023-01-11T20:14:16.254Z","dependency_job_id":null,"html_url":"https://github.com/DerEnderKeks/Yanius","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DerEnderKeks%2FYanius","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DerEnderKeks%2FYanius/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DerEnderKeks%2FYanius/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DerEnderKeks%2FYanius/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DerEnderKeks","download_url":"https://codeload.github.com/DerEnderKeks/Yanius/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251329457,"owners_count":21572120,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["file","nodejs","server","upload","yanius"],"created_at":"2025-01-24T06:14:46.190Z","updated_at":"2025-04-28T14:28:35.458Z","avatar_url":"https://github.com/DerEnderKeks.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yanius [![Version](https://img.shields.io/badge/Version-2.3.0-green.svg?style=flat-square)](https://github.com/DerEnderKeks/Yanius/blob/master/package.json#L3)\n*Yet Another Node Image Upload Server*\n\n*(The name is actually a lie. You can upload every file type.)*\n\n# Usage\n#### Dependencies\n\n- [nodejs](https://nodejs.org) v.6.4.0+\n- [rethinkdb](https://www.rethinkdb.com/)\n- way too many npm modules\n\n#### Installation\n##### Debian/Ubuntu\n```bash\ngit clone https://github.com/DerEnderKeks/Yanius.git\ncd Yanius\nsudo apt-get install build-essential\nnpm install\ncp config/default.json.example config/default.json\n```\n\n\u003e Make a PR if you know how to install this on other systems\n\n#### Updating\nAs long the `Major` part of the version number (`Major.Minor.Patch`) didn't change, you can update using `git pull`.\nOtherwise you also have to execute the appropriate migration scripts. You can find them in `/scripts/migration/`.\n\nIf it doesn't start after an update do `rm -rf node_modules \u0026\u0026 npm i` before asking for help.\n\n##### Example\nTo update from 0.x.x to 1.x.x you have to:\n\n* execute `node ./scripts/migration/0_x_x-to-1_x_x.js`\n* pray to a god of your choice\n\n#### Configuration\nEdit `config/default.json`.\nYou have to insert your rethinkdb connection data there.\nAlso, you can set the url of your Yanius instance there.\n\nIf you want to use [secure cookies](https://en.wikipedia.org/wiki/HTTP_cookie#Secure_cookie) you have to use a proxy server like [nginx](https://www.nginx.com/).\nYou also have to insert `proxy_set_header X-Forwarded-Proto https;` into your nginx proxy configuration to use secure cookies.\n\n#### Start\n\n##### Simple\n`npm start`\n\n##### With Debug Output\n`DEBUG=\"yanius:*\" node --harmony ./bin/www`\n\n##### Development Mode\n`DEBUG=\"yanius:*\" NODE_ENV=\"development\" node --harmony ./bin/www`\n\u003e **WARNING:** Don't use this in production. Seriously. This mode shows stacktraces to the user.\n\n#### How To Upload Files\n##### Linux\nYou could use a custom script/program to upload files. You can use [mine](https://gist.github.com/DerEnderKeks/30cc7b3aebee4eee444337f452e19565) if you want.\n\n##### Windows\nYou can use [ShareX](https://getsharex.com/).\n\nIn ShareX \n\n- go to `Destinations -\u003e Destination settings... -\u003e Custom uploaders`\n- click on `Import -\u003e From URL...`\n- insert `http://goo.gl/D1BX26`\n- click `Ok`\n- adjust `Request URL` and `Arguments -\u003e apikey`\n- click `Update` on the left side of the window\n- close that window\n- select `Custom [Image, File, Text] Uploader` in `Destinations -\u003e [Image, File, Text] uploader`\n\n##### General\nIf you want to make your own script/program to upload files make sure it does the following:\n\n- `POST` request to `/api/upload`\n- Form field `apikey` is set to your API Key (Get it from `/dashboard/account`)\n- Form field `file` is set to the file you want to upload\n- (Optional) Form field `hidden` is set to `true` or `false` (if a file is hidden nobody can download it)\n\nThe server responds as JSON.\n\nIf the upload was successful:\n```JSON\n{\n    \"message\": \"File uploaded\",\n    \"url\": \"your.domain/\u003cshortname\u003e\"\n}\n```\nOtherwise:\n```JSON\n{\n    \"message\": \"\u003cerror message\u003e\"\n}\n```\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderenderkeks%2Fyanius","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderenderkeks%2Fyanius","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderenderkeks%2Fyanius/lists"}