railway waf
Manage Under Attack Mode for a service.
Under Attack Mode requires an applied public domain. Add a Railway-provided or custom domain before you enable it.
Usage
Subcommands
| Subcommand | Description |
|---|---|
status | Show Under Attack Mode status |
enable | Enable Under Attack Mode |
disable | Disable Under Attack Mode |
Options
| Flag | Description |
|---|---|
-s, --service <SERVICE> | Service name or ID |
-e, --environment <ENVIRONMENT> | Environment to use |
-p, --project <PROJECT_ID> | Project ID to use |
--json | Output in JSON format |
Examples
Show Under Attack Mode status
Shows whether Under Attack Mode is active for the selected service.
Enable Under Attack Mode
Enables Under Attack Mode until you turn it off.
Enable Under Attack Mode for a set duration
Enables Under Attack Mode for 1 hour.
Disable Under Attack Mode
Disables Under Attack Mode for the selected service.
Options for
Use railway waf under-attack enable with an optional duration.
| Flag | Description |
|---|---|
--duration <forever|1h|3h|12h|24h> | How long Under Attack Mode stays active |