diff --git a/deploy.sh b/deploy.sh index 6bfe436..340666f 100644 --- a/deploy.sh +++ b/deploy.sh @@ -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 \ No newline at end of file +docker push git.nerdyssey.de/exodus/burg-stett-king-arth-web:latest + +# +# docker compose pull +# docker compose up -d \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..936ec12 --- /dev/null +++ b/docker-compose.yml @@ -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 \ No newline at end of file diff --git a/src/router/index.ts b/src/router/index.ts index 15ed596..e326a85 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -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: '/', diff --git a/src/services/mqtt.ts b/src/services/mqtt.ts index eabb8b1..58a2fd5 100644 --- a/src/services/mqtt.ts +++ b/src/services/mqtt.ts @@ -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 }