You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any of the previous execution methods accept configuration through the following environment variables.
72
-
73
-
| Variable | Default value | Meaning |
74
-
| -- | -- | -- |
75
-
|`GITBASEPG_HOST`|`0.0.0.0`| IP address to bind the HTTP server |
76
-
|`GITBASEPG_PORT`|`8080`| Port to bind the HTTP server |
77
-
|`GITBASEPG_SERVER_URL`|| URL used to access the application in the form `HOSTNAME[:PORT]`. Leave it unset to allow connections from any proxy or public address |
78
-
|`GITBASEPG_DB_CONNECTION`|`root@tcp(localhost:3306)/none?maxAllowedPacket=4194304`| gitbase connection string. Use the DSN (Data Source Name) format described in the [Go MySQL Driver docs](https://github.com/go-sql-driver/mysql#dsn-data-source-name). |
79
-
|`GITBASEPG_BBLFSH_SERVER_URL`|`127.0.0.1:9432`| Address where bblfsh server is listening |
80
-
|`GITBASEPG_ENV`|`production`| Sets the log level. Use `dev` to enable debug log messages |
81
-
|`GITBASEPG_SELECT_LIMIT`|`100`| Default `LIMIT` forced on all the SQL queries done from the UI. Set it to 0 to remove any limit |
82
-
|`GITBASEPG_FOOTER_HTML`|| Allows to add any custom html to the page footer. It must be a string encoded in base64. Use it, for example, to add your analytics tracking code snippet |
71
+
Any of the previous execution methods accept configuration through the following environment variables or CLI arguments.
72
+
73
+
| Variable |Argument |Default value | Meaning |
74
+
| -- | -- | -- | -- |
75
+
|`GITBASEPG_HOST`|`--host`|`0.0.0.0`| IP address to bind the HTTP server |
76
+
|`GITBASEPG_PORT`|`--port`|`8080`| Port to bind the HTTP server |
77
+
|`GITBASEPG_SERVER_URL`|`--server`|| URL used to access the application in the form `HOSTNAME[:PORT]`. Leave it unset to allow connections from any proxy or public address |
78
+
|`GITBASEPG_DB_CONNECTION`|`--db`|`root@tcp(localhost:3306)/none?maxAllowedPacket=4194304`| gitbase connection string. Use the DSN (Data Source Name) format described in the [Go MySQL Driver docs](https://github.com/go-sql-driver/mysql#dsn-data-source-name). |
79
+
|`GITBASEPG_BBLFSH_SERVER_URL`|`--bblfsh`|`127.0.0.1:9432`| Address where bblfsh server is listening |
80
+
|`GITBASEPG_ENV`|`--env`|`production`| Sets the log level. Use `dev` to enable debug log messages |
81
+
|`GITBASEPG_SELECT_LIMIT`|`--select-limit`|`100`| Default `LIMIT` forced on all the SQL queries done from the UI. Set it to 0 to remove any limit |
82
+
|`GITBASEPG_FOOTER_HTML`|`--footer`|| Allows to add any custom html to the page footer. It must be a string encoded in base64. Use it, for example, to add your analytics tracking code snippet |
cli.PlainCommand`name:"serve" short-description:"serve the app" long-description:"starts serving the application"`
33
+
Envstring`long:"env" env:"GITBASEPG_ENV" default:"production" description:"Sets the log level. Use 'dev' to enable debug log messages"`
34
+
Hoststring`long:"host" env:"GITBASEPG_HOST" default:"0.0.0.0" description:"IP address to bind the HTTP server"`
35
+
Portint`long:"port" env:"GITBASEPG_PORT" default:"8080" description:"Port to bind the HTTP server"`
36
+
ServerURLstring`long:"server" env:"GITBASEPG_SERVER_URL" description:"URL used to access the application in the form 'HOSTNAME[:PORT]'. Leave it unset to allow connections from any proxy or public address"`
37
+
DBConnstring`long:"db" env:"GITBASEPG_DB_CONNECTION" default:"root@tcp(localhost:3306)/none?maxAllowedPacket=4194304" description:"gitbase connection string. Use the DSN (Data Source Name) format described in the Go MySQL Driver docs: https://github.com/go-sql-driver/mysql#dsn-data-source-name"`
38
+
SelectLimitint`long:"select-limit" env:"GITBASEPG_SELECT_LIMIT" default:"100" description:"Default 'LIMIT' forced on all the SQL queries done from the UI. Set it to 0 to remove any limit"`
39
+
BblfshServerURLstring`long:"bblfsh" env:"GITBASEPG_BBLFSH_SERVER_URL" default:"127.0.0.1:9432" description:"Address where bblfsh server is listening"`
40
+
FooterHTMLstring`long:"footer" env:"GITBASEPG_FOOTER_HTML" description:"Allows to add any custom html to the page footer. It must be a string encoded in base64. Use it, for example, to add your analytics tracking code snippet"`
0 commit comments