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

[Feature Request] Execute bash Scripts #504

Open
r4nchy opened this issue Feb 5, 2025 · 1 comment
Open

[Feature Request] Execute bash Scripts #504

r4nchy opened this issue Feb 5, 2025 · 1 comment

Comments

@r4nchy
Copy link

r4nchy commented Feb 5, 2025

Can you add a feature such that whenever the sablier triggers the container start signal it can also has the ability to execute a custom bash script.

For example something like on_start

subdomain.example.com {
    sablier http://localhost:10000 {
        group glances
        session_duration 1h
        dynamic
        on_start /bin/bash /home/ubuntu/myscript.sh
    }
    reverse_proxy http://localhost:1234
}
@acouvreur
Copy link
Member

Can you provider more details on what this feature would allow you to do ?

I think something quite similar is described here: #423

But instead of specifying a something to execute, you could subscribe to such event directly and do whatever you want.

I think it would give you more flexibility, but also require more setup because you need an http server to listen to the webhook events.

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