Default local client endpoints to UAT
This commit is contained in:
+8
-8
@@ -59,12 +59,12 @@ textures/vram_compression/import_etc2_astc=true
|
||||
[step3]
|
||||
|
||||
deployment_environment="development"
|
||||
questions_api_url="https://s3q.ranaze.com/api/questions/search"
|
||||
question_reports_api_url="https://s3q.ranaze.com/api/question-reports"
|
||||
app_feedback_api_url="https://s3q.ranaze.com/api/app-feedback"
|
||||
notes_api_url="https://s3q.ranaze.com/api/notes"
|
||||
dashboard_api_url="https://s3q.ranaze.com/api/dashboard"
|
||||
profile_api_url="https://s3q.ranaze.com/api/profile"
|
||||
donations_api_url="https://s3q.ranaze.com/api/donations"
|
||||
review_queue_api_url="https://s3q.ranaze.com/api/review-queue"
|
||||
questions_api_url="https://us3q.ranaze.com/api/questions/search"
|
||||
question_reports_api_url="https://us3q.ranaze.com/api/question-reports"
|
||||
app_feedback_api_url="https://us3q.ranaze.com/api/app-feedback"
|
||||
notes_api_url="https://us3q.ranaze.com/api/notes"
|
||||
dashboard_api_url="https://us3q.ranaze.com/api/dashboard"
|
||||
profile_api_url="https://us3q.ranaze.com/api/profile"
|
||||
donations_api_url="https://us3q.ranaze.com/api/donations"
|
||||
review_queue_api_url="https://us3q.ranaze.com/api/review-queue"
|
||||
build_revision="development"
|
||||
|
||||
@@ -8,8 +8,8 @@ signal account_deleted
|
||||
signal archive_saved(path: String)
|
||||
|
||||
const EndpointConfig := preload("res://scripts/autoload/api_endpoint_config.gd")
|
||||
const AUTH_URL := "https://s3q.ranaze.com/api/Auth"
|
||||
const PROFILE_URL := "https://s3q.ranaze.com/api/profile"
|
||||
const AUTH_URL := "https://us3q.ranaze.com/api/Auth"
|
||||
const PROFILE_URL := "https://us3q.ranaze.com/api/profile"
|
||||
|
||||
var account: Dictionary = {}
|
||||
var preferences: Dictionary = _default_preferences()
|
||||
|
||||
@@ -9,7 +9,7 @@ signal session_refresh_failed(message: String, terminal: bool)
|
||||
signal session_expired(reason: String)
|
||||
|
||||
const EndpointConfig := preload("res://scripts/autoload/api_endpoint_config.gd")
|
||||
const DEFAULT_AUTH_BASE_URL := "https://s3q.ranaze.com/api/Auth"
|
||||
const DEFAULT_AUTH_BASE_URL := "https://us3q.ranaze.com/api/Auth"
|
||||
const WARNING_SECONDS := 120
|
||||
const REFRESH_TIMEOUT_SECONDS := 20.0
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
extends Node
|
||||
|
||||
const EndpointConfig := preload("res://scripts/autoload/api_endpoint_config.gd")
|
||||
const DEFAULT_API_URL := "https://s3q.ranaze.com/api/bookmarks"
|
||||
const DEFAULT_API_URL := "https://us3q.ranaze.com/api/bookmarks"
|
||||
const REQUEST_TIMEOUT_SECONDS := 30.0
|
||||
const RETRY_DELAY_SECONDS := 5.0
|
||||
const QUEUE_PATH := "user://pending_question_bookmarks.json"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
extends Node
|
||||
|
||||
const EndpointConfig := preload("res://scripts/autoload/api_endpoint_config.gd")
|
||||
const DEFAULT_API_URL := "https://s3q.ranaze.com/api/ccs"
|
||||
const DEFAULT_API_URL := "https://us3q.ranaze.com/api/ccs"
|
||||
|
||||
signal cases_changed
|
||||
signal attempt_changed
|
||||
|
||||
@@ -4,7 +4,7 @@ signal dashboard_changed
|
||||
signal dashboard_failed(message: String)
|
||||
|
||||
const EndpointConfig := preload("res://scripts/autoload/api_endpoint_config.gd")
|
||||
const DEFAULT_URL := "https://s3q.ranaze.com/api/dashboard"
|
||||
const DEFAULT_URL := "https://us3q.ranaze.com/api/dashboard"
|
||||
|
||||
var data: Dictionary = {}
|
||||
var loading := false
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
extends Node
|
||||
|
||||
const EndpointConfig := preload("res://scripts/autoload/api_endpoint_config.gd")
|
||||
const DEFAULT_URL := "https://s3q.ranaze.com/api/donations"
|
||||
const DEFAULT_URL := "https://us3q.ranaze.com/api/donations"
|
||||
const REQUEST_TIMEOUT_SECONDS := 30.0
|
||||
const POLL_INTERVAL_SECONDS := 3.0
|
||||
const POLL_LIMIT := 200
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
extends Node
|
||||
|
||||
const EndpointConfig := preload("res://scripts/autoload/api_endpoint_config.gd")
|
||||
const DEFAULT_API_URL := "https://s3q.ranaze.com/api/exam-simulations"
|
||||
const DEFAULT_API_URL := "https://us3q.ranaze.com/api/exam-simulations"
|
||||
|
||||
signal readiness_changed
|
||||
signal state_changed
|
||||
@@ -10,7 +10,7 @@ signal outcome_changed
|
||||
signal history_changed
|
||||
|
||||
var api_url := DEFAULT_API_URL
|
||||
var outcome_api_url := "https://s3q.ranaze.com/api/step3-outcomes"
|
||||
var outcome_api_url := "https://us3q.ranaze.com/api/step3-outcomes"
|
||||
var request: HTTPRequest
|
||||
var readiness := {}
|
||||
var simulation := {}
|
||||
@@ -31,7 +31,7 @@ func _ready() -> void:
|
||||
request = HTTPRequest.new()
|
||||
request.request_completed.connect(_on_request_completed)
|
||||
add_child(request)
|
||||
outcome_api_url = EndpointConfig.resolve("https://s3q.ranaze.com/api/step3-outcomes", "/api/step3-outcomes")
|
||||
outcome_api_url = EndpointConfig.resolve("https://us3q.ranaze.com/api/step3-outcomes", "/api/step3-outcomes")
|
||||
|
||||
|
||||
func load_readiness() -> void:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
extends Node
|
||||
|
||||
const EndpointConfig := preload("res://scripts/autoload/api_endpoint_config.gd")
|
||||
const DEFAULT_API_URL := "https://s3q.ranaze.com/api/app-feedback"
|
||||
const DEFAULT_API_URL := "https://us3q.ranaze.com/api/app-feedback"
|
||||
const REQUEST_TIMEOUT_SECONDS := 30.0
|
||||
|
||||
signal feedback_submitted(receipt_id: String)
|
||||
|
||||
@@ -4,7 +4,7 @@ signal acceptance_succeeded
|
||||
signal acceptance_failed(message: String)
|
||||
|
||||
const EndpointConfig := preload("res://scripts/autoload/api_endpoint_config.gd")
|
||||
const DEFAULT_AUTH_BASE_URL := "https://s3q.ranaze.com/api/Auth"
|
||||
const DEFAULT_AUTH_BASE_URL := "https://us3q.ranaze.com/api/Auth"
|
||||
const DOCUMENT_PATH := "res://legal/legal_documents.json"
|
||||
|
||||
var documents: Dictionary = {}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
extends Node
|
||||
|
||||
const EndpointConfig := preload("res://scripts/autoload/api_endpoint_config.gd")
|
||||
const DEFAULT_API_URL := "https://s3q.ranaze.com/api/notes"
|
||||
const DEFAULT_API_URL := "https://us3q.ranaze.com/api/notes"
|
||||
const REQUEST_TIMEOUT_SECONDS := 30.0
|
||||
const AUTOSAVE_DELAY_SECONDS := 1.5
|
||||
const RETRY_DELAY_SECONDS := 5.0
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
extends Node
|
||||
|
||||
const EndpointConfig := preload("res://scripts/autoload/api_endpoint_config.gd")
|
||||
const DEFAULT_QUESTIONS_API_URL := "https://s3q.ranaze.com/api/questions/search"
|
||||
const DEFAULT_QUESTION_ATTEMPT_API_URL := "https://s3q.ranaze.com/api/questions/attempts/first"
|
||||
const DEFAULT_QUESTION_API_BASE_URL := "https://s3q.ranaze.com/api/questions"
|
||||
const DEFAULT_RATINGS_API_URL := "https://s3q.ranaze.com/api/ratings/me"
|
||||
const DEFAULT_QUESTION_REPORTS_API_URL := "https://s3q.ranaze.com/api/question-reports"
|
||||
const DEFAULT_QUESTIONS_API_URL := "https://us3q.ranaze.com/api/questions/search"
|
||||
const DEFAULT_QUESTION_ATTEMPT_API_URL := "https://us3q.ranaze.com/api/questions/attempts/first"
|
||||
const DEFAULT_QUESTION_API_BASE_URL := "https://us3q.ranaze.com/api/questions"
|
||||
const DEFAULT_RATINGS_API_URL := "https://us3q.ranaze.com/api/ratings/me"
|
||||
const DEFAULT_QUESTION_REPORTS_API_URL := "https://us3q.ranaze.com/api/question-reports"
|
||||
const RETRY_DELAYS := [2, 5, 10, 20, 30]
|
||||
const REQUEST_TIMEOUT_SECONDS := 30.0
|
||||
const IMAGE_QUESTION_SEARCH_LIMIT := 200
|
||||
|
||||
@@ -6,7 +6,7 @@ signal pass_completed(summary: Dictionary)
|
||||
signal attempt_synced(question_id: String, is_correct: bool, pending_count: int)
|
||||
|
||||
const EndpointConfig := preload("res://scripts/autoload/api_endpoint_config.gd")
|
||||
const DEFAULT_API_URL := "https://s3q.ranaze.com/api/review-queue"
|
||||
const DEFAULT_API_URL := "https://us3q.ranaze.com/api/review-queue"
|
||||
const OUTBOX_PATH := "user://pending_review_attempts.json"
|
||||
|
||||
var api_url := DEFAULT_API_URL
|
||||
|
||||
@@ -2,7 +2,7 @@ extends Control
|
||||
|
||||
const Brand := preload("res://scripts/ui/medmind_style.gd")
|
||||
const EndpointConfig := preload("res://scripts/autoload/api_endpoint_config.gd")
|
||||
const AUTH_BASE := "https://s3q.ranaze.com/api/Auth"
|
||||
const AUTH_BASE := "https://us3q.ranaze.com/api/Auth"
|
||||
const STEAM_AUTH_STORAGE_KEY := "ranaze_steam_auth_url"
|
||||
|
||||
var main: Control
|
||||
|
||||
+2
-2
@@ -5,7 +5,7 @@ ARG GODOT_RELEASE=${GODOT_VERSION}-stable
|
||||
ARG GODOT_TEMPLATE_DIR=${GODOT_VERSION}.stable
|
||||
ARG BUILD_REVISION=development
|
||||
ARG DEPLOYMENT_ENVIRONMENT=production
|
||||
ARG PUBLIC_API_ORIGIN=https://s3q.ranaze.com
|
||||
ARG PUBLIC_API_ORIGIN=https://us3q.ranaze.com
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
@@ -33,7 +33,7 @@ COPY . .
|
||||
RUN mkdir -p /build \
|
||||
&& sed -i "s|build_revision=\"development\"|build_revision=\"${BUILD_REVISION}\"|" project.godot \
|
||||
&& sed -i "s|deployment_environment=\"development\"|deployment_environment=\"${DEPLOYMENT_ENVIRONMENT}\"|" project.godot \
|
||||
&& sed -i "s|https://s3q.ranaze.com|${PUBLIC_API_ORIGIN}|g" project.godot \
|
||||
&& sed -i "s|https://us3q.ranaze.com|${PUBLIC_API_ORIGIN}|g" project.godot \
|
||||
&& sed -i "s|custom_template/release=\"\"|custom_template/release=\"/root/.local/share/godot/export_templates/${GODOT_TEMPLATE_DIR}/web_nothreads_release.zip\"|" export_presets.cfg \
|
||||
&& godot --headless --editor --path /src --quit \
|
||||
&& godot --verbose --headless --path /src --export-release Web /build/index.html \
|
||||
|
||||
Reference in New Issue
Block a user