0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-27 22:59:51 -05:00

chore: remove behindProxy

not ready for this release, need more thoughts
This commit is contained in:
Juan Picado 2021-04-05 20:48:41 +02:00
parent 80d669e6eb
commit 507e55a9a5
3 changed files with 0 additions and 6 deletions

View file

@ -66,7 +66,6 @@ packages:
# WORKAROUND: Through given configuration you can workaround following issue https://github.com/verdaccio/verdaccio/issues/301. Set to 0 in case 60 is not enough.
server:
keepAliveTimeout: 60
# behindProxy: false
middlewares:
audit:

View file

@ -71,8 +71,6 @@ packages:
# WORKAROUND: Through given configuration you can workaround following issue https://github.com/verdaccio/verdaccio/issues/301. Set to 0 in case 60 is not enough.
server:
keepAliveTimeout: 60
# enable this if you run behind a proxy
# behindProxy: false
middlewares:
audit:

View file

@ -21,9 +21,6 @@ import { log, final, errorReportingMiddleware, serveFavicon } from './middleware
const defineAPI = function (config: IConfig, storage: IStorageHandler): any {
const auth: IAuth = new Auth(config);
const app: Application = express();
if (config?.server?.behindProxy === true) {
// app.use('trust proxy');
}
// run in production mode by default, just in case
// it shouldn't make any difference anyway