{"id":23146541,"url":"https://github.com/k-foss/pfcarper","last_synced_at":"2025-04-04T13:23:43.293Z","repository":{"id":43534499,"uuid":"240398084","full_name":"K-FOSS/pfCarper","owner":"K-FOSS","description":"Script to automatically assign a DigitalOcean floating IP to droplets with a tag when the currently active droplet stops responding on the TCP port.","archived":false,"fork":false,"pushed_at":"2023-03-27T23:47:55.000Z","size":50,"stargazers_count":2,"open_issues_count":8,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-09T23:12:44.235Z","etag":null,"topics":["digitalocean","digitalocean-droplets","pfsense"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/K-FOSS.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":"2020-02-14T00:44:02.000Z","updated_at":"2024-02-06T23:36:45.000Z","dependencies_parsed_at":"2024-12-17T16:31:21.103Z","dependency_job_id":"a4e41da3-1e37-4274-b903-6d918f035099","html_url":"https://github.com/K-FOSS/pfCarper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/K-FOSS%2FpfCarper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/K-FOSS%2FpfCarper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/K-FOSS%2FpfCarper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/K-FOSS%2FpfCarper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/K-FOSS","download_url":"https://codeload.github.com/K-FOSS/pfCarper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247183060,"owners_count":20897508,"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","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":["digitalocean","digitalocean-droplets","pfsense"],"created_at":"2024-12-17T16:29:55.243Z","updated_at":"2025-04-04T13:23:43.268Z","avatar_url":"https://github.com/K-FOSS.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pfCarper\n\npfCarper is a script designed to be run to test and automatically allocate a DigitalOcean floating IP to the next Droplet that the TCP Port test succeed\n\n## Usage\n\n**Envirnonment Variables**\n\n| Variable              | Description                                                              | Default |\n| :-------------------- | ------------------------------------------------------------------------ | ------- |\n| `DIGITAL_OCEAN_TOKEN` | DigitalOcean API Token                                                   |         |\n| `DROPLET_TAG`         | Tag applied to the droplets you want to have the floating IP assigned to |         |\n| `FLOATING_IP`         | Floating IP Address to assign to droplets                                |         |\n| `INTERVAL`            | Optional seconds interval at which to tcp test the droplets              | 5       |\n| `PORT`                | Port to do the TCP test agaisnt                                          | 443     |\n\nI designed this script to run in a `docker-compose.yml` file on one of my DigitalOcean VPSes.\n\n```YAML\nversion: '3.7'\n\nservices:\n  pfCarper:\n    image: docker.pkg.github.com/k-foss/pfcarper/pfcarper\n    environment:\n      DIGITAL_OCEAN_TOKEN: 'INSERT_DIGITAL_OCEAN_TOKEN'\n      FLOATING_IP: 'INSERT_FLOATING_IP'\n      DROPLET_TAG: 'pfCarper-Core'\n      # OPTIONAL\n      # PORT: '80'\n      # INTERVAL: '10'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk-foss%2Fpfcarper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk-foss%2Fpfcarper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk-foss%2Fpfcarper/lists"}