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
* Move Port to Web param group
* Add ENV option to Port
* Remove default value from config-file
doc: Update readme
* Add parameters to README
Add LoadConfigFromYaml tests
* db_port as uint16
* remove parameter from LoadConfigFromYaml method
refactor: Use config.DBConfig as parameter in db.Init
Sync interval configuration
doc: Update README for sync-interval config
* Use sync-interval in retry sleep too
@@ -111,6 +143,8 @@ Then point your browser to http://localhost:8080.
111
143
112
144
To use the included compose file, you will need to configure an [OAuth application](https://developer.github.com/apps/building-oauth-apps/).
113
145
146
+
Configuration file can be provided to the container using a [volume](https://docs.docker.com/compose/compose-file/#volumes) or a [configuration](https://docs.docker.com/compose/compose-file/#configs).
FileExtensionstring`long:"file-extension" env:"AWS_FILE_EXTENSION" yaml:"file-extension" description:"File extension of state files." default:".tfstate"`
36
+
}
37
+
38
+
// AWSConfig stores the DynamoDB table and S3 Bucket configuration
39
+
typeAWSConfigstruct {
40
+
DynamoDBTablestring`long:"dynamodb-table" env:"AWS_DYNAMODB_TABLE" yaml:"dynamodb-table" description:"AWS DynamoDB table for locks."`
41
+
S3S3BucketConfig`group:"S3 Options" yaml:"s3"`
42
+
}
43
+
44
+
// WebConfig stores the UI interface parameters
45
+
typeWebConfigstruct {
46
+
Portuint16`short:"p" long:"port" env:"TERRABOARD_PORT" yaml:"port" description:"Port to listen on." default:"8080"`
FileExtensionstring`long:"file-extension" env:"AWS_FILE_EXTENSION" yaml:"file-extension" description:"File extension of state files." default:".tfstate"`
0 commit comments