-
-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: Custom HTML Headers and static assets got lost on caddy adapt #290
base: main
Are you sure you want to change the base?
Fix: Custom HTML Headers and static assets got lost on caddy adapt #290
Conversation
Dependant pull request in go-authcrunch: greenpau/go-authcrunch#49 |
(Kind of) minimal Caddyfile for reproduction:
|
@poettig , please add CLA to |
fbdae02
to
b99262a
Compare
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
@greenpau I rebased against upstream and signed using the CLA workflow. Should be cleared up now. |
@poettig , please add your consent to |
@poettig , please rebase to pick up go-authcrunch v1.0.46 |
…ng a Caddyfile to JSON with `caddy adapt`
4f17815
to
7bbff21
Compare
@poettig . please create PR here and describe how this feature works. https://github.com/authp/authp.github.io |
Once I review the docs, I will merge this one. |
@greenpau I don't think there is anything to add to the documentation. I just made Custom HTML Template Header and Static Assets work when running I might have understood something wrong about your request, so I'm open for clarifications :) |
@poettig , please help me understand this. You removed the following. why? (note that I already don't remember what it does 😄)
|
@greenpau As I understood it, this reads the specified file with custom HTML tags for inside the This behaviour was different to the other The code is not deleted, just moved to somewhere else :) |
When running
caddy adapt
, the config of an app gets marshaled into JSON. Becausecustom html header path
andstatic_asset
were not part of the configportal.UI
, they did not get marshaled, leading to these settings to be lost when usingcaddy adapt
and then running caddy with the resulting JSON instead of the Caddyfile.This merge request fixes that problem by moving the actual loading of the assets to go-authcrunch and only saving the values into the configuration when read from a Caddyfile.
I needed this because I run https://github.com/mholt/caddy-l4, which does not work with Caddyfiles.