{"id":25986829,"url":"https://github.com/xz-dev/website4share","last_synced_at":"2026-03-10T17:08:12.950Z","repository":{"id":261620691,"uuid":"884837871","full_name":"xz-dev/website4share","owner":"xz-dev","description":"Share in LAN/No over-optimization/Focus on use","archived":false,"fork":false,"pushed_at":"2026-02-04T00:39:21.000Z","size":62,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-04T12:48:31.594Z","etag":null,"topics":["pastebin","rust","share"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xz-dev.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-11-07T13:34:01.000Z","updated_at":"2026-02-04T00:39:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"aa1fd9ba-92fc-4a9f-82fd-08727ef09cb4","html_url":"https://github.com/xz-dev/website4share","commit_stats":null,"previous_names":["xz-dev/website4share"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xz-dev/website4share","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xz-dev%2Fwebsite4share","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xz-dev%2Fwebsite4share/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xz-dev%2Fwebsite4share/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xz-dev%2Fwebsite4share/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xz-dev","download_url":"https://codeload.github.com/xz-dev/website4share/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xz-dev%2Fwebsite4share/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30343963,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T15:55:29.454Z","status":"ssl_error","status_checked_at":"2026-03-10T15:54:58.440Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["pastebin","rust","share"],"created_at":"2025-03-05T12:33:32.646Z","updated_at":"2026-03-10T17:08:12.907Z","avatar_url":"https://github.com/xz-dev.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Website4Share\n\nWebsite4Share is a Rust-based web application for sharing files and pasteboard content.\n\n## Prerequisites\n\n- Rust and Cargo installed\n- Docker installed (for containerization)\n\n## Running the Application with Cargo\n\nTo run the application using Cargo, follow these steps:\n\n1. Clone the repository:\n\n    ```sh\n    git clone https://github.com/xz-dev/website4share.git\n    cd website4share\n    ```\n\n2. Set the required environment variables:\n\n    - `LISTEN_ADDR`: The address and port the application will listen on (default: `0.0.0.0:8080`).\n    - `TMPDIR`: The directory for temporary files (default: system temporary directory).\n\n    Example:\n\n    ```sh\n    export LISTEN_ADDR=0.0.0.0:8080\n    export TMPDIR=/path/to/tempdir\n    ```\n\n3. Run the application:\n\n    ```sh\n    cargo run\n    ```\n\n## Building and Running with Docker\n\nTo build and run the application using Docker, follow these steps:\n\n1. Build the Docker image:\n\n    ```sh\n    docker build -t website4share -f Containerfile .\n    ```\n\n2. Run the Docker container:\n\n    ```sh\n    docker run -d \\\n      -p 8080:8080 \\\n      -v /path/to/local/cache:/tmp/website4share \\\n      -e LISTEN_ADDR=0.0.0.0:8080 \\\n      --name website4share_container \\\n      website4share\n    ```\n\n### Explanation of Docker Run Command\n\n- `-d`: Run the container in detached mode.\n- `-p 8080:8080`: Map port 8080 on the host to port 8080 in the container.\n- `-v /path/to/local/cache:/tmp/website4share`: Mount the local directory `/path/to/local/cache` to `/tmp/website4share` in the container. This ensures that the cache directory is persisted and not lost when the container is stopped or removed.\n- `-e LISTEN_ADDR=0.0.0.0:8080`: Set the `LISTEN_ADDR` environment variable to `0.0.0.0:8080` to ensure the application listens on all network interfaces.\n- `--name website4share_container`: Assign a name to the container for easier management.\n- `website4share`: The name of the Docker image to run.\n\n## Environment Variables\n\n- `LISTEN_ADDR`: The address and port the application will listen on. Default is `0.0.0.0:8080`.\n- `TMPDIR`: The directory for temporary files. Default is the system temporary directory + website4share.\n\n## Project Structure\n\n- `src/`: Source code of the application.\n- `Cargo.toml`: Cargo configuration file.\n- `Containerfile`: Dockerfile for building the Docker image.\n- `static/`: Static files served by the application.\n\n## Feature\n1. Just a website\n2. Multi share thread\n3. Upload resume\n\n## ScreenShot\n- Home page:\n  ![图片](https://github.com/user-attachments/assets/5a3a385f-2b87-4cce-a174-19cc0f897b88)\n- Sub-page:\n  ![图片](https://github.com/user-attachments/assets/0b266b5f-3bf1-417a-9287-b817abc25905)\n  ![图片](https://github.com/user-attachments/assets/34dba68e-020a-48a8-8595-5b851516bf49)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxz-dev%2Fwebsite4share","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxz-dev%2Fwebsite4share","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxz-dev%2Fwebsite4share/lists"}