Skip to content
This repository was archived by the owner on Feb 4, 2021. It is now read-only.

Commit 5f95f3a

Browse files
committed
Fix hydra cors settings
1 parent 6d3f05a commit 5f95f3a

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

.env.ci

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ HYDRA_SALT=youReallyNeedToChangeThis
55
OAUTH2_ISSUER_URL=http://localhost:4444
66
OAUTH2_CONSENT_URL=http://localhost:8080/oauth/consent
77
OAUTH2_LOGIN_URL=http://localhost:8080/oauth/login
8+
CORS_ALLOWED_ORIGINS=http://127.0.0.1:*,http://localhost:*,https://*.prolab.club,https://prolab.club
89

910
# for ridgepole
1011
DATABASE_URL_RIDGEPOLE=postgresql://postgres:@pg/accounts?sslmode=disable

.env.sample

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ HYDRA_SALT=youReallyNeedToChangeThis
55
OAUTH2_ISSUER_URL=http://localhost:4444
66
OAUTH2_CONSENT_URL=http://localhost:8080/oauth/consent
77
OAUTH2_LOGIN_URL=http://localhost:8080/oauth/login
8+
CORS_ALLOWED_ORIGINS=http://127.0.0.1:*,http://localhost:*,https://*.prolab.club,https://prolab.club
89

910
# for ridgepole
1011
DATABASE_URL_RIDGEPOLE=postgresql://postgres:@pg/accounts?sslmode=disable

docker-compose.yml

+2-7
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,8 @@ services:
5858
- OAUTH2_SHARE_ERROR_DEBUG=1
5959
- OIDC_SUBJECT_TYPES_SUPPORTED=public,pairwise
6060
- OIDC_SUBJECT_TYPE_PAIRWISE_SALT=${HYDRA_SALT}
61-
# - OAUTH2_ACCESS_TOKEN_STRATEGY=jwt
62-
# Uncomment the following lines when configuring tracing
63-
# - TRACING_PROVIDER=jaeger
64-
# - TRACING_PROVIDER_JAEGER_SAMPLING_SERVER_URL=http://jaeger:5778/sampling
65-
# - TRACING_PROVIDER_JAEGER_LOCAL_AGENT_ADDRESS=jaeger:6831
66-
# - TRACING_PROVIDER_JAEGER_SAMPLING_TYPE=const
67-
# - TRACING_PROVIDER_JAEGER_SAMPLING_VALUE=1
61+
- CORS_ENABLED=true
62+
- CORS_ALLOWED_ORIGINS=${CORS_ALLOWED_ORIGINS}
6863
restart: unless-stopped
6964

7065
pg:

0 commit comments

Comments
 (0)