## 해결방안
1. DB서버의 JWT 값을 찾아서 sudo /edx/etc/lms.yml 값과 /edx/etc/studio.yml 외 기타 *.yml 파일에
JWT 항목 동일하게 수정 (매번 다름 / 4칸,4칸 띄어쓰기 주의)
--------------------------------------------------------------------------------------------------------------------------
JWT_PRIVATE_SIGNING_JWK: '{"kty": "RSA", "kid": "1GG3VI2F", "n": "p6A7UuqYd3RAMpcEbcX7YvqSIIClakcm4TbTWVz-s_ku-mWas5aZMI65gr2nA71NAf_0reMtlzqbnLP6Mz1y60WJE4tGgJiDwh2aYLAklciUYF7WoLpSOXIUhhaJde_Y3ofJlcIbqPdse2ylqyBW2MuUcDjZL5oh4G6u7AhJY9BQuTNqzo_KQrm-VL-eWwcNmuJugl-gqWOEocd8k4J5vIh9ry868XcM1-aatxsoPYyq686vIWDMh7iPJfnxXVxwb-YwGANWd8Gc6BeUmiX2NGr7joB8q1EZAqoQjSerIVv--Jh9mmyc770rQbO6uSmdlG9iL2GxEorEQIHnW9Pwtw",
"e": "AQAB", "d": "GHiYYIT2CC5U9u28DEiEaBE7hvow6-CCSQundBrS5jRBCvYNTR11tLSJWZBVUwLuPJYAwufw7mx0bj6KDrPwVG980PkarEhXp92JfYcJeEJlguIlhCZfPZqta1vb6nc-2lHJeI7zWcnxMN2OG_rnItQpke6CqmPegTS3XabiC-uPZHPCdXPjza6M4JaOh79TTS9LsorQ8O3IhgTxVWu5k5S6eKodW05Mp0nWo2f2iTy12x5RUjQLvTYFFmpy2OHaZC2xHv1JzOWQ-M0_aaqzjcU6F3XSHTaUyId8eozNwHvKFqOhKR2eiXmxaf_zdi0fDXBp6lUdpMGDhAt6izS0iQ",
"p": "xKMtKbnpaK9m5rorgAeqabmyFh5UJoeN8gXSd-aazZfVnE6oXSOK3mNce4BvlbC1dtzrUWEMuV64gK76TjAOHoyXaNratTRPapxnXJIlcDmrGqxuflMo49NNKt0gSVXCD8yERmYzgJdF3_3KgZvhjCsG_32y-JZhgXVqWWiXYj8",
"q": "2jryA8YsyhLyO8rq1eYkg_iqbarKZ2VBrFre-WagH6Vu4BvkZVT9L9FHx38qkF00xV40k3qyPDLrlEeSBPBqGZb-axGWQpCJi7H2SlXjrFLJaGB148YEYUBR3BFB0z0GMTKWqZ_0I8uArOW3OmwNehWht4IKVo6Q4mzu8q-uY4k"}'
JWT_PUBLIC_SIGNING_JWK_SET: '{"keys": [{"kty": "RSA", "kid": "1GG3VI2F", "n":
"p6A7UuqYd3RAMpcEbcX7YvqSIIClakcm4TbTWVz-s_ku-mWas5aZMI65gr2nA71NAf_0reMtlzqbnLP6Mz1y60WJE4tGgJiDwh2aYLAklciUYF7WoLpSOXIUhhaJde_Y3ofJlcIbqPdse2ylqyBW2MuUcDjZL5oh4G6u7AhJY9BQuTNqzo_KQrm-VL-eWwcNmuJugl-gqWOEocd8k4J5vIh9ry868XcM1-aatxsoPYyq686vIWDMh7iPJfnxXVxwb-YwGANWd8Gc6BeUmiX2NGr7joB8q1EZAqoQjSerIVv--Jh9mmyc770rQbO6uSmdlG9iL2GxEorEQIHnW9Pwtw",
"e": "AQAB"}]}'
JWT_SECRET_KEY: oc8bdwhjgs64U10V2TCTaYR3HrRi3zxUJHBzCUFoJxyje7HrN3p46G3kYQOX7Op4NPCRFdLvvHfaqbA2AVnnsSyTYwDo32uiDakW
JWT_SIGNING_ALGORITHM: RS512
----------------------------------------------------------------------------------------------------------------------------
2. BlockStore .env 파일 수정후, 재빌드 수행
- 도메인 및 HTTPS 설정으로 URL 변경 필요 (하기 내용 수행)
-> BlockStore Frontend 설치
- mkdir workspace (우분투 홈폴더에서 실행)
- cd workspace
- git clone http://3.36.XXX.XXX:1114/fox0807/frontend-app-library-authoring
- cd frontend-app-library-authoring
- url 수정 : .env
: vi .env (LMS 및 기타 18000 포트 제거)
: :%s/localhost/3.37.XXX.XXX/g (localhost 를 IP로 일괄 변경)
- LMS_BASE_URL='https://lms.koaXXX.ga'
- STUDIO_BASE_URL='https://studio.koaXXX.ga'
- LOGIN_URL='https://lms.koaXXX.ga/login'
- LOGOUT_URL='https://lms.koaXXX.ga/logout'
- MARKETING_SITE_BASE_URL='https://lms.koaXXX.ga'
- REFRESH_ACCESS_TOKEN_ENDPOINT='https://lms.koaXXX.ga/login_refresh'
- 컴파일 필수로 할것
- sudo make requirements
- sudo npm audit fix
- sudo npm run build
- sudo npm install forever -g
- cd /home/ubuntu/workspace/frontend-app-library-authoring
: $ sudo forever start server.js (forever 실행)
: $ sudo forever list (정상여부 확인)
: $ sudo forever stop 0 (forever 중지)
- sudo vi /etc/nginx/sites-enabled/blockstore 수정
: listen 80; ---> listen 18250; 변경
- Nginx 및 EDX 서비스 재시작
: sudo systemctl restart nginx
: sudo /edx/bin/supervisorctl restart all
- Blockstore 접속 테스트 (http://IP:3001/) (성공)
- 그래도 Error: Axios Error (Request): Network Error (possible local connectivity issue) get~~ 로그 발생하면
: vi blockstore.yml 에서 DNS 수정해 볼것
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
기타 URL도 가능시 변경해 볼 것
SOCIAL_AUTH_EDX_OAUTH2_ISSUER: http://lms.koaXXX.ga
SOCIAL_AUTH_EDX_OAUTH2_KEY: blockstore-sso-key
SOCIAL_AUTH_EDX_OAUTH2_LOGOUT_URL: http://lms.koaXXX.ga/logout
SOCIAL_AUTH_EDX_OAUTH2_SECRET: blockstore-sso-secret
SOCIAL_AUTH_EDX_OAUTH2_URL_ROOT: http://lms.koaXXX.ga
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
'OPENEDX' 카테고리의 다른 글
Error: Axios Error (Request): Network Error (possible local connectivity issue) get https://studio.koadev.ga/organizations (0) | 2021.08.18 |
---|---|
깃랩 소스코드 내려받기 & 화면리소스 업데이트 (적용하기) (0) | 2021.08.18 |
LMS 미로그인시 Page Not Found 발생 이유 (0) | 2021.08.12 |
성공 - [AWS 우분투] 부팅시 서비스 자동실행 등록 (0) | 2021.08.08 |
재수행 필요 - [AWS] 우분투 18.04, 20.04 자동실행, 서비스등록 (0) | 2021.08.08 |
댓글