File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,13 @@ class CoderSettingsConfigurable : BoundConfigurable("Coder") {
66
66
CoderGatewayBundle .message(" gateway.connector.settings.enable-binary-directory-fallback.comment" )
67
67
)
68
68
}.layout(RowLayout .PARENT_GRID )
69
+ row(CoderGatewayBundle .message(" gateway.connector.settings.header-command.title" )) {
70
+ textField().resizableColumn().align(AlignX .FILL )
71
+ .bindText(state::headerCommand)
72
+ .comment(
73
+ CoderGatewayBundle .message(" gateway.connector.settings.header-command.comment" )
74
+ )
75
+ }.layout(RowLayout .PARENT_GRID )
69
76
}
70
77
}
71
78
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ class CoderSettingsState : PersistentStateComponent<CoderSettingsState> {
18
18
var dataDirectory: String = " "
19
19
var enableDownloads: Boolean = true
20
20
var enableBinaryDirectoryFallback: Boolean = false
21
+ var headerCommand: String = " "
21
22
override fun getState (): CoderSettingsState {
22
23
return this
23
24
}
Original file line number Diff line number Diff line change @@ -87,3 +87,8 @@ gateway.connector.settings.enable-binary-directory-fallback.title=Fall back to d
87
87
gateway.connector.settings.enable-binary-directory-fallback.comment =Checking this \
88
88
box will allow the plugin to fall back to the data directory when the CLI \
89
89
directory is not writable.
90
+ gateway.connector.settings.header-command.title =Header command:
91
+ gateway.connector.settings.header-command.comment =An external command that \
92
+ outputs additional HTTP headers added to all requests. The command must \
93
+ output each header as `key =value` on its own line. The following \
94
+ environment variables will be available to the process: CODER_URL.
You can’t perform that action at this time.
0 commit comments