proj: switch to secure connection

This commit is contained in:
2026-06-28 17:40:07 +02:00
parent 2bb5125254
commit 3f0e821d0d
4 changed files with 28 additions and 4 deletions
+5 -1
View File
@@ -8,4 +8,8 @@
# > Passwrord: appkey
# [DOMAIN]/[OWNER]/[IMAGE_NAME]:[TAG]
docker build -t git.nerdyssey.de/exodus/burg-stett-king-arth-web:latest .
docker push git.nerdyssey.de/exodus/burg-stett-king-arth-web:latest
docker push git.nerdyssey.de/exodus/burg-stett-king-arth-web:latest
#
# docker compose pull
# docker compose up -d
+17
View File
@@ -0,0 +1,17 @@
version: '3.8'
services:
exodus-burg-stett-king-arth-web:
image: git.nerdyssey.de/exodus/burg-stett-king-arth-web:latest
container_name: exodus-burg-stett-king-arth-web
restart: unless-stopped
# ports:
# - "80:80"
# - "443:443"
# environment:
# - VITE_APP_ENV=production
networks:
default:
name: proxy_net
external: true
+2
View File
@@ -5,6 +5,8 @@ import Players from '../views/Players.vue'
import Start from '../views/Start.vue'
import Text from '../views/Text.vue'
const routeBase: string = "nerdyssey.de/exodus/king-arthur"
const routes: any[] = [
{
path: '/',
+4 -3
View File
@@ -1,9 +1,9 @@
import mqtt from 'mqtt'
const mqttBrokerHost = '91.99.29.8'
const mqttBrokerPort = 9001
const mqttBrokerHost = 'mqtt.nerdyssey.de'
const mqttBrokerPort = 443 // 9001 if not secure
const mqttBrokerPath = '/mqtt'
const mqttUseTls = false
const mqttUseTls = true
const mqttTopicRoot = 'outdoor/king-arthur/sword/'
const mqttMessage = 'start-hit'
@@ -13,6 +13,7 @@ function getClient(): mqtt.MqttClient {
const protocol = mqttUseTls ? 'wss' : 'ws'
const brokerUrl = `${protocol}://${mqttBrokerHost}:${mqttBrokerPort}${mqttBrokerPath}`
const tempClient = mqtt.connect(brokerUrl)
console.log(`MQTT Connection string ${brokerUrl}`)
return tempClient
}