migrate root server

This commit is contained in:
Doctor Delpy 2025-12-22 14:16:49 +03:00
parent 6310c26946
commit 38a06d7e06
2 changed files with 6 additions and 6 deletions

View File

@ -36,7 +36,7 @@ map $http_origin $cors_origin {
server {
listen 80;
server_name my-public-node-8.projscale.dev;
server_name my-public-node-103.projscale.dev;
# Emit request id even on redirects
add_header X-Request-Id $req_id always;
return 301 https://$host$request_uri;
@ -44,13 +44,13 @@ server {
server {
listen 443 ssl http2;
server_name my-public-node-8.projscale.dev;
server_name my-public-node-103.projscale.dev;
# Access log with request id
access_log /var/log/nginx/access.log reqid;
# SSL configuration (valid certs)
ssl_certificate /etc/letsencrypt/live/my-public-node-8.projscale.dev/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/my-public-node-8.projscale.dev/privkey.pem;
ssl_certificate /etc/letsencrypt/live/my-public-node-103.projscale.dev/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/my-public-node-103.projscale.dev/privkey.pem;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;

View File

@ -336,7 +336,7 @@ ensure_env_default VITE_SENTRY_DSN ""
ensure_env_default TUSD_HTTP_PORT "13400"
tusd_port=$(ini_val TUSD_HTTP_PORT)
current_api_base=$(ini_val VITE_API_BASE_URL)
if [[ -z "$current_api_base" || "$current_api_base" == "https://my-public-node-8.projscale.dev/api/v1" ]]; then
if [[ -z "$current_api_base" || "$current_api_base" == "https://my-public-node-103.projscale.dev/api/v1" ]]; then
if [[ -n "${PUBLIC_HOST:-}" ]]; then
update_env VITE_API_BASE_URL "${PUBLIC_HOST%/}/api/v1"
else
@ -345,7 +345,7 @@ if [[ -z "$current_api_base" || "$current_api_base" == "https://my-public-node-8
fi
current_api_storage=$(ini_val VITE_API_BASE_STORAGE_URL)
if [[ -z "$current_api_storage" || "$current_api_storage" == "https://my-public-node-8.projscale.dev/api/v1.5/storage" ]]; then
if [[ -z "$current_api_storage" || "$current_api_storage" == "https://my-public-node-103.projscale.dev/api/v1.5/storage" ]]; then
if [[ -n "${PUBLIC_HOST:-}" ]]; then
update_env VITE_API_BASE_STORAGE_URL "${PUBLIC_HOST%/}/api/v1.5/storage"
else