Skip to content

Commit

Permalink
[#HSL-9] Updated README and .env.example file (#67)
Browse files Browse the repository at this point in the history
Co-authored-by: Emanuele De Cupis <ema.decu@gmail.com>
  • Loading branch information
arcogabbo and balanza authored Jul 26, 2022
1 parent eb44caa commit 96f53b0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
7 changes: 5 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

METADATA_PUBLIC_CERT="-----BEGIN CERTIFICATE-----\nMIIFWDCCA0ACCQCBCkl8qKGrtTANBgkqhkiG9w0BAQsFADBuMQswCQYDVQQGEwJJ\n-----END CERTIFICATE-----
METADATA_PUBLIC_CERT="-----BEGIN CERTIFICATE-----\nMIIFWDCCA0ACCQCBCkl8qKGrtTANBgkqhkiG9w0BAQsFADBuMQswCQYDVQQGEwJJ\n-----END CERTIFICATE-----"

METADATA_PRIVATE_CERT="-----BEGIN PRIVATE KEY-----\nMIIJQgIBADANBgkqhkiG9w0BAQEFAASCCSwwggkoAgEAAoICAQCh1LNwXzXj+/Pq\n-----END PRIVATE KEY-----"

Expand Down Expand Up @@ -62,4 +62,7 @@ SPID_LOGS_STORAGE_CONTAINER_NAME=spidassertions
SPID_LOGS_STORAGE_CONNECTION_STRING=DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://storage:10000/devstoreaccount1;QueueEndpoint=http://storage:10001/devstoreaccount1;
SPID_LOGS_PUBLIC_KEY="-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCh2U9uNjj06HglAlkXuCaAuGmB\ntWE9svolLzczQePuiVk41U8ALUto3FzpRDYKBdMawBo6ySsJSeNxBI8o/WPmEOsi\n0eXGlgiJvY/ily43l2xOOjPIJgCfHapBYEQPDv5thLehVi9nCHUynwDzxTpWshPM\nBOFhmaKZB2tgERXagwIDAQAB\n-----END PUBLIC KEY-----"

CIE_URL=https://preproduzione.idserver.servizicie.interno.gov.it/idp/shibboleth?Metadata
CIE_URL=https://preproduzione.idserver.servizicie.interno.gov.it/idp/shibboleth?Metadata
SERVER_PORT=9090

IDP_METADATA_URL=https://raw.githubusercontent.com/pagopa/spid-idp/main/spid-entities-idps.xml
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ This is a Microservice that is responsible to provide a single entry point for S
## How to launch
To run SPID Login microservice in a local environment you must:

- run `yarn install --frozen-lockfile` to install the dependencies
- copy `.env.example` into `.env`
- Execute `scripts/make-certs.sh`
- Fill environment variables with your configuration
- Fill METADATA_PUBLIC_CERT with the content of certs/key.pem (generated by make-certs.sh)
- Fill METADATA_PRIVATE_CERT with the content of certs/cert.pem (generated by make-certs.sh)
- Fill environment variables with your own configuration
- Fill METADATA_PUBLIC_CERT with content of certs/cert.pem (generated by make-certs.sh)
- Fill METADATA_PRIVATE_CERT with content of certs/key.pem (generated by make-certs.sh)
- Take care and set the same value for SP `SERVER_PORT` and the metadata endpoint port registered in `spid-testenv2` config yaml
- add a row to hosts file `127.0.0.1 spid-testenv2`
- build the project by running `yarn build`
Expand Down

0 comments on commit 96f53b0

Please sign in to comment.