{"id":18263160,"url":"https://github.com/ctrlaltdev/gry","last_synced_at":"2025-10-06T21:48:39.812Z","repository":{"id":45812512,"uuid":"514715751","full_name":"ctrlaltdev/GRY","owner":"ctrlaltdev","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-15T22:22:15.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-29T11:22:01.857Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ctrlaltdev.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}},"created_at":"2022-07-17T00:52:14.000Z","updated_at":"2025-02-15T22:21:01.000Z","dependencies_parsed_at":"2025-04-09T01:31:10.781Z","dependency_job_id":"7141c79c-9f0d-4850-a547-6fda4823802e","html_url":"https://github.com/ctrlaltdev/GRY","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ctrlaltdev/GRY","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrlaltdev%2FGRY","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrlaltdev%2FGRY/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrlaltdev%2FGRY/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrlaltdev%2FGRY/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ctrlaltdev","download_url":"https://codeload.github.com/ctrlaltdev/GRY/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrlaltdev%2FGRY/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278686637,"owners_count":26028325,"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-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":[],"created_at":"2024-11-05T11:10:01.022Z","updated_at":"2025-10-06T21:48:39.785Z","avatar_url":"https://github.com/ctrlaltdev.png","language":"Go","readme":"# Go Redir Yourself\n\nSimple shorturl service\n\n## Environment Variables\n\nGRY can be configured using the following environment variables:\n\n| Variable | Default | Description |\n|----------|---------|-------------|\n| `GRY_PORT` | `3000` | The port number the service will listen on |\n| `GRY_FOLDER` | `.GRY` | The folder path where redirects will be stored |\n| `GRY_TOTP_SECRET` | - | TOTP secret key required for admin authentication. If not set, a secret will be generated and displayed in the logs (NOT RECOMMENDED FOR PRODUCTION) |\n\n## Run as a container\n\n```sh\n# Pull and run the container\ndocker run -d \\\n  --name gry \\\n  -p 3000:3000 \\\n  -v gry-data:/.GRY \\\n  ctrlaltdev/gry:latest\n\n# Or using docker compose\nversion: '3'\nservices:\n  gry:\n    image: ctrlaltdev/gry:latest\n    container_name: gry\n    ports:\n      - \"3000:3000\"\n    volumes:\n      - gry-data:/.GRY\n    restart: unless-stopped\n\nvolumes:\n  gry-data:\n```\n\n## Run as a service\n\nInstall the binary\n```sh\ncurl -fSsL ln.0x5f.info/getGRY | sh\n```\n\nCreate a systemd service file\n\n```\n[Unit]\nDescription=GO REDIR YOURSELF\nConditionPathExists=/usr/local/bin/GRY\nAfter=network.target\n\n[Service]\nType=simple\nUser=\u003cuser\u003e\nGroup=\u003cuser\u003e\nLimitNOFILE=1024\n\nRestart=on-failure\nRestartSec=10\nstartLimitIntervalSec=60\n\nWorkingDirectory=/usr/local/bin\nExecStart=/usr/local/bin/GRY\n\nStandardOutput=syslog\nStandardError=syslog\nSyslogIdentifier=GRY\n\n[Install]\nWantedBy=multi-user.target\n```\n\n## Configuration\n\nGRY can be configured using environment variables:\nThe folder used to store the redirects will always be in the user's home directory, and the folder needs be already exist with the correct permissions.\n```sh\n# Change the port (default: 3000)\nexport GRY_PORT=8080\n\n# Change the storage location (default: .GRY)\nexport GRY_FOLDER=storage\n\n# Set TOTP secret for admin authentication (required for admin endpoints)\nexport TOTP_SECRET=your_secret_here\n\n# Using with docker run\ndocker run -d \\\n  --name gry \\\n  -p 8080:8080 \\\n  -v gry-data:/storage \\\n  -e GRY_PORT=8080 \\\n  -e GRY_FOLDER=storage \\\n  -e GRY_TOTP_SECRET=your_secret_here \\\n  ctrlaltdev/gry:latest\n\n# Using with docker compose\nversion: '3'\nservices:\n  gry:\n    image: ctrlaltdev/gry:latest\n    container_name: gry\n    ports:\n      - \"8080:8080\"\n    volumes:\n      - gry-data:/storage\n    environment:\n      - GRY_PORT=8080\n      - GRY_FOLDER=storage\n      - GRY_TOTP_SECRET=your_secret_here\n    restart: unless-stopped\n\nvolumes:\n  gry-data:\n```\n\nWhen running as a service, you can add these environment variables to the systemd service file:\n\n```\n[Service]\n// ... existing service configuration ...\nEnvironment=GRY_PORT=8080\nEnvironment=GRY_FOLDER=storage\nEnvironment=GRY_TOTP_SECRET=your_secret_here\n// ... rest of service configuration ...\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctrlaltdev%2Fgry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fctrlaltdev%2Fgry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctrlaltdev%2Fgry/lists"}