add proxy-port for port override when running behind a proxy

Signed-off-by: Adam Crowder <adam@adamcrowder.net>
This commit is contained in:
Adam Crowder
2020-05-03 02:19:32 -07:00
parent 8a5c737140
commit f366e8217e
4 changed files with 50 additions and 23 deletions

View File

@ -139,6 +139,12 @@ func ProxyPath(s string) OptionFn {
}
}
func ProxyPort(s string) OptionFn {
return func(srvr *Server) {
srvr.proxyPort = s
}
}
func TempPath(s string) OptionFn {
return func(srvr *Server) {
if s[len(s)-1:] != "/" {
@ -278,6 +284,7 @@ type Server struct {
webPath string
proxyPath string
proxyPort string
gaKey string
userVoiceKey string