This repository has been archived by the owner on Jun 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create RealInterfaceField.php Add a modified version of the Base InterfaceField, that reads the descriptive names and displays them in the GUI, but saves the physical interface names into the configuration. * Update Caddy.xml Expand the model to allow the DynDns functionality of Caddy. * Update general.xml Add fields for Dynamic DNS. * Update dialogReverseProxy.xml Add DynDNS Checkbox * Update dialogSubdomain.xml Added DynDNS Field * Update reverse_proxy.volt Added Dynamic DNS Fields to Bootgrids * Update ReverseProxyController.php Add DynDns to searchAction * Update Caddyfile Template Logic for Dynamic DNS added. The Dynamic DNS field will only appear if the following conditions are met: - DNS Provider isn't none - Api Key isn't empty - At least one domain or subdomain has the DynDns Checkbox checked. * Update README.md Build Instructions for xcaddy added. * Build new caddy binary to include dynamic-dns, and dns.providers desec and porkbun. * Build os-caddy-1.4.0. Logging refactored to syslog-ng, HTTP Access Logs can be enabled, Dynamic DNS feature added, new DNS Provider added. * Update README.md
- Loading branch information
Showing
28 changed files
with
349 additions
and
476 deletions.
There are no files selected for viewing
Binary file renamed
BIN
+10.2 MB
...plugin/FreeBSD:13:amd64/caddy-2.7.6_1.pkg → ...plugin/FreeBSD:13:amd64/caddy-2.7.6_2.pkg
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,37 @@ | ||
# How to build the caddy binary with xcaddy for OPNsense: | ||
|
||
- Install a ```FreeBSD 13.2-RELEASE AMD64``` build system | ||
- Install go | ||
- ```curl -L "https://go.dev/dl/go1.21.6.freebsd-amd64.tar.gz" -o go1.21.6.freebsd-amd64.tar.gz``` | ||
- ```rm -rf /usr/local/go && tar -C /usr/local -xzf go1.21.6.freebsd-amd64.tar.gz``` | ||
- Register go and xcaddy in ```cshrc``` shell | ||
- ```vi ~/.cshrc``` | ||
``` | ||
setenv PATH "${PATH}:/usr/local/go/bin" | ||
setenv PATH "${PATH}:${HOME}/go/bin" | ||
``` | ||
- Try out if go is available: | ||
```go version``` | ||
- Install xcaddy: | ||
```go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest``` | ||
- ```cd ~/go/pkg/mod``` | ||
- Use ```xcaddy build``` as specified below: | ||
|
||
# Current Build | ||
|
||
v2.7.6 h1:w0NymbG2m9PcvKWsrXO6EEkY9Ru4FJK8uQbYcev1p3A= | ||
```v2.7.6 h1:w0NymbG2m9PcvKWsrXO6EEkY9Ru4FJK8uQbYcev1p3A=``` | ||
``` | ||
xcaddy build --with github.com/caddyserver/ntlm-transport --with github.com/mholt/caddy-dynamicdns --with github.com/caddy-dns/cloudflare --with github.com/caddy-dns/duckdns --with github.com/caddy-dns/digitalocean --with github.com/caddy-dns/dnspod --with github.com/caddy-dns/hetzner --with github.com/caddy-dns/godaddy --with github.com/caddy-dns/gandi --with github.com/caddy-dns/vultr --with github.com/caddy-dns/ionos --with github.com/caddy-dns/desec --with github.com/caddy-dns/porkbun | ||
``` | ||
|
||
### Build Errors: | ||
|
||
If you have build errors, go into the specified files and try to fix them, for example right now there can be a few ```int``` and ```uint``` errors. They're easy to fix, just change int to uint at the right spot. | ||
|
||
### Test the build: | ||
|
||
dns.providers.cloudflare | ||
dns.providers.digitalocean | ||
dns.providers.dnspod | ||
dns.providers.duckdns | ||
dns.providers.gandi | ||
dns.providers.godaddy | ||
dns.providers.hetzner | ||
dns.providers.ionos | ||
dns.providers.vultr | ||
http.reverse_proxy.transport.http_ntlm | ||
- ```chmod +x ./caddy``` | ||
- ```./caddy version``` | ||
- ```./caddy list-modules``` | ||
|
||
curl -L "https://caddyserver.com/api/download?os=freebsd&arch=amd64&p=github.com%2Fcaddy-dns%2Fcloudflare&p=github.com%2Fcaddy-dns%2Fduckdns&p=github.com%2Fcaddyserver%2Fntlm-transport&p=github.com%2Fcaddy-dns%2Fdigitalocean&p=github.com%2Fcaddy-dns%2Fdnspod&p=github.com%2Fcaddy-dns%2Fhetzner&p=github.com%2Fcaddy-dns%2Fgodaddy&p=github.com%2Fcaddy-dns%2Fgandi&p=github.com%2Fcaddy-dns%2Fvultr&p=github.com%2Fcaddy-dns%2Fionos&idempotency=95822663652784" -o caddy | ||
If that works, then caddy is compiled successfully. If not, and theres a panic, then the compilation went wrong, probably due to a faulty module, or a duplicate module. |
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.