{"id":19796219,"url":"https://github.com/saigut/vps-scripts","last_synced_at":"2026-05-03T17:33:08.641Z","repository":{"id":69885889,"uuid":"472241092","full_name":"Saigut/vps-scripts","owner":"Saigut","description":"Auto setup your vps by scripts. 自动化配置 VPS 的脚本。","archived":false,"fork":false,"pushed_at":"2022-08-22T06:50:48.000Z","size":25,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-07T05:07:59.910Z","etag":null,"topics":["docker","nginx","shadowsocks","v2ray","vps-setup"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Saigut.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-21T08:08:07.000Z","updated_at":"2022-06-21T06:34:38.000Z","dependencies_parsed_at":"2023-02-25T12:00:50.509Z","dependency_job_id":null,"html_url":"https://github.com/Saigut/vps-scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Saigut/vps-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saigut%2Fvps-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saigut%2Fvps-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saigut%2Fvps-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saigut%2Fvps-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Saigut","download_url":"https://codeload.github.com/Saigut/vps-scripts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saigut%2Fvps-scripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32578598,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"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":["docker","nginx","shadowsocks","v2ray","vps-setup"],"created_at":"2024-11-12T07:18:52.095Z","updated_at":"2026-05-03T17:33:08.636Z","avatar_url":"https://github.com/Saigut.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vps-scripts\nThe scripts to auto setup your vps with git repo server, shadowsocks, v2ray, and nginx web server.  \n为 vps 自动化配置 git 仓库服务器、shadowsocks、v2ray 和 nginx web 服务器的脚本。  \n\n***(Caution: The commands to install docker only work under Ubuntu Linux)***\n\n## Brief introduction\n1. Auto setup your vps by scripts;\n2. All the configuration files are managed by git repository;\n3. Shadowsocks, v2ray, and nginx run as docker container.\n\n## How to use\n### Steps to setup\n1. Setup git repository on vps  \n    First you should have python (\u003e= 3.2) installed on vps.  \n    Then, execute `git_repo.py` on your vps:\n    ```shell\n    python git_repo.py\n    ```\n    And then a git bare repository will be generated at path `/opt/docker/git-repo/vps-files` (In fact at the `.git` subdirectory).\n\n2. Push the pre-prepared `vps-files` git repository to vps  \n    Push your `vps-files` git repository to `/opt/docker/git-repo/vps-files/.git` of the vps via ssh. (The structure of `vps-files` repository refer to: [Structure of git repository vps-files](#structure-of-git-repository-vps-files)).\n\n3. Execute personal script and start docker containers.  \n    Execute `setup_vps.py` on your vps:\n    ```shell\n    python setup_vps.py\n    ```\n    This script will execute your personal script and then start docker containers (Shadowsocks, v2ray, and nginx).\n\n### Structure of git repository vps-files \nThe structure of `vps-files` should be:\n```\nvps-files/\n|- webroot/\n|- personal_setup.sh\n|- ss-manager.json\n|- v2ray-config.json\n|- nginx-default.conf\n|- [other directories or files as you need]\n```\nDirectory `webroot` is the html root of nginx.  \n`personal_setup.sh` is a bash script. You can use it as you need, or just let it an empty script.  \n`ss-manager.json`, `v2ray-config.json`, and `nginx-default.conf` are the configuration file of shadowsocks manager, v2ray, and nginx correspondingly.\n\n### Log file\nLog file locations on vps,  \nv2ray:  \n`/var/log/v2ray/`  \nnginx:  \n`/var/log/nginx/`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaigut%2Fvps-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaigut%2Fvps-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaigut%2Fvps-scripts/lists"}