-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): create platform dependant default values for CLI flags (#458)
- Loading branch information
1 parent
59f1a2f
commit d8b800d
Showing
5 changed files
with
38 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,14 @@ | |||
// +build !windows | |||
|
|||
package cli | |||
|
|||
const ( | |||
defaultBindAddress = ":9000" | |||
defaultDataDirectory = "/data" | |||
defaultAssetsDirectory = "." | |||
defaultTemplatesURL = "https://raw.githubusercontent.com/portainer/templates/master/templates.json" | |||
defaultTLSVerify = "false" | |||
defaultTLSCACertPath = "/certs/ca.pem" | |||
defaultTLSCertPath = "/certs/cert.pem" | |||
defaultTLSKeyPath = "/certs/key.pem" | |||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,12 @@ | |||
package cli | |||
|
|||
const ( | |||
defaultBindAddress = ":9000" | |||
defaultDataDirectory = "C:\\data" | |||
defaultAssetsDirectory = "." | |||
defaultTemplatesURL = "https://raw.githubusercontent.com/portainer/templates/master/templates.json" | |||
defaultTLSVerify = "false" | |||
defaultTLSCACertPath = "C:\\certs\\ca.pem" | |||
defaultTLSCertPath = "C:\\certs\\cert.pem" | |||
defaultTLSKeyPath = "C:\\certs\\key.pem" | |||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters