{"id":31059946,"url":"https://github.com/developer239/factoriotools-factorio-http-controls","last_synced_at":"2026-05-16T01:31:11.067Z","repository":{"id":314579990,"uuid":"1055183021","full_name":"developer239/factoriotools-factorio-http-controls","owner":"developer239","description":"Docker container with Factorio server and NestJS HTTP API for RCON management.","archived":false,"fork":false,"pushed_at":"2025-09-13T11:35:26.000Z","size":237,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-13T12:32:33.051Z","etag":null,"topics":["api-rest","docker","factorio","factorio-server","http-server","rcon","rcon-client"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/jarnotmichal/factorio-with-http-controls","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/developer239.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-11T22:31:08.000Z","updated_at":"2025-09-13T11:35:29.000Z","dependencies_parsed_at":"2025-09-13T12:32:37.914Z","dependency_job_id":"c647fde3-5ddf-44c3-8eb9-469201347325","html_url":"https://github.com/developer239/factoriotools-factorio-http-controls","commit_stats":null,"previous_names":["developer239/factoriotools-factorio-http-controls"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/developer239/factoriotools-factorio-http-controls","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer239%2Ffactoriotools-factorio-http-controls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer239%2Ffactoriotools-factorio-http-controls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer239%2Ffactoriotools-factorio-http-controls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer239%2Ffactoriotools-factorio-http-controls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developer239","download_url":"https://codeload.github.com/developer239/factoriotools-factorio-http-controls/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer239%2Ffactoriotools-factorio-http-controls/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33087028,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T20:25:35.270Z","status":"ssl_error","status_checked_at":"2026-05-15T20:25:34.732Z","response_time":103,"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":["api-rest","docker","factorio","factorio-server","http-server","rcon","rcon-client"],"created_at":"2025-09-15T09:54:53.256Z","updated_at":"2026-05-16T01:31:11.050Z","avatar_url":"https://github.com/developer239.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Factorio With HTTP Controls\n\nDocker container with Factorio server and NestJS HTTP API for RCON management.\n\n## Setup\n\n### 1. Build Docker Image\n\nBuild the Docker image with default Factorio version (2.0.55):\n\n```bash\ndocker build --platform linux/amd64 -t jarnotmichal/factorio-with-http-controls:2.0.55-3 .\n```\n\n**Build with specific Factorio version:**\n\n```bash\n# Build with Factorio 1.1.110\ndocker build --platform linux/amd64 --build-arg FACTORIO_VERSION=1.1.110 -t jarnotmichal/factorio-with-http-controls:1.1.110-3 .\n\n# Build with Factorio 1.1.109\ndocker build --platform linux/amd64 --build-arg FACTORIO_VERSION=1.1.109 -t jarnotmichal/factorio-with-http-controls:1.1.109-3 .\n```\n\n**Note:** The `--platform linux/amd64` flag ensures the image is built for x86_64 architecture, making it compatible with most cloud platforms (GCP, AWS, Azure) even when building on Apple Silicon Macs.\n\n**Note:** Check [factoriotools/factorio](https://hub.docker.com/r/factoriotools/factorio/tags) for all available versions.\n\n### 2. Environment Configuration\n\nCopy the example environment file and customize:\n\n```bash\ncp .env.example .env\n```\n\n### 3. Run the Container\n\nRun the all-in-one container (includes both Factorio server and HTTP API):\n\n```bash\ndocker run -d \\\n  --name factorio-server \\\n  --env-file .env \\\n  -p 34197:34197/udp \\\n  -p 8080:8080 \\\n  -v factorio-saves:/data/factorio \\\n  jarnotmichal/factorio-with-http-controls:2.0.55-3\n```\n\n## Connecting to the Server\n\n**Direct IP Connection:**\n\n1. In Factorio, go to \"Play\" → \"Multiplayer\"\n2. Click \"Connect to address\"\n3. Enter your server's IP address and port: `your-server-ip:34197` for example `127.0.0.1:34197`\n4. The server will not appear in the public server browser\n\n**Server Configuration:**\n\n- Game Port: `34197/udp` (for Factorio client connections)\n- HTTP API Port: `8080/tcp` (for RCON management)\n- RCON Port: `27015/tcp` (internal only)\n\n## Server Management\n\nThe container runs both services automatically. No manual Factorio server setup required.\n\n## API Usage\n\n### Available Endpoints\n\n**Get Server Time:**\n\n```bash\ncurl http://localhost:8080/factorio/time\n```\n\n**Get Server Status (Player List):**\n\n```bash\ncurl http://localhost:8080/factorio/status\n```\n\n**Slow Down Time:**\n\n```bash\ncurl -X POST http://localhost:8080/factorio/speed/slow\n```\n\n**Set Normal Speed:**\n\n```bash\ncurl -X POST http://localhost:8080/factorio/speed/normal\n```\n\n**Speed Up Time:**\n\n```bash\ncurl -X POST http://localhost:8080/factorio/speed/fast\n```\n\n**Pause Game:**\n\n```bash\ncurl -X POST http://localhost:8080/factorio/pause\n```\n\n**Unpause Game:**\n\n```bash\ncurl -X POST http://localhost:8080/factorio/unpause\n```\n\n**Trigger Save:**\n\n```bash\ncurl -X POST http://localhost:8080/factorio/save\n```\n\n**List Save Files:**\n\n```bash\ncurl http://localhost:8080/factorio/saves\n```\n\n**Load Specific Save:**\n\n```bash\ncurl -X POST http://localhost:8080/factorio/load/default\ncurl -X POST http://localhost:8080/factorio/load/_autosave4\n```\n\n**Load Local Save File:**\n\n```bash\ncurl -X POST http://localhost:8080/factorio/upload-save \\\n  -F \"saveFile=@/Users/michaljarnot/Library/Application Support/factorio/saves/example-to-load-on-server.zip\" \\\n  -F \"autoLoad=true\"\n```\n\n## Docker Hub Deployment\n\n### Publishing to Docker Hub\n\nThe `--platform linux/amd64` flag ensures your images work on x86_64 cloud servers (GCP, AWS, Azure) regardless of your build machine architecture.\n\n**1. Build and Tag for Docker Hub:**\n\n```bash\n# Build with specific Factorio version\ndocker build --platform linux/amd64 --build-arg FACTORIO_VERSION=2.0.55 -t jarnotmichal/factorio-with-http-controls:2.0.55-3 .\n\n# Build latest tag (uses default version 2.0.55)\ndocker build --platform linux/amd64 -t jarnotmichal/factorio-with-http-controls:latest .\n```\n\n**2. Push to Docker Hub:**\n\n```bash\n# Push latest tag\ndocker push jarnotmichal/factorio-with-http-controls:latest\n\n# Push specific version\ndocker push jarnotmichal/factorio-with-http-controls:2.0.55-3\n```\n\n**3. Once published, others can use your image directly:**\n\n```bash\n# Pull and run from Docker Hub (from project directory with .env file)\ndocker run -d \\\n  --name factorio-server \\\n  --env-file .env \\\n  -p 34197:34197/udp \\\n  -p 8080:8080 \\\n  -v factorio-saves:/data/factorio \\\n  jarnotmichal/factorio-with-http-controls:2.0.55-3\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloper239%2Ffactoriotools-factorio-http-controls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeveloper239%2Ffactoriotools-factorio-http-controls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloper239%2Ffactoriotools-factorio-http-controls/lists"}