Merge pull request #307 from cheeseandcereal/add_proxy_port

add proxy-port for port override when running behind a proxy
This commit is contained in:
Andrea Spacca
2020-05-17 19:28:21 +02:00
committed by GitHub
4 changed files with 50 additions and 23 deletions

View File

@ -141,6 +141,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:] != "/" {
@ -280,6 +286,7 @@ type Server struct {
webPath string
proxyPath string
proxyPort string
gaKey string
userVoiceKey string