- Add proxy endpoint for proxying a message to a target's inbox - Change duck embed to fs based to fix mk not understanding it
This commit is contained in:
parent
d70786439e
commit
415cd89792
8 changed files with 104 additions and 17 deletions
4
main.go
4
main.go
|
@ -39,6 +39,9 @@ var nojsFS embed.FS
|
|||
//go:embed duck.webp
|
||||
var defaultDuck string
|
||||
|
||||
//go:embed duck.webp
|
||||
var duckFS embed.FS
|
||||
|
||||
func main() {
|
||||
other.SetupFlags()
|
||||
flag.Parse()
|
||||
|
@ -167,6 +170,7 @@ func newServer() {
|
|||
public := webpublic.New(
|
||||
fmt.Sprintf(":%v", config.GlobalConfig.General.PrivatePort),
|
||||
&defaultDuck,
|
||||
duckFS,
|
||||
)
|
||||
if err = public.Start(); err != nil {
|
||||
log.Fatal().Err(err).Msg("Failed to start public server")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue