{"id":19165354,"url":"https://github.com/skyscrapers/puppet-caddy","last_synced_at":"2025-04-19T21:34:10.686Z","repository":{"id":51264638,"uuid":"74475328","full_name":"skyscrapers/puppet-caddy","owner":"skyscrapers","description":"Puppet module to setup Caddy web server","archived":true,"fork":false,"pushed_at":"2023-01-19T13:16:28.000Z","size":39,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-22T23:15:01.436Z","etag":null,"topics":["caddy","letsencrypt","puppet","puppet-module","ssl"],"latest_commit_sha":null,"homepage":null,"language":"Puppet","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/skyscrapers.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}},"created_at":"2016-11-22T13:32:05.000Z","updated_at":"2024-08-19T09:48:48.000Z","dependencies_parsed_at":"2023-02-11T00:45:43.558Z","dependency_job_id":null,"html_url":"https://github.com/skyscrapers/puppet-caddy","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/skyscrapers%2Fpuppet-caddy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyscrapers%2Fpuppet-caddy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyscrapers%2Fpuppet-caddy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyscrapers%2Fpuppet-caddy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skyscrapers","download_url":"https://codeload.github.com/skyscrapers/puppet-caddy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249810966,"owners_count":21328721,"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":["caddy","letsencrypt","puppet","puppet-module","ssl"],"created_at":"2024-11-09T09:27:35.010Z","updated_at":"2025-04-19T21:34:10.366Z","avatar_url":"https://github.com/skyscrapers.png","language":"Puppet","funding_links":[],"categories":[],"sub_categories":[],"readme":"# puppet-caddy\n\n## Description\n\nPuppet module to setup Caddy web server\n\n## Setup\n\n### Requirements\n\nThis module has the following module dependencies:\n\n- archive: https://forge.puppet.com/puppet/archive\n- concat: https://forge.puppet.com/puppetlabs/concat\n- stdlib: https://forge.puppet.com/puppetlabs/stdlib\n\n## Usage\n\nIn order to use the caddy module, just include it in your manifest. You can configure everything from hiera.\n\nTo configure the caddy module, just take a look at the parameters in [`manifests/init.pp`](manifests/init.pp).\n\nTo setup a server / virtual host, you have to define a `caddy::servers` hiera hash, where the keys of the hash are the server addresses, and the parameters are:\n\n- `port` (optional): the server will be listening to this port\n- `directives` (optional): all the specific directives that the server have to contain.\n\nTake a look at the [Caddyfile documentation](https://caddyserver.com/docs/caddyfile), to know how the server address can be specified, and to have more information on all the directives that can be specified.\n\n### Example\n\nIn your puppet code:\n\n```\nnode default {\n  include ::caddy\n}\n```\n\nIn hiera data:\n\n```yaml\n---\n  caddy::servers:\n    'www.caddy.com':\n      directives:\n        log: 'stdout'\n        gzip: ''\n        'markdown /blog':\n          css: '/blog.css'\n          js: '/scripts.js'\n\n```\n\nFor setups managed by `systemd`, try to use `log stdout` and `errors stderr` as much as possible for the logs to end up in `journald`.\nWith `journalctl` it is quite easy to search for specific log entries in a unified way.\n\nE.g. search for LetsEncrypt rate limiting messages in the last 5 days:\n\n`$ journalctl -u caddy -p err --since \"5 days ago\"`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyscrapers%2Fpuppet-caddy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskyscrapers%2Fpuppet-caddy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyscrapers%2Fpuppet-caddy/lists"}