Feature: https support
This commit is contained in:
File diff suppressed because it is too large
Load Diff
+7
-7
@@ -72,25 +72,25 @@ class Chow_Panel:
|
||||
|
||||
class HTTP:
|
||||
# const BASE_URL = "http://127.0.0.1"
|
||||
const BASE_URL = "http://mj.caimingyang.cn"
|
||||
const BASE_URL = "https://mj.caimingyang.cn"
|
||||
# const PORT = "1114"
|
||||
const PORT = "80"
|
||||
const PORT = "443"
|
||||
const ROOM_URL = BASE_URL+":"+PORT+"/room/"
|
||||
const LOGIN_URL = BASE_URL+":"+PORT+"/login/"
|
||||
const REGISTER_URL = BASE_URL+":"+PORT+"/register/"
|
||||
|
||||
const RELEASE_BASE_URL = "http://mj.caimingyang.cn"
|
||||
const RELEASE_PORT = "80"
|
||||
const RELEASE_BASE_URL = "https://mj.caimingyang.cn"
|
||||
const RELEASE_PORT = "443"
|
||||
const RELEASE_ROOM_URL = RELEASE_BASE_URL+":"+RELEASE_PORT+"/room/"
|
||||
|
||||
class WebSockt:
|
||||
# const BASE_URL = "ws://127.0.0.1"
|
||||
const BASE_URL = "ws://mj.caimingyang.cn"
|
||||
const BASE_URL = "wss://mj.caimingyang.cn"
|
||||
# const BASE_PORT = "1114"
|
||||
const BASE_PORT = "80"
|
||||
const BASE_PORT = "443"
|
||||
const URL = BASE_URL+":"+BASE_PORT
|
||||
|
||||
const RELEASE_BASE_URL = "ws://mj.caimingyang.cn"
|
||||
const RELEASE_BASE_URL = "wss://mj.caimingyang.cn"
|
||||
const RELEASE_BASE_PORT = "80"
|
||||
const RELEASE_URL = RELEASE_BASE_URL+":"+RELEASE_BASE_PORT
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ func _ready():
|
||||
|
||||
|
||||
func send_login():
|
||||
var use_ssl = false
|
||||
var use_ssl = true
|
||||
var headers = ["Content-Type: application/json"]
|
||||
var dict = {"username":$LoginPanel/VBoxContainer/GridContainer/UsernameEdit.text,
|
||||
"password":$LoginPanel/VBoxContainer/GridContainer/PasswordEdit.text,}
|
||||
@@ -31,7 +31,7 @@ func send_signup():
|
||||
var gender = Message.gender.FEMALE
|
||||
if $RegisterDialog/VBoxContainer/GridContainer/GenderContainer/MaleCheckBox.pressed:
|
||||
gender = Message.gender.MALE
|
||||
var use_ssl = false
|
||||
var use_ssl = true
|
||||
var headers = ["Content-Type: application/json"]
|
||||
var dict = {"username":$RegisterDialog/VBoxContainer/GridContainer/UsernameEdit.text,
|
||||
"password":$RegisterDialog/VBoxContainer/GridContainer/PasswordEdit.text,
|
||||
|
||||
@@ -36,6 +36,10 @@ window/stretch/mode="2d"
|
||||
|
||||
theme/use_hidpi=true
|
||||
|
||||
[network]
|
||||
|
||||
ssl/certificates="res://Asset/Cert/ca-certificates.crt"
|
||||
|
||||
[rendering]
|
||||
|
||||
environment/default_environment="res://default_env.tres"
|
||||
|
||||
Reference in New Issue
Block a user