mirror of
https://github.com/ArthurDanjou/artdanj-shortener.git
synced 2026-01-14 15:54:08 +01:00
Update proxy trusted
This commit is contained in:
@@ -5,7 +5,6 @@
|
|||||||
* file.
|
* file.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import proxyAddr from 'proxy-addr'
|
|
||||||
import Env from '@ioc:Adonis/Core/Env'
|
import Env from '@ioc:Adonis/Core/Env'
|
||||||
import { ServerConfig } from '@ioc:Adonis/Core/Server'
|
import { ServerConfig } from '@ioc:Adonis/Core/Server'
|
||||||
import { LoggerConfig } from '@ioc:Adonis/Core/Logger'
|
import { LoggerConfig } from '@ioc:Adonis/Core/Logger'
|
||||||
@@ -77,7 +76,7 @@ export const http: ServerConfig = {
|
|||||||
| headers.
|
| headers.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
trustProxy: proxyAddr.compile('true'),
|
trustProxy: () => true,
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user