2 Commits
Author SHA1 Message Date
Berk D. DemirandGitHub 7acb85f429 ntp: Allow alternative NTP servers as arguments (#244)
When the gokrazy deployment doesn't have internet access and the network
lacks NTP traffic re-routing to the local time servers, instances may
either have downright wrong clock (e.g. Raspberry Pi with no RTC) or
experience divergence due to drift.

This add the ability to override the default NTP Pool Vendor Zone for
gokrazy with servers supplied as command line arguments.

e.g.
```
    "PackageConfig": {
        "github.com/gokrazy/gokrazy/cmd/ntp": {
            "CommandLineFlags": [
                "time1.local",
                "time2.local",
                "10.1.2.123"
            ]
        }
    }
```
2024-01-18 08:20:56 +01:00
Berk D. DemirandGitHub 620adabf26 dhcp: Allow -static_network_config to read from a file (#241)
It might be more desirable to deploy the static network configuration as
its own JSON file instead of needing to deal with string quoting it to
fit into `config.json`.

- Add a simple heuristic for checking if the flag value is a JSON string.
  - If the value is JSON, preserve the original behavior
  - If not, treat it value as a file path and load the JSON from there.

- Set lease source string to reflect the source of static configuration.
2024-01-07 11:56:56 +01:00