GithubHelp home page GithubHelp logo

Comments (47)

KartoniarzEssa avatar KartoniarzEssa commented on June 2, 2024

I fixed everything by changing

import configureStore from '@/store/';
import Home from '@/components/Home/';
import { hasTouchSupport } from '@/utils/dom';

to

import configureStore from './store/';
import Home from './components/Home/';
import { hasTouchSupport } from './utils/dom';

then when yarn build worked i linked client/dist folder to client/build using command below
ln -s client/dist client/build
then the darkwire worked

from darkwire.io.

jrmi avatar jrmi commented on June 2, 2024

Thanks for reporting @KartoniarzEssa It should be fixed now. Let me know if you experience new trouble.

from darkwire.io.

KartoniarzEssa avatar KartoniarzEssa commented on June 2, 2024

Thanks for reporting @KartoniarzEssa It should be fixed now. Let me know if you experience new trouble.

@jrmi Now building the Dockerfile have problem because you change the container to alpine that have apk as package manager not apt. To fix it you must change to debian-based distro.

node:18-bullseye seems to work fine

You should expose the port from docker container too:
$ docker run --name darkwire.io -p 3001:3001 -d --env STORE_HOST=redis://redis.host:6379 darkwire.io

from darkwire.io.

KartoniarzEssa avatar KartoniarzEssa commented on June 2, 2024

@jrmi Also, there are 2 more errors that i don't know how to resolve, first is only some warnings while building docker container, but idk if they're important
image

I configured everything in .env files, i tried with redis and with memory storage. Neither works for me
image

from darkwire.io.

jrmi avatar jrmi commented on June 2, 2024

Thanks again for reporting. The error you're seeing during the build are more a warning because of some obsolete dependencies (I'm trying to replace them) and because of the final size of the build. These two are not blocking I guess.

The error you're experiencing in your browser is probably caused by the fact you're accessing Darkwire through a http connection. Check out this issue #195 you'll see the same error. If you want to solve that you should use a httpS connection. I should make the error more clear or may be use something like https://www.npmjs.com/package/webcrypto-shim in this case.

from darkwire.io.

KartoniarzEssa avatar KartoniarzEssa commented on June 2, 2024

@jrmi Ok now I have a certificate and a https, I'm even listed in a room and I can text but after refresh everything disappears, and it says that it's disconnected idk from what. Redis? API?
image

from darkwire.io.

jrmi avatar jrmi commented on June 2, 2024

This message is displayed when you are disconnected from the websocket. Redis is not used anymore. If you've used a reverse proxy to add the certificate and the https you probably also need some configuration to make the websockets work. What have you used as reverse proxy?

from darkwire.io.

KartoniarzEssa avatar KartoniarzEssa commented on June 2, 2024

@jrmi I used nginx and this is config
image

from darkwire.io.

jrmi avatar jrmi commented on June 2, 2024

Take a look at this link https://www.nginx.com/blog/websocket-nginx/
I think this configurations are missing:

    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "Upgrade";
    proxy_set_header Host $host;

May be more.

from darkwire.io.

jrmi avatar jrmi commented on June 2, 2024

Or this link https://nginx.org/en/docs/http/websocket.html

from darkwire.io.

jrmi avatar jrmi commented on June 2, 2024

I've published a new version with a improved version of docker file and docker compose and I've applied your suggestion to the readme. Let me know what you think.

from darkwire.io.

KartoniarzEssa avatar KartoniarzEssa commented on June 2, 2024

little typos
image

from darkwire.io.

KartoniarzEssa avatar KartoniarzEssa commented on June 2, 2024

And I think i found the problem, idk what that means tho
image

from darkwire.io.

jrmi avatar jrmi commented on June 2, 2024

nvm is not a typo it's a tool to manage node version. Was it the typo?

from darkwire.io.

KartoniarzEssa avatar KartoniarzEssa commented on June 2, 2024

Oh i thought its meant to be npm

from darkwire.io.

KartoniarzEssa avatar KartoniarzEssa commented on June 2, 2024

And I think i found the problem, idk what that means tho image

This is probably CORS

from darkwire.io.

jrmi avatar jrmi commented on June 2, 2024

Yeah something like that. Or content security policy are wrong. Sometimes it also shows that when there is no websocket server at all. Are you trying a localhost version?

from darkwire.io.

KartoniarzEssa avatar KartoniarzEssa commented on June 2, 2024

Where can I change this localhost to my domain

This is client .env file
image

And this is server .env file
image

from darkwire.io.

jrmi avatar jrmi commented on June 2, 2024

It should be in the client .env file. But you might have to recreate your docker image (if you are using docker).

from darkwire.io.

jrmi avatar jrmi commented on June 2, 2024

You might have to recreate you docker image from scratch also. (docker build...)

from darkwire.io.

KartoniarzEssa avatar KartoniarzEssa commented on June 2, 2024

Now Im not even using docker

from darkwire.io.

KartoniarzEssa avatar KartoniarzEssa commented on June 2, 2024

for now

from darkwire.io.

KartoniarzEssa avatar KartoniarzEssa commented on June 2, 2024

My domain should be in VITE_API_HOST?

from darkwire.io.

jrmi avatar jrmi commented on June 2, 2024

Yes.
Can you describe me what is your setup? How have you launched darkwire frontend and backend?

from darkwire.io.

KartoniarzEssa avatar KartoniarzEssa commented on June 2, 2024

I just starting it by using yarn start in darkwire.io folder

from darkwire.io.

jrmi avatar jrmi commented on June 2, 2024

Ok so you might have to execute yarn build again to update the build with the right env vars.

from darkwire.io.

KartoniarzEssa avatar KartoniarzEssa commented on June 2, 2024

every change i run ./build.sh

from darkwire.io.

KartoniarzEssa avatar KartoniarzEssa commented on June 2, 2024

Seems like its ignoring .env file
image

from darkwire.io.

jrmi avatar jrmi commented on June 2, 2024

Remove the client/dist dir to check it breaks the server and then rebuild it?

from darkwire.io.

KartoniarzEssa avatar KartoniarzEssa commented on June 2, 2024

yup it breaks
image

from darkwire.io.

KartoniarzEssa avatar KartoniarzEssa commented on June 2, 2024

After rebuild same error in console

from darkwire.io.

jrmi avatar jrmi commented on June 2, 2024

Can you try to rebuild the client from it's own directory?

cd client
yarn build
cd ..
yarn start

from darkwire.io.

KartoniarzEssa avatar KartoniarzEssa commented on June 2, 2024

Now its working but not, the error is the same, but the domain is set
image

from darkwire.io.

jrmi avatar jrmi commented on June 2, 2024

What do you see if you visit https://yourdomain/socket.io/ ?

from darkwire.io.

KartoniarzEssa avatar KartoniarzEssa commented on June 2, 2024

image

from darkwire.io.

KartoniarzEssa avatar KartoniarzEssa commented on June 2, 2024

But its without port in the console its with port

from darkwire.io.

KartoniarzEssa avatar KartoniarzEssa commented on June 2, 2024

And maybe this is problem

from darkwire.io.

jrmi avatar jrmi commented on June 2, 2024

But if you're behind a nginx reverse proxy, you might need no port (or port 443).

from darkwire.io.

jrmi avatar jrmi commented on June 2, 2024

What is the url you use in the browser?

from darkwire.io.

KartoniarzEssa avatar KartoniarzEssa commented on June 2, 2024

its without port, but in console the error is with port

from darkwire.io.

jrmi avatar jrmi commented on June 2, 2024

So remove the port!

from darkwire.io.

jrmi avatar jrmi commented on June 2, 2024

(use 443)

from darkwire.io.

KartoniarzEssa avatar KartoniarzEssa commented on June 2, 2024

OK I set the port in client .env to 443 and its working
image

from darkwire.io.

KartoniarzEssa avatar KartoniarzEssa commented on June 2, 2024

Thanks for support and help

from darkwire.io.

jrmi avatar jrmi commented on June 2, 2024

Congrats :) and good night. I have published a version that fixes the build problem not using .env file FYI.

from darkwire.io.

KartoniarzEssa avatar KartoniarzEssa commented on June 2, 2024

I also translate the panel to polish if you want

{
"newRoomButton": "Nowy pokój",
"lockedRoom": "{username} zablokował pokój",
"unlockedRoom": "{username} odblokował pokój",
"agreement": "Korzystając z darkwire, zgadzasz się na naszą politykę zasad korzystania i warunki korzystania",
"typePlaceholder": "Pisz tutaj",
"aboutButton": "O nas",
"settingsButton": "Ustawienia",
"settings": "Ustawienia",
"aboutHeader": "O nas",
"copyButtonTooltip": "Skopiowano",
"welcomeHeader": "Witamy na czacie Starymisiada",
"sentFile": "Wysłałeś {filename}",
"userJoined": "{username} dołączył",
"userLeft": "{username} opuścił",
"userSentFile": "{username} wysłał Ci plik.",
"downloadFile": "Pobierz {filename}",
"nameChange": "{oldUsername} zmienił swoje imię na {newUsername}",
"settingsHeader": "Ustawienia & Pomoc",
"copyRoomHeader": "Ten pokój",
"languageDropdownHeader": "Język",
"roomOwnerHeader": "Własność pokoju",
"roomOwnerText": "Osoba, która utworzyła pokój, jest właścicielem pokoju i ma specjalne uprawnienia, takie jak możliwość zablokowania i odblokowania pokoju. Jeśli właściciel opuści pokój, druga osoba, która dołączy, przejmuje własność. Jeśli ona opuści, trzecia osoba staje się właścicielem itd. Właściciel pokoju ma ikonę gwiazdki obok swojej nazwy użytkownika w rozwijanej liście uczestników.",
"lockRoomHeader": "Zablokuj pokój",
"lockRoomText": "Jeśli jesteś właścicielem pokoju, możesz zablokować i odblokować pokój, klikając ikonę zamka w pasku nawigacyjnym. Gdy pokój jest zablokowany, żadna inna osoba nie może do niego dołączyć.",
"slashCommandsHeader": "Komendy",
"slashCommandsText": "Dostępne są następujące komendy:",
"slashCommandsBullets": [
"zmienia nazwę użytkownika",
"wykonuje akcję",
"czyści historię wiadomości",
"wyświetla wszystkie komendy"
],
"sound": "Dźwięk",
"newMessageNotification": "Powiadomienie o nowej wiadomości",
"desktopNotification": "Powiadomienie na pulpicie",
"desktopNotificationBlocked": "Powiadomienia na pulpicie zostały wyłączone",
"welcomeModalCTA": "Ok",
"lockedRoomHeader": "Ten pokój jest zablokowany",
"helpTranslate": "Pomóż nam przetłumaczyć darkwire!"
}

from darkwire.io.

jrmi avatar jrmi commented on June 2, 2024

Great! Would you mind to review this MR #231

from darkwire.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.