3 var env
= require('gitter-web-env');
4 var nconf
= env
.config
;
6 // A comma-separated list of GitLab private-tokens
7 var accessTokenPoolString
= nconf
.get('gitlab:public_token_pool') || '';
8 var accessTokenPool
= accessTokenPoolString
.split(',');
10 var usageIterator
= 0;
12 module
.exports = function() {
13 var accessToken
= null;
14 if (accessTokenPool
.length
> 0) {
15 accessToken
= accessTokenPool
[usageIterator
++ % accessTokenPool
.length
];