forked from serlo/serlo-editor-for-edusharing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env
58 lines (43 loc) · 5.92 KB
/
.env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# === General settings ===
# URL under which the serlo editor is accessable for users (This will also be
# the issuer of the editor used for LTI)
EDITOR_URL=http://localhost:3000/
# Settings for mongodb
MONGODB_URL=mongodb://localhost/admin
MONGODB_USERNAME=root
MONGODB_PASSWORD=example
# === Settings for using the editor as a LTI tool ===
# Client ID which was assigned to the Serlo editor by edu-sharing
PLATFORM_CLIENT_ID=piQ0JV8O880ZrVt
# Issuer of edu-sharing
PLATFORM_URL=http://repository.127.0.0.1.nip.io:8100/edu-sharing
# LTI authentication endpoints of edu-sharing (These must be the URLs under
# which edu-sharing is publically visible)
PLATFORM_AUTHENTICATION_ENDPOINT=http://repository.127.0.0.1.nip.io:8100/edu-sharing/rest/ltiplatform/v13/auth
PLATFORM_ACCESSTOKEN_ENDPOINT=http://repository.127.0.0.1.nip.io:8100/edu-sharing/rest/ltiplatform/v13/token
# Keyset URL of edu-sharing. Note that this needs to be a URL under which
# edu-sharing is directly visible to the Serlo editor, e.g. in a local docker
# environment `PLATFORM_JWK_SET` might be `http://repository-service:8080/...`
PLATFORM_JWK_SET=http://repository.127.0.0.1.nip.io:8100/edu-sharing/rest/lti/v13/jwks
# Key used to sign seesion cookies and ltik token
# See https://cvmcosta.me/ltijs/#/provider?id=encryption-key
PLATFORM_SECRET=LTIKEY
# === Settings for using the editor as a LTI platform ===
# Configs of the editor when used as a LTI platform
EDITOR_CLIENT_ID=editor
EDITOR_DEPLOYMENT_ID=2
EDITOR_KEY_ID=42
# Urls of edu-sharing for using as a LTI tool
EDITOR_TARGET_DEEP_LINK_URL=http://repository.127.0.0.1.nip.io:8100/edu-sharing/rest/lti/v13/lti13
EDITOR_LOGIN_INITIATION_URL=http://repository.127.0.0.1.nip.io:8100/edu-sharing/rest/lti/v13/oidc/login_initiations
# URL to endpoint to get embed HTML for edusharing embeddings (`nodeId` will be
# added to this URL)
EDITOR_EDUSHARING_DETAILS_URL=http://repository.127.0.0.1.nip.io:8100/edu-sharing/rest/lti/v13/details
# Must be a RSA key with at least 2048 bits
EDITOR_PLATFORM_PRIVATE_KEY=LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCk1JSUVwQUlCQUFLQ0FRRUE0c3o2V1NyRVgyd1AvUTFJOGRSMU5nNE92bENzaTEraXlsRHQ2K1FWR2hFS2tnNHUgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIApVekJDdVRQZktPT1BmWjQxOEgxeTJ2TnhTM1A4d3BTN09rZHRPVzV4OHA1SGNtRUxhR3hwUFZPMGFxTllWY2JWICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKTElJekt2ajlyOVFDaXhnNDR2a3ZtZkdqNW1UNkpKWVdKT0xNT0lYSUxsektUMlFocElhbXhiR3N1ZlFRMzZ1dCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCjVweG1DOTMrQWltQWJSejloMzB4T0NJWnRVeTVTVVZLbktKS3g1L2NySkVETElPYW41Q3NWRkdicVo1OUIvRS8gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIApLVDhpa3dUODA0enBpRWEyMlIvL3pWSDI3ZlgrUnVIb2JZWEJDUU1wU084UXdFREliU05QSklHT0xSQy9XZVE1ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKVTgrdVk0VHg3Umo1bjl3cms1a0U1aVpEVzNPMXN3R0F3R00xdHdJREFRQUJBb0lCQVFETmRYZk4wMHAyVDBUayAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCnIyWkhmWHA1YjU2M2xnblpjTmZlaEJZbFBraEhodXlXaDdZN3NscWZ3SGdIYUs4UzA0SjF6SStCL2t2Q1dONi8gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAp2MUVsYUpOd0ZiZXdYT2JJblZWaVVlTzhwTm1xU1RPNjhSY283UUpCaWJMMzJBNDl4OEd4REtDc3l4VDVvTHhpICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKN0h3L0NoNkxqZFpjK2I1azBZY1FydExpQVNWQ2hqMEsvMm9jbXR0V2hSZGZyKzRaL3orWnQ4YVhPelpLbXB0biAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCk5Ceng1UXlaSHJwdUxuR1hIeU9NMWVIdWVuakFKOVkwdGhDK1BUQkxkenp3ekFVcW84YzMyYW41YkZCaytYRkIgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIApWSjV6NXRWUWZXcE85di9wS2JrWDRhZlhzQVJqc3F5cmZ0bjd0eEp1Z3B5dWkxSmlqZVRmTlRTRjhFWE9kVXhvClNlT2laUlRoQW9HQkFQZmU4L3BXMytPMytoZE5vSjc1ZGRjUVBxd1htVUJnTE9lMjZrSW1BeU9zaEZJSmU5SksKb1NLNlgwUUdwdmUvVXd3Z3ptMnRnNU5kVDJ4MmpSRFZhUU5QNVBxbWt0Yi9kYVc1R0tYa1pVQWlNcnNRNyt4NwpIKzRja2xVMXE2N3FYakNadHFVYkZjOXRQYTFlcFVqeVFIREFTTUpEUk1KT0RNRDVCRGlULytRcEFvR0JBT285CklEdy8vTFNkd3JWVWd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JBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUE0c3o2V1NyRVgyd1AvUTFJOGRSMQpOZzRPdmxDc2kxK2l5bER0NitRVkdoRUtrZzR1VXpCQ3VUUGZLT09QZlo0MThIMXkydk54UzNQOHdwUzdPa2R0Ck9XNXg4cDVIY21FTGFHeHBQVk8wYXFOWVZjYlZMSUl6S3ZqOXI5UUNpeGc0NHZrdm1mR2o1bVQ2SkpZV0pPTE0KT0lYSUxsektUMlFocElhbXhiR3N1ZlFRMzZ1dDVweG1DOTMrQWltQWJSejloMzB4T0NJWnRVeTVTVVZLbktKSwp4NS9jckpFRExJT2FuNUNzVkZHYnFaNTlCL0UvS1Q4aWt3VDgwNHpwaUVhMjJSLy96VkgyN2ZYK1J1SG9iWVhCCkNRTXBTTzhRd0VESWJTTlBKSUdPTFJDL1dlUTVVOCt1WTRUeDdSajVuOXdyazVrRTVpWkRXM08xc3dHQXdHTTEKdHdJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0t
# === Additional configurations ===
# When the editor is deployed in docker we cannot access edusharing via
# `localhost`. This is a hack to overwrite the host in `postContentApiUrl` and
# `getContentApiUrl`. This should not be needed in a Kubernetes deployment.
EDUSHARING_NETWORK_HOST=repository.127.0.0.1.nip.io:8100