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
98
-
99
-
Set `privacy = "private"` in your Terraform [resource description](https://registry.terraform.io/providers/scaleway/scaleway/latest/docs/resources/container).
100
-
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).
102
-
103
97
## Redirect HTTP to HTTPS
104
98
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.
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.
106
100
107
101
### Configure redirection using the Scaleway console
108
102
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.
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.
112
106
4. Click the **Security** tab.
113
-
5. Set the **HTTPS connections only** switch to **On**.
107
+
5. Toggle the **HTTPS connections only** switch to **On**.
108
+
109
+
Incoming HTTP traffic is now redirected to HTTPS.
114
110
115
111
### Configure redirection using the Serverless framework
116
112
117
-
Set `httpOption: redirected` in your container's description to enable redirection.
113
+
To redirect HTTP traffic to HTTPS using the Serverless Framework, add the `httpOption: redirected` option to your container's description.
114
+
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.
118
116
119
117
## Set up alerts in Observability Cockpit (upcoming feature)
0 commit comments