{"id":15858381,"url":"https://github.com/bpmct/c4d-packer","last_synced_at":"2025-04-01T19:45:57.663Z","repository":{"id":43374005,"uuid":"461303468","full_name":"bpmct/c4d-packer","owner":"bpmct","description":"VM images with Coder + Caddy for automatic TLS.","archived":false,"fork":false,"pushed_at":"2022-04-28T12:37:52.000Z","size":74,"stargazers_count":3,"open_issues_count":5,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-07T12:49:00.414Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://coder.com/docs","language":"HCL","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/bpmct.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}},"created_at":"2022-02-19T20:18:27.000Z","updated_at":"2022-10-24T12:26:35.000Z","dependencies_parsed_at":"2022-09-02T18:02:06.056Z","dependency_job_id":null,"html_url":"https://github.com/bpmct/c4d-packer","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpmct%2Fc4d-packer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpmct%2Fc4d-packer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpmct%2Fc4d-packer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpmct%2Fc4d-packer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bpmct","download_url":"https://codeload.github.com/bpmct/c4d-packer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246705195,"owners_count":20820689,"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":[],"created_at":"2024-10-05T21:00:35.406Z","updated_at":"2025-04-01T19:45:57.644Z","avatar_url":"https://github.com/bpmct.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Coder VM images\n\n[![Deploy to DO](https://www.deploytodo.com/do-btn-blue.svg)](https://marketplace.digitalocean.com/apps/coder)\n\nVM images with [Coder](https://coder.com/docs) + Caddy for automatic TLS.\n\n![Coder workspaces](https://www.datocms-assets.com/19109/1643078657-group-2.png)\n\nBy default, Coder will run on your public IPv4 address with a self-signed certificate: [https://your_droplet_public_ipv4/login](https://your_droplet_public_ipv4/login).\n\nUse the credentials below to login to your Coder workspace. Upon logging in, you will be prompted to change your password.\n\n```text\nUsername: admin\nPassword: coder12345\n```\n\n## Add a domain (optional)\n\n1. Point your DNS records (`coder.yourdomain.com` `*.coder.yourdomain.com`) to the Droplet's public IPv4 address.\n2. Navigate to the domain, Caddy should automatically provision a TLS certificate. (we recommend using an incognito window in the beginning to initial caching issues)\n\n## Enable [dev URLs](https://coder.com/docs/coder/latest/workspaces/devurls) (optional)\n\n1. SSH into your VM: `ssh root@your_droplet_public_ipv4`\n\n2. Follow instructions to modify `coder/docker-compose.yaml` and set\n\n   ```yaml\n   - DEVURL_HOST=*.coder.yourdomain.com\n   ```\n\n3. Modify `coder/Caddyfile` to specify your email address for LetsEncrypt.\n\n4. Restart Coder and Caddy:\n\n   ```bash\n   cd $HOME/coder \u0026\u0026 docker-compose restart\n   ```\n\n## Harden your configuration (recommended)\n\n1. SSH into your Droplet: `ssh root@your_droplet_public_ipv4`\n\n2. Follow instructions to modify `coder/Caddyfile` to disable \"internal\" (self-signed) certificates and add your email for LetsEncrypt.\n\n3. Replace `https:// {` with `coder.yourdomain.com, *.coder.yourdomain.com {` to limit the proxy to your domain(s).\n\n4. Restart Coder and Caddy:\n\n   ```bash\n   cd $HOME/coder \u0026\u0026 docker-compose restart\n   ```\n\n## Use a wildcard certificate\n\nBy default, Caddy's [On-Demand TLS](https://caddyserver.com/docs/automatic-https#on-demand-tls) will be used to generate certificates for dev URLs. This zero-configuration options works well, but introduces \\~10 second delays or [rate limiting](https://letsencrypt.org/docs/rate-limits/) when a developer visits a newly-created dev URL.\n\nFor best results, consider configuring [ZeroSSL with Caddy](https://caddy.community/t/using-zerossls-acme-endpoint/9406) or [build a Caddy image](https://github.com/docker-library/docs/tree/master/caddy#adding-custom-caddy-modules) with the module for your DNS provider.\n\nStay tuned for a [future release](https://github.com/bpmct/c4d-packer/releases) with improved steps for wildcard/custom certificates.\n\n## Use a managed Postgres database (optional)\n\n1. SSH into your Droplet: `ssh root@your_droplet_public_ipv4`\n\n2. Modify `coder/docker-compose.yaml` and [follow our docs](https://coder.com/docs/coder/latest/setup/docker#use-an-external-postgresql-database) to configure your managed database with Coder for Docker.\n\n3. Restart Coder and Caddy:\n\n   ```bash\n   cd $HOME/coder \u0026\u0026 docker-compose restart\n   ```\n\nStay tuned for a [future release](https://github.com/bpmct/c4d-packer/releases) more support for service-provided Postgres databases.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbpmct%2Fc4d-packer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbpmct%2Fc4d-packer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbpmct%2Fc4d-packer/lists"}