Comments (47)
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.
Thanks for reporting @KartoniarzEssa It should be fixed now. Let me know if you experience new trouble.
from darkwire.io.
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.
@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
I configured everything in .env files, i tried with redis and with memory storage. Neither works for me
from darkwire.io.
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.
@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?
from darkwire.io.
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.
@jrmi I used nginx and this is config
from darkwire.io.
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.
Or this link https://nginx.org/en/docs/http/websocket.html
from darkwire.io.
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.
from darkwire.io.
And I think i found the problem, idk what that means tho
from darkwire.io.
nvm is not a typo it's a tool to manage node version. Was it the typo?
from darkwire.io.
Oh i thought its meant to be npm
from darkwire.io.
This is probably CORS
from darkwire.io.
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.
Where can I change this localhost to my domain
from darkwire.io.
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.
You might have to recreate you docker image from scratch also. (docker build...)
from darkwire.io.
Now Im not even using docker
from darkwire.io.
for now
from darkwire.io.
My domain should be in VITE_API_HOST?
from darkwire.io.
Yes.
Can you describe me what is your setup? How have you launched darkwire frontend and backend?
from darkwire.io.
I just starting it by using yarn start in darkwire.io folder
from darkwire.io.
Ok so you might have to execute yarn build
again to update the build with the right env vars.
from darkwire.io.
every change i run ./build.sh
from darkwire.io.
Seems like its ignoring .env file
from darkwire.io.
Remove the client/dist
dir to check it breaks the server and then rebuild it?
from darkwire.io.
from darkwire.io.
After rebuild same error in console
from darkwire.io.
Can you try to rebuild the client from it's own directory?
cd client
yarn build
cd ..
yarn start
from darkwire.io.
Now its working but not, the error is the same, but the domain is set
from darkwire.io.
What do you see if you visit https://yourdomain/socket.io/
?
from darkwire.io.
from darkwire.io.
But its without port in the console its with port
from darkwire.io.
And maybe this is problem
from darkwire.io.
But if you're behind a nginx reverse proxy, you might need no port (or port 443).
from darkwire.io.
What is the url you use in the browser?
from darkwire.io.
its without port, but in console the error is with port
from darkwire.io.
So remove the port!
from darkwire.io.
(use 443)
from darkwire.io.
OK I set the port in client .env to 443 and its working
from darkwire.io.
Thanks for support and help
from darkwire.io.
Congrats :) and good night. I have published a version that fixes the build problem not using .env
file FYI.
from darkwire.io.
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.
Great! Would you mind to review this MR #231
from darkwire.io.
Related Issues (20)
- Message persistence on demand HOT 5
- Layout broken on firefox when message composer focused
- Store configuration is not loaded HOT 2
- Can’t create new room HOT 1
- es_ar translation
- unnecessary updown page option coming in welcome prompt HOT 4
- naming convention & right side for sender left for receiver option HOT 1
- Suggestion: security is based on a Diffie–Hellman key exchange method, maybe mention it in readme.md ? HOT 2
- Suggestion: why not use pm2 to serve darkwire.io server? HOT 1
- darkwire.io server in typescript ! (no Redis)
- Can't run it on Tor Network HOT 1
- Doesn’t work on iPad safari HOT 3
- Add prebuild docker image HOT 1
- Promote | partnership with Rovel Stars! HOT 1
- I can't send messages when using the Neo2 keyboard layout. HOT 3
- i am trying to run darkwire.io on my CentOs machine. HOT 6
- Update website link HOT 1
- Gainz
- G
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from darkwire.io.