-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add main package to build caddy with the tailscale plugin
This is equivalent to using xcaddy to build, but demonstrates how one might do it programmatically, and will also make it simpler to use ko to build an OCI image. Signed-off-by: Will Norris <will@tailscale.com>
- Loading branch information
1 parent
26fe45e
commit 5cc2140
Showing
4 changed files
with
99 additions
and
1 deletion.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Copyright (c) Tailscale Inc & AUTHORS | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package main | ||
|
||
import ( | ||
caddycmd "github.com/caddyserver/caddy/v2/cmd" | ||
|
||
_ "github.com/caddyserver/caddy/v2/modules/standard" | ||
_ "github.com/tailscale/caddy-tailscale" | ||
) | ||
|
||
func main() { | ||
caddycmd.Main() | ||
} |
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