From f01c26c10ae7a6e73157d7f777aa943196bb4407 Mon Sep 17 00:00:00 2001 From: jordojordo Date: Fri, 24 May 2024 07:48:37 -0400 Subject: [PATCH] Bump 0.1.1 --- env.d.ts | 1 + nginx.conf.template | 6 +----- package.json | 2 +- scripts/start.sh | 2 +- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/env.d.ts b/env.d.ts index f4cd8f4..e26bddf 100644 --- a/env.d.ts +++ b/env.d.ts @@ -3,6 +3,7 @@ interface ImportMetaEnv { readonly VITE_THOTHSCRIPT_API: string; readonly BASE_URL: string; + readonly PROD: boolean } interface ImportMeta { diff --git a/nginx.conf.template b/nginx.conf.template index 017ef6b..e35857f 100644 --- a/nginx.conf.template +++ b/nginx.conf.template @@ -30,17 +30,13 @@ http { try_files $uri $uri/ /index.html; } - # Handle WebSocket connections location /ws/ { proxy_pass __CLIENT_THOTHSCRIPT_API__; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_cache_bypass $http_upgrade; + access_log /var/log/nginx/websocket_access.log main; } error_page 500 502 503 504 /50x.html; diff --git a/package.json b/package.json index 6c2c9f7..d70aaf1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "thothscript", - "version": "0.1.0", + "version": "0.1.1", "private": true, "type": "module", "scripts": { diff --git a/scripts/start.sh b/scripts/start.sh index 3aaf990..712e2c2 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -1,7 +1,7 @@ #!/bin/sh # Provide default values for CLIENT_THOTHSCRIPT_API if it's not set -: "${CLIENT_THOTHSCRIPT_API:=localhost:3000/ws}" +: "${CLIENT_THOTHSCRIPT_API:=localhost:3000}" # Substitute environment variables in nginx.conf.template and create nginx.conf sed "s|__CLIENT_THOTHSCRIPT_API__|http:\/\/$CLIENT_THOTHSCRIPT_API|g" /etc/nginx/nginx.conf.template > /etc/nginx/nginx.conf