Skip to content

Commit 99bc063

Browse files
committed
feat(serverless): add note on http redirection
1 parent 914e063 commit 99bc063

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

serverless/containers/how-to/secure-a-container.mdx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,22 @@ Set `privacy = "private"` in your Terraform [resource description](https://regis
100100

101101
You can generate access credentials to inject in other applications, such as containers and functions, directly from Terraform using the [container_token resource](https://registry.terraform.io/providers/scaleway/scaleway/latest/docs/resources/container_token).
102102

103+
## Redirect HTTP to HTTPS
104+
105+
You may not want to expose your container over HTTP. You can enable HTTP to HTTPS redirection to ensure that all traffic follows a secure path.
106+
107+
### Configure redirection using the Scaleway console
108+
109+
1. Click **Containers** in the **Serverless** section of the side menu. The containers page displays.
110+
2. Click the relevant container namespace.
111+
3. Click the name of the container for which you want to enable redirection.
112+
4. Click the **Security** tab.
113+
5. Set the **HTTPS connections only** switch to **On**.
114+
115+
### Configure redirection using the Serverless framework
116+
117+
Set `httpOption: redirected` in your container's description to enable redirection.
118+
103119
## Set up alerts in Observability Cockpit (upcoming feature)
104120

105121
Using Scaleway [Observability Cockpit](/observability/cockpit/quickstart/), a managed Grafana solution to which all your containers are connected, you can:

0 commit comments

Comments
 (0)