|
|
@ -17,12 +17,13 @@ import ( |
|
|
|
|
|
|
|
|
|
|
|
var CmdGenerate = cli.Command{ |
|
|
|
var CmdGenerate = cli.Command{ |
|
|
|
Name: "generate", |
|
|
|
Name: "generate", |
|
|
|
Usage: "Generate web server configuration files", |
|
|
|
Usage: "Generate self-signed certificate, apache and nginx configuration files", |
|
|
|
Description: `Generate configuration files to use a web server as a proxy for Gogs.`, |
|
|
|
Description: `Generate configuration files to use a web server as a proxy for Gogs.`, |
|
|
|
Flags: []cli.Flag{ |
|
|
|
Flags: []cli.Flag{ |
|
|
|
cli.StringFlag{"config, c", "custom/conf/app.ini", "Custom configuration file path", ""}, |
|
|
|
cli.StringFlag{"config, c", "custom/conf/app.ini", "Custom configuration file path", ""}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
Subcommands: []cli.Command{ |
|
|
|
Subcommands: []cli.Command{ |
|
|
|
|
|
|
|
CmdCert, |
|
|
|
{ |
|
|
|
{ |
|
|
|
Name: "apache", |
|
|
|
Name: "apache", |
|
|
|
Usage: "generate Apache configuration file", |
|
|
|
Usage: "generate Apache configuration file", |
|
|
|