Debug proxy, duck as fs
All checks were successful
/ docker (push) Successful in 4m23s

- 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:
Melody Becker 2025-04-23 15:11:46 +02:00
parent d70786439e
commit 415cd89792
Signed by: mstar
SSH key fingerprint: SHA256:9VAo09aaVNTWKzPW7Hq2LW+ox9OdwmTSHRoD4mlz1yI
8 changed files with 104 additions and 17 deletions

View file

@ -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")