Skip to content

Add support for specifying Cloudflare proxy status#16

Open
CompeyDev wants to merge 3 commits intoNicell:mainfrom
CompeyDev:unproxied-records
Open

Add support for specifying Cloudflare proxy status#16
CompeyDev wants to merge 3 commits intoNicell:mainfrom
CompeyDev:unproxied-records

Conversation

@CompeyDev
Copy link
Copy Markdown

@CompeyDev CompeyDev commented May 2, 2026

The proxied request body field for Cloudflare API requests is no longer hardcoded to true.

Each value in cname.luau file can now either be a string (as before) or a typed table which contains the record content and a proxied boolean. If undefined, or a only a string is used, it defaults to proxying the record.

Two new types (Entry and Entries) have been exported from the file as well. These have been used for typing the table containing the old CNAMEs in scripts/update.luau.

This code has not been tested, since it is simple enough.

Comment thread scripts/update.luau Outdated
Comment thread scripts/update.luau Outdated
Handle string type old CNAMEs and defaulting proxy status in structured
entries when not defined by abstracting conversion into an `intoEntry`
utility function.
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.

2 participants