Skip to content

Commit

Permalink
Merge pull request #55 from consiglionazionaledellericerche/54-rimuov…
Browse files Browse the repository at this point in the history
…ere-dal-env-le-configurazioni-da-non-compilare-in-fase-di-build

Rimossi da .env parametri da impostare a runtime
  • Loading branch information
criluc authored Nov 14, 2024
2 parents 7265e64 + 1cb8a49 commit 43372bf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
16 changes: 1 addition & 15 deletions .env
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
#uri per il redirect dopo autenticazione NextAuth
NEXTAUTH_URL=http://localhost:3000/

#stringa randomizzata per dare un secret a nextauth
#NEXT_PUBLIC_NEXTAUTH_SECRET=

#clientid oauth keycloak
NEXT_PUBLIC_CLIENTID=epas-ui

#client secret oauth keykloack
#CLIENT_SECRET=xxx

Expand All @@ -17,12 +11,4 @@ NEXT_PUBLIC_SCOPES=profile
NEXT_PUBLIC_OAUTH_LOGIN=true

#variabile d'ambiente usata per attivare (true) o disattivare (false) il login con LDAP
NEXT_PUBLIC_LDAP_LOGIN=false

#indirizzo con la configurazione del oauth
NEXT_PUBLIC_OAUTH_CONFIG_URL=https://auth.iit.cnr.it/auth/realms/testing/.well-known/uma2-configuration
#indirizzo issuer oauth
NEXT_PUBLIC_OAUTH_ISSUER_URL=https://auth.iit.cnr.it/auth/realms/testing

#endpoint del backend per l'invio di segnalazioni all'helpdesk
NEXT_PUBLIC_EPAS_HELPDESK_SERVICE=https://epas-helpdesk-service.devel.iit.cnr.it/rest/v1/reportcenter
NEXT_PUBLIC_LDAP_LOGIN=false
11 changes: 10 additions & 1 deletion .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,14 @@ NEXT_PUBLIC_OAUTH_CONFIG_URL=https://auth.iit.cnr.it/auth/realms/testing/.well-k
#URL dell'Issuer del Toaken OAuth
NEXT_PUBLIC_OAUTH_ISSUER_URL=https://auth.iit.cnr.it/auth/realms/testing

#uri per il redirect dopo autenticazione NextAuth
NEXTAUTH_URL=http://localhost:3000/

#clientid oauth keycloak
NEXT_PUBLIC_CLIENTID=epas-ui

#client secret oauth keykloack
NEXT_PUBLIC_CLIENT_SECRET=
NEXT_PUBLIC_CLIENT_SECRET=

#endpoint del backend per l'invio di segnalazioni all'helpdesk
NEXT_PUBLIC_EPAS_HELPDESK_SERVICE=https://epas-helpdesk-service.devel.iit.cnr.it/rest/v1/reportcenter

0 comments on commit 43372bf

Please sign in to comment.