{"id":17968030,"url":"https://github.com/rotten-lkz/valaxy-admin-server","last_synced_at":"2026-04-13T18:04:28.913Z","repository":{"id":41308223,"uuid":"509012593","full_name":"Rotten-LKZ/valaxy-admin-server","owner":"Rotten-LKZ","description":"Server for blogs using Valaxy","archived":false,"fork":false,"pushed_at":"2022-07-04T01:42:58.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T21:42:39.562Z","etag":null,"topics":["admin-server","express","mongodb","valaxy"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Rotten-LKZ.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":"2022-06-30T09:19:07.000Z","updated_at":"2022-06-30T09:21:10.000Z","dependencies_parsed_at":"2022-09-19T01:21:29.395Z","dependency_job_id":null,"html_url":"https://github.com/Rotten-LKZ/valaxy-admin-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Rotten-LKZ/valaxy-admin-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rotten-LKZ%2Fvalaxy-admin-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rotten-LKZ%2Fvalaxy-admin-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rotten-LKZ%2Fvalaxy-admin-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rotten-LKZ%2Fvalaxy-admin-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rotten-LKZ","download_url":"https://codeload.github.com/Rotten-LKZ/valaxy-admin-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rotten-LKZ%2Fvalaxy-admin-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31764352,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["admin-server","express","mongodb","valaxy"],"created_at":"2024-10-29T14:10:34.949Z","updated_at":"2026-04-13T18:04:28.892Z","avatar_url":"https://github.com/Rotten-LKZ.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# valaxy-admin-server\n\nServer for blogs using [Valaxy](https://github.com/YunYouJun/valaxy)\n\n[Web app for admin](https://github.com/Rotten-LKZ/valaxy-admin-web)\n\n[Desktop app for admin](https://github.com/Rotten-LKZ/valaxy-admin-desktop)\n\n[Api requests](https://github.com/Rotten-LKZ/valaxy-admin-server-api)\n\n## Usage\n\n1. Install dependencies \n\n```bash\npnpm i\n```\n\n2. Config the server\n\n\u003e Create file `.env` in root path and set config\u003cbr/\u003e\n\u003e MONGO_LINK=link for connecting MongoDb `mongodb://[username:password@]\u003chost\u003e[:port]/\u003cdatabase\u003e?retryWrites=true\u0026w=majority`\u003cbr/\u003e\n\u003e \n\u003e MANAGER_USERNAME=username for logging in admin e.g. `admin`\u003cbr/\u003e\n\u003e MANAGER_PASSWORD=password for logging in admin e.g. `admin`\u003cbr/\u003e\n\u003e MANAGER_SECRET_KEY=secret key for generating JWT\u003cbr/\u003e\n\u003e \n\u003e BASE_URL=base url, it will be spliced with the image address (`Required \"/\"`) e.g. http://172.23.107.93:3011/v1/\u003cbr/\u003e\n\u003e REDIRECT_URL=redirect after a client is requesting a picture (If this option is `undefined`, it will response image immediately. `Not required \"/\"`) e.g. `http://127.0.0.1:6543`\u003cbr/\u003e\n\u003e\n\u003e WHITE_LIST=cors e.g. `[\"123\", \"123\"]` (If this option is `undefined`, it will allow all requests)\u003cbr/\u003e\n\u003e\n\u003e COMMAND=the command to be executed e.g. `/root/test/upload.sh` (If this option is `undefined`, it will run `git add .` `git commit -m \"chore: update\"` `git push -f`)\n\n\n3. Create Valaxy under `template` and use `git` to push it to github *(Remember to use `npm` and `git` env is required)*\n\n  *This program is using `git push -f` to push, so make sure that you have permission to force push and there is no conflict to avoid data loss.*\n\n4. Create folder `upload`\n\n5. Start the server\n\n```bash\npnpm dev\n```\n\n## Notice\n\n1. Api `v1/image` with `POST` will delay inserting image information into the database, which means that you can't read all image information from the database at the first time, especially uploading too many images at one time.\n\n2. If you upload a file with the same file name within a day, the old file will be overwritten\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frotten-lkz%2Fvalaxy-admin-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frotten-lkz%2Fvalaxy-admin-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frotten-lkz%2Fvalaxy-admin-server/lists"}