Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!
openssl genrsa -des3 -out rootCA.key 4096| map $http_origin $cors_origin_header { | |
| default ""; | |
| "~(^|^http:\/\/)(localhost$|localhost:[0-9]{1,4}$)" "$http_origin"; | |
| "~^https://test-.-dev.example.pl$" "$http_origin"; # https://test-7-dev.example.pl | |
| "https://test.example.com" "$http_origin"; | |
| } | |
| map $http_origin $cors_cred { | |
| default ""; | |
| "~(^|^http:\/\/)(localhost$|localhost:[0-9]{1,4}$)" "true"; |