Skip to content

Add native cmd:// support in Mailrise Docker image #153

@geotibi

Description

@geotibi

Currently, the Mailrise Docker image cannot use cmd:// URLs for executing local scripts, which prevents sending SMS through custom scripts.

I have a local sms gateway that I want to use but i cannot use into configuration something like

configs:
  sms:
    urls:
      - cmd:///etc/script.sh

When call the script in the logs of container I can see cmd://etc/script.sh, so the triple slash is translated to double slash and the script is not executed. Another option is to use a curl command instead of my script, similar like from postman

postman request POST '192.168.1.30:8080/message' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Basic gdfhvtrvryuvvtu' \
  --body '{
    "textMessage": {
        "text": "Hello!"
    },
    "phoneNumbers": [
        "+123456789"
    ]
}' \
  --auth-basic-username 'user' \
  --auth-basic-password 'pass'

Can I do this? I've searched into documentation but still cannot make this running

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions