nette / bootstrap

🅱 The simple way to configure and bootstrap your Nette application.
https://doc.nette.org/bootstrap
Other
663 stars 36 forks source link

Detect reverse proxy #73

Closed FCapobianchi closed 3 weeks ago

FCapobianchi commented 3 weeks ago

Configurator detectDebugMode function now detect reverse proxy.

mabar commented 3 weeks ago

See https://github.com/nette/bootstrap/issues/54 and https://github.com/nette/tracy/issues/297 This solution is not safe for applications that do not run under reverse proxy

f3l1x commented 3 weeks ago

@FCapobianchi I'd suggest to create your own Bootstrap::detectDebugMode method with own logic for parsing IP, reverse proxy or sth like that.

mabar commented 3 weeks ago

Lot of alternatives exists, here are few of mine: https://github.com/orisai/nette-di/blob/cacff3e4322d4be17faacff1538c99e078b12997/docs/README.md#debug-mode

FCapobianchi commented 3 weeks ago

I created custom class that extend default Configurator ad override setDebugMode function. Thank's