added base reverse proxy

This commit is contained in:
2024-08-22 17:14:13 +01:00
parent 9d9e385909
commit 505ef3b982
12 changed files with 221 additions and 18 deletions

View File

@@ -283,7 +283,7 @@ var CliAction = func(ctx *cli.Context) error {
}
if MAPPort != "" {
address, err := client.MAPPort(MAPPort)
address, err := client.MAPPort(MAPPort, DomainName)
if err != nil {
return err
}

View File

@@ -30,6 +30,7 @@ var (
RemoveContainerGroup bool
RemoveGroup string
MAPPort string
DomainName string
//FRPProxy bool
// Generate only allowed in dev release
// -- REMOVE ON REGULAR RELEASE --
@@ -212,6 +213,13 @@ var AppConfigFlags = []cli.Flag{
EnvVars: []string{"MAPPORT"},
Destination: &MAPPort,
},
&cli.StringFlag{
Name: "DomainName",
Aliases: []string{"dn"},
Usage: "While mapping ports allows to set a domain name to create a mapping in the proxy server",
EnvVars: []string{"DOMAINNAME"},
Destination: &DomainName,
},
// Generate only allowed in dev release
// -- REMOVE ON REGULAR RELEASE --
&cli.StringFlag{