Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 09becad

Browse files
committed
Add reverse proxy test in travis
1 parent 09e10ac commit 09becad

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

client/src/app/core/auth/auth.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ export class AuthService {
7070

7171
if (error.status === 403) {
7272
errorMessage = `Cannot retrieve OAuth Client credentials: ${error.text}. \n`
73-
errorMessage += 'Ensure you have correctly configured PeerTube (config/ directory), in particular the "webserver" section.'
73+
errorMessage += 'Ensure you have correctly configured PeerTube (config/ directory), ' +
74+
'in particular the "webserver" section.'
7475
}
7576

7677
// We put a bigger timeout

server/initializers/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ const CONSTRAINTS_FIELDS = {
238238
const RATES_LIMIT = {
239239
LOGIN: {
240240
WINDOW_MS: 5 * 60 * 1000, // 5 minutes
241-
MAX: 10 // 10 attempts
241+
MAX: 15 // 15 attempts
242242
}
243243
}
244244

server/tests/api/index-fast.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ import './videos/video-privacy'
1111
import './videos/services'
1212
import './server/email'
1313
import './server/config'
14+
import './server/reverse-proxy'

server/tests/api/server/reverse-proxy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ describe('Test application behind a reverse proxy', function () {
6464
it('Should rate limit logins', async function () {
6565
const user = { username: 'root', password: 'fail' }
6666

67-
for (let i = 0; i < 9; i++) {
67+
for (let i = 0; i < 14; i++) {
6868
await userLogin(server, user, 400)
6969
}
7070

0 commit comments

Comments
 (0)