summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2023-07-31 15:46:25 -0700
committerMike Crute <mike@crute.us>2023-07-31 15:46:25 -0700
commitd7d77fd1c9035ec6356abb57a5486f0a13029628 (patch)
treecc9528787aa42171fee791bb69148c346ae4b2d9 /main.go
parentcfbb1efaea31c498433db43cb507f54545c724f5 (diff)
downloadwebsocket_proxy-d7d77fd1c9035ec6356abb57a5486f0a13029628.tar.bz2
websocket_proxy-d7d77fd1c9035ec6356abb57a5486f0a13029628.tar.xz
websocket_proxy-d7d77fd1c9035ec6356abb57a5486f0a13029628.zip
Make docker build work
Diffstat (limited to 'main.go')
-rw-r--r--main.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/main.go b/main.go
index 7cc3e90..a9c084d 100644
--- a/main.go
+++ b/main.go
@@ -4,6 +4,7 @@ package main
4 4
5import ( 5import (
6 "embed" 6 "embed"
7 "io/fs"
7 "log" 8 "log"
8 9
9 "code.crute.us/mcrute/ssh-proxy/app" 10 "code.crute.us/mcrute/ssh-proxy/app"
@@ -35,7 +36,12 @@ func main() {
35 } 36 }
36 cli.AddFlags(rootCmd, &app.Config{}, app.DefaultConfig, "") 37 cli.AddFlags(rootCmd, &app.Config{}, app.DefaultConfig, "")
37 38
38 web.Register(rootCmd, embeddedTemplates, embeddedClients, appVersion) 39 templates, err := fs.Sub(embeddedTemplates, "templates")
40 if err != nil {
41 log.Fatalf("Error building sub-fs of embeded fs")
42 }
43
44 web.Register(rootCmd, templates, embeddedClients, appVersion)
39 client.Register(rootCmd) 45 client.Register(rootCmd)
40 register.Register(rootCmd) 46 register.Register(rootCmd)
41 47