Skip to content

Ship one example configuration - #121

Merged
beetlebugorg merged 2 commits into
mainfrom
chore/single-example-config
Sep 1, 2026
Merged

Ship one example configuration#121
beetlebugorg merged 2 commits into
mainfrom
chore/single-example-config

Conversation

@beetlebugorg

@beetlebugorg beetlebugorg commented Sep 1, 2026

Copy link
Copy Markdown
Owner

What

conf/mod_dims.conf.example is the only example configuration. Its allowlist is commented out.

Why

Two example configurations described different servers. conf/mod_dims.conf.example is the file the build installs, the file docs/docs/configuration/index.md names, and the file ExampleConfigIsValid parses against httpd. It sets /dims5/, DimsSigningKey, DimsMaxSourceBytes, DimsAllowPrivateAddresses, DimsAllowlistSigned, and DimsStatusVerbose.

examples/dims.conf dates to 2009 and last changed in 2012. It set placehold.it and *.aolcdn.com as its hosts, and it set none of the directives above. The build did not install it. ShippedConfigLoadsTheModule read it for one line, LoadModule.

AddHandler dims-local appeared only in that file. docs/docs/endpoints/local.md documents the handler.

The allowlist set images.example.com and *.cdn.example.com. An operator sets the hosts their own deployment fetches from.

Verify

make -C test test

278 cases pass, including ShippedConfigLoadsTheModule, ModuleLoadsIntoHttpd, and ExampleConfigIsValid.

Breaking

The build did not install examples/dims.conf. The example configuration is a template a reader copies and edits.

- Delete examples/dims.conf.
- Drop it from the shipped configuration check.
@beetlebugorg
beetlebugorg force-pushed the chore/single-example-config branch from ed78a7b to 6395eda Compare September 1, 2026 03:31
@beetlebugorg beetlebugorg changed the title Ship one example configuration with /dims3/ off Ship one example configuration Sep 1, 2026
The example set images.example.com and *.cdn.example.com. An operator sets
the hosts their own deployment fetches from.
@beetlebugorg
beetlebugorg force-pushed the chore/single-example-config branch from 6395eda to 544723e Compare September 1, 2026 11:15
@beetlebugorg
beetlebugorg merged commit e8e27a9 into main Sep 1, 2026
5 checks passed
@beetlebugorg
beetlebugorg deleted the chore/single-example-config branch September 1, 2026 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant