Closed kopax closed 3 years ago
Hi, Have tou tried using this for auth? curl --user admin:password …..
In all cases, I am forwarding all requests to the official gamma python library. I think you should make the sending synchronised in your code, if it is a problem. I do not think any of this protection in library itself.
Regards Pavel
On 9 Sep 2020, at 23:33, Dimitri KOPRIWA notifications@github.com wrote:
Hello and thanks for sharing this.
I want to create a SMS service and I have found your work, thanks once more for sharing it.
I am testing your docker server with my /dev/ttyUSB0 device.
After doing docker-compose up -d, I am running:
curl -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Authorization: Basic admin password' -X POST --data '{"text":"Hello world", "number":"+33695826789"}' http://localhost:5000/sms It tells me Unauthorized access
Why are the credentials not working? How can I set smsc number, I tested outside docker gammu and this is required for my sim card. I must use -smscnumber +33695826789 option when sending the message. I tested to send locally two message at the same time (with gammy), and it gives me Resource busy and fail. Does your software take care of creating a message pull or will te fail if two request happen to send a message at the same time? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pajikos/sms-gammu-gateway/issues/6, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATC6W76Y5MZZI4AYBFRMCLSE7YBRANCNFSM4RDK4JNA.
Hi pajikos. I fixed the authentication issue, I was just not sending the base64.
Thanks for passing #7 , will you release the docker image ?
For question (2), I tested it and we can send message concurrently.
For question (3), I have no clue as I am not doing python, do you think it is worth to replace the docker image by the tiangolo one for production?
Hi Kopax, ad 2) You can create a new issue for it to avoid multiple threads in this issue. ad 3) Did you mean to add a production-ready server? Send me the link to tiangolo image, what did you have in mind.
Yes I mean use a production ready server. I've looked into it but my knowledge in there are insufficient.
This is the repo https://github.com/tiangolo/uwsgi-nginx-flask-docker
Hi, I want to create a SMS service and I have found your work, thanks once more for sharing it.
I am testing your docker server with my
/dev/ttyUSB0
device.After doing
docker-compose up -d
, I am running:Looking at the server logs:
Resource busy
and fail. Using this, will it also fail to send a message at the same time?Use a production WSGI server instead
, I don't know about python at all, and I rather not learn python at the moment, what should I do to have a docker production server? Perhaps this can help : https://github.com/tiangolo/uwsgi-nginx-flask-docker but I couldn't get it to work with my understanding of wsgi