You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refer to the [How to create an authentication token](/serverless/containers/how-to/create-auth-token-from-console/) documentation for more information.
96
96
97
-
### Restrict access using Terraform
97
+
## Redirect HTTP to HTTPS
98
+
99
+
If you do not want to expose your container over HTTP, you can enable the HTTP to HTTPS redirection to ensure that all traffic follows a secure path.
100
+
101
+
### Configure redirection using the Scaleway console
102
+
103
+
1. Click **Containers** in the **Serverless** section of the side menu of the Scaleway console. The Containers page displays.
104
+
2. Click the relevant Containers namespace.
105
+
3. Click the name of the container for which you want to enable the redirection.
106
+
4. Click the **Security** tab.
107
+
5. Toggle the **HTTPS connections only** switch to **On**.
108
+
109
+
Incoming HTTP traffic is now redirected to HTTPS.
110
+
111
+
### Configure redirection using the Serverless framework
98
112
99
-
Set `privacy = "private"` in your Terraform [resource description](https://registry.terraform.io/providers/scaleway/scaleway/latest/docs/resources/container).
113
+
To redirect HTTP traffic to HTTPS using the Serverless Framework, add the `httpOption: redirected` option to your container's description.
100
114
101
-
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).
115
+
Refer to our [dedicated repository](https://github.com/scaleway/serverless-scaleway-functions/?tab=readme-ov-file#container-specific-configuration) for more information on container configuration using the Serverless Framework.
102
116
103
117
## Set up alerts in Observability Cockpit (upcoming feature)
0 commit comments