Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

끄투 로딩화면에서 계속 멈춰있어요 ㅠㅠ #993

Closed
1325ok opened this issue Apr 18, 2022 · 4 comments
Closed

끄투 로딩화면에서 계속 멈춰있어요 ㅠㅠ #993

1325ok opened this issue Apr 18, 2022 · 4 comments

Comments

@1325ok
Copy link

1325ok commented Apr 18, 2022

image

이렇게 가만히 멈춰있고
서버(우분투) 콘솔창에는 오류도 없어요 ㅠㅠ
어떻하죠??

@1325ok
Copy link
Author

1325ok commented Apr 18, 2022

아,그리고 서버 ip주소(http://129.154.210.213/)로 접속하면 잘 되는데

https://kkutu.1325ok.com/ (cloudflare 사용) 도메인 주소에 서버 ip주소(A)를 하고 접속했을때만 먹통이네요
F12 콘솔 로그:

 Failed to load resource: the server responded with a status of 404 ()
 in_game_kkutu.min.js:21 
  Mixed Content: The page at 'https://kkutu.1325ok.com/?server=0' was loaded over HTTPS, but attempted to connect to                                           
  the insecure WebSocket endpoint 'ws://kkutu.1325ok.com:8080/iKbccGW7McmGnEKHkrRZCt7Ah2sYS2lS'. This request has 
  been blocked; this endpoint must be available over WSS.
  h @ in_game_kkutu.min.js:21
  in_game_kkutu.min.js:21 
   Uncaught DOMException: Failed to construct 'WebSocket': An insecure WebSocket connection may not be initiated from a page loaded over HTTPS.
at h (https://kkutu.1325ok.com/js/in_game_kkutu.min.js:21:30832)
at Object.success (https://kkutu.1325ok.com/js/in_game_kkutu.min.js:21:16220)
at f (https://kkutu.1325ok.com/js/jquery.js:19:18299)
at Object.fireWith [as resolveWith] (https://kkutu.1325ok.com/js/jquery.js:19:19085)
at r (https://kkutu.1325ok.com/js/jquery.js:21:16009)
at XMLHttpRequest.r (https://kkutu.1325ok.com/js/jquery.js:21:21631) 

@lshqqytiger
Copy link
Contributor

끄투에 WAF 서비스를 적용하기 위해서는 추가적인 작업이 필요합니다.
#871 적용을 권장합니다.

@1325ok
Copy link
Author

1325ok commented Apr 19, 2022

끄투에 WAF 서비스를 적용하기 위해서는 추가적인 작업이 필요합니다. #871 적용을 권장합니다.

해봤는데 아무 의미가 없네요 ㅠㅠ
근데 제가 조금 초보라서ㅠㅠ
{
"ADMIN": [ "보안" ],
"ROOM_PORTS": 8880,
"MAIN_PORTS": [ 8080 ],
"GAME_SERVER_HOST": "127.0.0.2",
"KKUTUHOT_PATH": "/kkutu/data/kkutuhot.json",
"PASS":"보안",
"PG_HOST": "localhost",
"PG_USER": "postgres",
"PG_PASSWORD": "보안",
"PG_PORT": 5432,
"PG_DATABASE": "main",
"GOOGLE_RECAPTCHA_TO_GUEST": false,
"GOOGLE_RECAPTCHA_TO_USER": false,
"GOOGLE_RECAPTCHA_SITE_KEY": "Your Google Recaptcha site key Here",
"GOOGLE_RECAPTCHA_SECRET_KEY": "Your Google Recaptcha secret key Here",
"WAF": true,
"WAF.GAME": true,
"WAF.WEB": true,
"CF_OPTIONS": {
"WEB": true,
"GAME": true,
"PORT_GAP": 29
},
"IS_SECURED": false,
"SSL_OPTIONS": {
"PRIVKEY": "/home/ubuntu/KKuTu/Server/key/private.key",
"CERT": "/home/ubuntu/KKuTu/Server/key/private.crt",
"CA": "Your SSL CA-Bundle Here",
"PFX": "Your PFX Bundle Here",
"isPFX": false,
"isCA": false
},
"USER_BLOCK_OPTIONS": {
"USE_MODULE": false,
"USE_X_FORWARDED_FOR": false,
"BLOCK_IP_ONLY_FOR_GUEST": true,
"DEFAULT_BLOCKED_TEXT": "관리자에 의해 서비스 이용이 제한되었습니다.",
"BLOCKED_FOREVER": "영구 이용제한"
}
}

이렇게 global 파일을 해놨고
클라우드플레어에서 ssl을 가변에서 전체로 바꿔보니
또 521 오류가 뜨고요 그 상태에서 DNS 전용으로 하면 ERR_QUIC_PROTOCOL_ERROR 오류가 나고요
ssl 가변 상태에서 DNS 전용으로 하든 프록싱됨으로 놔두든
게임 시작 누른후 로딩화면에서 숫자가 줄어들잖아요
거기서 1에서 먹통되요 콘솔에는

Failed to load resource: the server responded with a status of 404 ()
in_game_kkutu.min.js:21 Mixed Content: The page at 'https://kkutu.1325ok.com/?server=0' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://kkutu.1325ok.com:8080/YyqSx6VGdoMLkjOvnx-W-Pq8aDZdLGxy'. This request has been blocked; this endpoint must be available over WSS.
h @ in_game_kkutu.min.js:21
in_game_kkutu.min.js:21 Uncaught DOMException: Failed to construct 'WebSocket': An insecure WebSocket connection may not be initiated from a page loaded over HTTPS.
at h (https://kkutu.1325ok.com/js/in_game_kkutu.min.js:21:30832)
at Object.success (https://kkutu.1325ok.com/js/in_game_kkutu.min.js:21:16220)
at f (https://kkutu.1325ok.com/js/jquery.js:1:18297)
at Object.fireWith [as resolveWith] (https://kkutu.1325ok.com/js/jquery.js:1:19083)
at r (https://kkutu.1325ok.com/js/jquery.js:1:80196)
at XMLHttpRequest.r (https://kkutu.1325ok.com/js/jquery.js:1:85818)

이렇게 되어있고요
도와주세요 ㅠㅠ

@lshqqytiger
Copy link
Contributor

Comment #1102536244

@1325ok 1325ok closed this as completed Apr 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants