-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use domain.tld for both XMPP and website #115
Comments
Hello, it is possible with configuration in local.js Let's say you have var config = {
name: 'XMPP web',
transports: {
websocket: 'wss://webdomain/xmpp-websocket',
},
hasGuestAccess: false,
hasRegisteredAccess: true,
anonymousHost: 'anon.xmppdomain',
isTransportsUserAllowed: false,
hasHttpAutoDiscovery: false,
resource: 'Web XMPP',
defaultDomain: 'xmppdomain',
defaultMuc: 'conference.xmppdomain',
isStylingDisabled: false,
hasSendingEnterKey: false,
connectTimeout: 5000,
pinnedMucs: ['welcome@conference.xmppdomain'],
} And in proxy conf in Apache (for your <VirtualHost *:8810>
ServerName webdomain
ServerAlias webdomain
# (...)
# websocket proxy
<IfModule mod_proxy_wstunnel.c>
<Location "/xmpp-websocket">
ProxyPass "ws://xmppdomain:5280/xmpp-websocket"
</Location>
</IfModule>
</VirtualHost>
|
Hi. came up with this (using nginx) but I still have problems authenticating: https://paste.woodpeckersnest.space/?c7a8446104c74c16#D3sUYFgrpE4WL9AouWRR2SPdMYUMFGCwb3eJeXSNiR45 |
This error is repeating in console:
why does it say localhost? |
Can you type |
On XmppSocket.js, it create a XMPP object with the socket in I'm betting on an error in your local.json file. |
@roughnecks I think it works now 😉 |
'ws://localhost/xmpp-websocket' did you check my paste? Config is there |
working now, not sure if this line was needed:
|
Not useful in production, it is for avoid linter complaints. |
Hello,
I have my prosody server at woo...t.space and I have my website at the same domain
Is there a way for me to host the webchat, so that it doesn't collide with my website?
I can host at a subdomain, but then my login credential don't work, since it tries to connect to e.g. webchat.woo...t.space, which is not my xmpp server's virtualhost.
The text was updated successfully, but these errors were encountered: