migrate root server
This commit is contained in:
parent
6310c26946
commit
38a06d7e06
|
|
@ -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;
|
||||
|
|
|
|||
4
start.sh
4
start.sh
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue