redelivre / login-cidadao

Federated Digital Identity Provider for Gov and eCitizen
https://id.org.br
GNU Affero General Public License v3.0
12 stars 8 forks source link

v1.21 - Removed deprecated config and moved it to .env #315

Closed guilhermednt closed 5 years ago

guilhermednt commented 5 years ago

Attention - ACTION NEEDED

Our Trusted Proxies and Dev Allowed IPs config got moved to the .env file. Please update your config accordingly.

Before you'd set it in the parameters.yml config file.

# app/config/parameters.yml
parameters:
    trusted_proxies:
        - 1.2.3.4/24
        - 10.20.30.40/24
    dev_allowed:
        - 20.30.40.0/16

Now it must be set either via Environment Variables or in the .env file.

The Env Variables expected are TRUSTED_PROXIES and DEV_ALLOWED and they expect comma-separated addresses. Example:

# .env
TRUSTED_PROXIES=1.2.3.4/24,10.20.30.40/24
DEV_ALLOWED=20.30.40.0/16

PROCERGS#833