{"id":25523492,"url":"https://github.com/yestool/deploy-tar","last_synced_at":"2025-07-22T21:05:48.254Z","repository":{"id":217790716,"uuid":"741305134","full_name":"yestool/deploy-tar","owner":"yestool","description":"deploy static website tool (Hugo, Hexo, Astro, Jekyll, VuePress....)","archived":false,"fork":false,"pushed_at":"2024-01-10T06:34:44.000Z","size":11799,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T02:44:55.931Z","etag":null,"topics":["astro","deploy","golang","hexo","hugo","jekyll","static-site","static-website","vuepress"],"latest_commit_sha":null,"homepage":"https://yestool.org/deploy-tar/","language":"Go","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/yestool.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,"zenodo":null}},"created_at":"2024-01-10T05:46:21.000Z","updated_at":"2025-01-08T04:37:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"baeb01f7-5f00-4398-81a4-d0a179da7cb8","html_url":"https://github.com/yestool/deploy-tar","commit_stats":null,"previous_names":["yestool/deploy-tar"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yestool/deploy-tar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yestool%2Fdeploy-tar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yestool%2Fdeploy-tar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yestool%2Fdeploy-tar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yestool%2Fdeploy-tar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yestool","download_url":"https://codeload.github.com/yestool/deploy-tar/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yestool%2Fdeploy-tar/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266572488,"owners_count":23950029,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":["astro","deploy","golang","hexo","hugo","jekyll","static-site","static-website","vuepress"],"created_at":"2025-02-19T19:19:23.068Z","updated_at":"2025-07-22T21:05:48.246Z","avatar_url":"https://github.com/yestool.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Use this tool to deploy any static website (like Hugo, Hexo, Astro, Jekyll, VuePress.... ) with a VPS. \n\n## client\n\n```\n# build client\ngo build -o ./client/bin/deploy-tar ./client/main.go\n```\n\n\n### client config\n\ndeploy-tar config is a yaml file\n\n```\napiKey: 1111111111\nserver: http://127.0.0.1:8081/upload\nwebPath: /www/wwwroot/test123.com/\ntarPath: /root/go-code/deploy-tar/test/\nwebSite: test123.com\n```\n\n\n```\n\u003e deplay-tar --config .deploy-tar.yaml \n\napiKey: use apikey to secure your system.\n\nserver: the server upload handler location.\n\nwebPath: Untargz to this directory, if you use docker, just volumes your real websit directory to this directory.\n\ntarPath: can be **xxx.tar.gz** or a **directory**. if it's a directory, Package as tar.gz file first,then upload.\n\nwebSite: just a websit id tag.\n```\n\n\n\n\n## server\n\n\n```\n# build server\n\ngo build -o ./server/bin/deploy-tar-server ./server/main.go\n\n# build dockerfile\ndocker build --no-cache -t yestool/deploy-tar:v1 .\n```\n\n\n### use docker-compose \n\n\n```\nversion: '3'\nservices:\n  deploy-tar:\n    image: yestool/deploy-tar:v1.0\n    ports:\n      - \"8081:8080\"\n    environment:\n      APP_APIKEY: 11111111\n    volumes:\n      - ./tars:/uploadfiles\n      - ./webs:/www/wwwroot\n```\n\n### server config\n\ndefault config:\n\n```\napiKey: 123456\nserverPort: 8080\nkeepFiles: 3\nmaxUploadSize: 104857600\nfuncHandle: /upload\n```\n\nyou can use ENV cover , ENV prefix is **APP**.\n\n### Nginx config\n\nHide the server behind websit location:\n\n\n```\nlocation /upxyz123/ {\n  client_max_body_size  1024m;\n  proxy_set_header Host $host:$server_port;\n  proxy_set_header X-Real-Ip $remote_addr;\n  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n  proxy_http_version 1.1;\n  proxy_set_header Upgrade $http_upgrade;\n  proxy_set_header Connection \"upgrade\";\n  proxy_connect_timeout 99999;\n  proxy_pass http://127.0.0.1:8081/;\n}\n```\n\nin this config, the client config **server** is : **https://xxxx.com/upxyz123/upload**","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyestool%2Fdeploy-tar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyestool%2Fdeploy-tar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyestool%2Fdeploy-tar/lists"}