File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 69
69
# forceSSL = true;
70
70
# enableACME = true;
71
71
#};
72
+
73
+ # Optional: If buildbot is setup to run behind another proxy that does TLS
74
+ # termination set this to true to have buildbot use https:// for its endpoint
75
+ #useHTTPS = true;
72
76
}
Original file line number Diff line number Diff line change 187
187
example = "https://buildbot-webhooks.numtide.com/" ;
188
188
default = config . services . buildbot-master . buildbotUrl ;
189
189
} ;
190
+ useHTTPS = lib . mkOption {
191
+ type = lib . types . nullOr lib . types . bool ;
192
+ default = false ;
193
+ description = ''
194
+ If buildbot is setup behind a reverse proxy other than the configured nginx set this to true
195
+ to force the endpoint to use https:// instead of http://.
196
+ '' ;
197
+ } ;
190
198
191
199
outputsPath = lib . mkOption {
192
200
type = lib . types . nullOr lib . types . path ;
292
300
buildbotUrl =
293
301
let
294
302
host = config . services . nginx . virtualHosts . ${ cfg . domain } ;
295
- hasSSL = host . forceSSL || host . addSSL ;
303
+ hasSSL = host . forceSSL || host . addSSL || cfg . useHTTPS ;
296
304
in
297
305
"${ if hasSSL then "https" else "http" } ://${ cfg . domain } /" ;
298
306
dbUrl = config . services . buildbot-nix . master . dbUrl ;
You can’t perform that action at this time.
0 commit comments