italia / Satosa-Saml2Spid

SATOSA SAML-to-SAML proxy with Spid compliances
Apache License 2.0
42 stars 23 forks source link

Environments optimization #126

Closed MdreW closed 4 months ago

MdreW commented 4 months ago

Some environments can be optimized with another environment reference. For example

      - SATOSA_BASE=https://${HOSTNAME:-localhost}
      - SATOSA_BASE_STATIC=https://${HOSTNAME:-localhost}/static
      - SATOSA_DISCO_SRV=https://${HOSTNAME:-localhost}/static/disco.html
      - SATOSA_UNKNOW_ERROR_REDIRECT_PAGE=https://${HOSTNAME:-localhost}/static/error_page.html
  - SATOSA_HOST=${HOSTNAME:-localhost}
  - SATOSA_BASE=https://${SATOSA_HOST}
  - SATOSA_BASE_STATIC=${SATOSA_BASE}/static                                                       
  - SATOSA_DISCO_SRV=${SATOSA_BASE_STATIC}/disco.html                  
  - SATOSA_UNKNOW_ERROR_REDIRECT_PAGE=${SATOSA_BASE_STATIC}/error_page.html

What do you think?
MdreW commented 4 months ago

you would have to move the structure to the .env file and that's not nice. I'm closing the issue for now