{"id":22452372,"url":"https://github.com/juls0730/flux","last_synced_at":"2025-08-17T05:05:48.833Z","repository":{"id":266254404,"uuid":"897760303","full_name":"juls0730/flux","owner":"juls0730","description":"Flux is a lightweight self-hosted pseudo-paas for golang web apps.","archived":false,"fork":false,"pushed_at":"2025-05-15T18:33:06.000Z","size":223,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-15T19:38:36.251Z","etag":null,"topics":["bluegreen","buildpacks","deployment","deployment-automation","docker","golang","paas","self-hosted","zqdgr"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/juls0730.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":"2024-12-03T07:34:02.000Z","updated_at":"2024-12-14T09:37:25.000Z","dependencies_parsed_at":"2024-12-03T11:19:08.464Z","dependency_job_id":"015d9fd1-1f82-4dad-835b-deaec1e4a919","html_url":"https://github.com/juls0730/flux","commit_stats":null,"previous_names":["juls0730/flux"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/juls0730/flux","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juls0730%2Fflux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juls0730%2Fflux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juls0730%2Fflux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juls0730%2Fflux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juls0730","download_url":"https://codeload.github.com/juls0730/flux/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juls0730%2Fflux/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270807934,"owners_count":24649346,"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-08-17T02:00:09.016Z","response_time":129,"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":["bluegreen","buildpacks","deployment","deployment-automation","docker","golang","paas","self-hosted","zqdgr"],"created_at":"2024-12-06T06:10:49.743Z","updated_at":"2025-08-17T05:05:48.796Z","avatar_url":"https://github.com/juls0730.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flux\n\nFlux is a lightweight self-hosted pseudo-PaaS for hosting Golang web apps with ease. Built on top of [Buildpacks](https://buildpacks.io/) and [Docker](https://docs.docker.com/get-docker/), Flux simplifies the deployment process with a focus on similicity, speed, and reliability.\n\n## Features\n\n- **Blue-Green Deployments**: Deploy new versions of your app without downtime\n- **Simplify Deployment**: Flux takes care of the deployment process, so you can focus on writing your app\n- **Flexible Configuration**: Easily configure your app with `flux.json`\n- **Automatic Container Management**: Steamline your app with automatic container management\n\n## Dependencies\n\n- [Go](https://golang.org/dl/)\n- [ZQDGR](https://github.com/juls0730/zqdgr)\n- [Buildpacks](https://buildpacks.io/) (daemon only)\n- [Docker](https://docs.docker.com/get-docker/) (daemon only)\n\n## Intallation\n\n### Daemon\n\nTo install and start the Flux daemon using ZQDGR, run the following command:\n\n\u003e [!IMPORTANT]\n\u003e CGO is required to build the daemon due to the use of [mattn/go-sqlite3](https://github.com/mattn/go-sqlite3)\n\n#### Method 1: ZQDGR\n\n```bash\ngo install github.com/juls0730/zqdgr@latest\n\ngit clone https://github.com/juls0730/flux.git\ncd flux\n\n# either\nzqdgr build:daemon\nsudo ./fluxd\n\n# or\nFLUXD_ROOT_DIR=$PWD/fluxdd zqdgr run:daemon\n```\n\n#### Method 2: Docker\n\n```bash\ndocker run -d --name fluxd --network host -v /var/run/docker.sock:/var/run/docker.sock -v fluxd-data:/var/fluxd -p 5647:5647 -p 7465:7465 zoeissleeping/fluxd:latest\n```\n\n#### Method 3: Systemd\n\n```bash\ngo install github.com/juls0730/zqdgr@latest\n\ngit clone https://github.com/juls0730/flux.git\ncd flux\n\nzqdgr build:daemon\nsudo mv fluxd /usr/local/bin/\n\ncat \u003c\u003cEOF\n[Unit]\nDescription=Flux Daemon\nAfter=network.target\n\n[Service]\nExecStart=/usr/local/bin/fluxd\nRestart=always\nEnvironment=GOPATH=/var/fluxd/go\nEnvironment=HOME=/var/fluxd/home\n\n[Install]\nWantedBy=multi-user.target\nEOF | sudo tee /etc/systemd/system/fluxd.service\n\nsudo systemctl daemon-reload\nsudo systemctl enable --now fluxd\n```\n\n### CLI\n\nInstall the CLI using the following command:\n\n```bash\ngo install github.com/juls0730/flux/cmd/flux@latest\n```\n\n## Configuration\n\n### Daemon\n\nFlux daemon looks for a confgiuration file in `/var/fluxd/config.json` but can be configured by setting `$FLUXD_ROOT_DIR` to the directory where you want all fluxd files to be stored.\n\n```json\n{\n  \"builder\": \"paketobuildpacks/builder-jammy-tiny\"\n}\n```\n\n- `builder`: The buildpack builder to use (default: `paketobuildpacks/builder-jammy-tiny`)\n\n#### Daemon Settings\n\n- **Default port**: 5647 (Daemon server)\n- **Reverse Proxy Port**: 7465 (configurable via `FLUXD_PROXY_PORT` environment variable)\n\n### CLI\n\nThe CLI looks for a configuration file in `~/.config/flux/config.json`:\n\n```json\n{\n  \"daemon_url\": \"http://127.0.0.1:5647\"\n}\n```\n\n- `daemon_url`: The URL of the daemon to connect to (default: `http://127.0.0.1:5647`)\n\n### Commands\n\n```bash\nFlux \u003ccommand\u003e\n```\n\nAvailable commands:\n\n- `init`: Initialize a new project\n- `deploy`: Deploy an application\n- `start`: Start an application\n- `stop`: Stop an application\n- `delete`: Delete an application\n- `list`: View application logs\n\n### Project Configuration (`flux.json`)\n\nflux.json is the configuration file in the root of your proejct that defines deployment settings:\n\n```json\n{\n  \"name\": \"my-app\",\n  \"url\": \"myapp.example.com\",\n  \"port\": 8080,\n  \"env_file\": \".env\",\n  \"environment\": [\"DEBUG=true\"]\n}\n```\n\n#### Configuration Options\n\n- `name`: The name of the project\n- `url`: Domain for the application\n- `port`: Web server's listening port\n- `env_file`: Path to environment variable file\n- `environment`: Additional environment variables\n\n## Deployment Notes\n\n- After deploying an app, point your domain to the Flux reverse proxy\n- Ensure the Host header is sent with your requests\n\n## Contributing\n\nFound a bug, or have something you think would make Flux better? Submit an issue or pull request.\n\n## License\n\nFlux is licensed with the MIT license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuls0730%2Fflux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuls0730%2Fflux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuls0730%2Fflux/lists"}