Skip to content
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

I added " upload () {} in config.tdsl, but sending the file failed #168

Open
robertbob987 opened this issue Oct 19, 2022 · 2 comments
Open

Comments

@robertbob987
Copy link

robertbob987 commented Oct 19, 2022

I deployed tigase with docker and docker image is tigase / tigase-xmpp-server: nightly
During the setup process, domain I fill in the IP address, I can send text messages with Siskin IM APP, I want to configure to send files,
tigase.log.zip
2

admins = [
'[email protected]'
]
'config-type' = 'default'
debug = [ 'server' ]
'default-virtual-host' = '49.4.64.168'
dataSource () {
default () {
uri = 'jdbc:derby:tigasedb;create=true'
}
}
http () {
setup () {
'admin-password' = '12345678'
'admin-user' = 'admin'
}
}
pubsub () {
trusted = [ 'http@{clusterNode}' ]
}
upload () {}

@robertbob987 robertbob987 added the bug Something isn't working label Oct 19, 2022
@hantu85
Copy link
Contributor

hantu85 commented Oct 19, 2022

Have you exposed HTTP port used by Tigase XMPP Server from docker instance, so it would be accessible?
As you are running Tigase in docker, you may also need to configure serverName in HTTP File Upload component configuration, as Tigase uses hostname to generate URI used by client to upload files (if serverName is not configured) and in this case this domain name may not be resolvable by your client.

@hantu85 hantu85 removed the bug Something isn't working label Oct 19, 2022
@robertbob987
Copy link
Author

Yes, this port has been exposed,
docker run -d
--name some_tigase
-v /home/tigase/etc/:/home/tigase/tigase-server/etc/
-v /home/tigase/certs/:/home/tigase/tigase-server/certs/
-v /home/tigase/data/:/home/tigase/tigase-server/data/
-e 'DB_ROOT_USER=root'
-e 'DB_ROOT_PASS=root-password'
-p 5222:5222
-p 5280:5280
-p 5290:5290
-p 8080:8080
tigase/tigase-xmpp-server:nightly

Can the Upload configuration do this?
upload ()
{
logic {
local-only = false
max-file-size = 10485760
serverName="49.4.64.168"
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants