2 Commits

Author SHA1 Message Date
13ad4e08d2 SSL configuration
All checks were successful
continuous-integration/drone/tag Build is passing
2025-11-29 19:16:15 +05:30
7e35cf0c31 fixes
All checks were successful
continuous-integration/drone/tag Build is passing
2025-11-29 19:04:17 +05:30
2 changed files with 6 additions and 5 deletions

View File

@@ -118,7 +118,7 @@ steps:
path: /var/run/docker.sock path: /var/run/docker.sock
commands: commands:
- echo "🛑 Stopping old container..." - echo "🛑 Stopping old container..."
- docker rm -f blog || true - docker rm -f tic-tac-toe-ui || true
- name: run-container - name: run-container
image: docker:24 image: docker:24
@@ -131,8 +131,8 @@ steps:
- echo "🚀 Starting container lila-games/tic-tac-toe-ui:$IMAGE_TAG ..." - echo "🚀 Starting container lila-games/tic-tac-toe-ui:$IMAGE_TAG ..."
- | - |
docker run -d \ docker run -d \
--name blog \ --name tic-tac-toe-ui \
-p 3002:3000 \ -p 3003:3000 \
-e NODE_ENV=production \ -e NODE_ENV=production \
--restart always \ --restart always \
lila-games/tic-tac-toe-ui:$IMAGE_TAG lila-games/tic-tac-toe-ui:$IMAGE_TAG

View File

@@ -48,9 +48,10 @@ export const NakamaContext = createContext<NakamaContextType>(null!);
export function NakamaProvider({ children }: { children: React.ReactNode }) { export function NakamaProvider({ children }: { children: React.ReactNode }) {
const [client] = useState( const [client] = useState(
() => new Client( () => new Client(
import.meta.env.VITE_WS_SKEY, import.meta.env.VITE_SERVER_KEY,
import.meta.env.VITE_WS_HOST, import.meta.env.VITE_WS_HOST,
import.meta.env.VITE_WS_PORT import.meta.env.VITE_WS_PORT,
import.meta.env.VITE_WS_SSL === "true"
) )
); );