Skip to content

Commit 42412ca

Browse files
ahamezbene2k1
andcommitted
docs(serverless): clarify ports usage int-fix-serverless (#4577)
* fix(serverless): a port is not related to the HTTP protocol * fix(serverless): add EOL * fix(serverless): remove confusing sentence about different port Indeed, we don't specificy what 'different' means here: from a default value? * feat(serverless): explain that containers are accessible on ports 80 and 443 from the internet * fix(serverless): apply sugession Co-authored-by: Benedikt Rollik <[email protected]> --------- Co-authored-by: Benedikt Rollik <[email protected]>
1 parent 9470edb commit 42412ca

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pages/serverless-containers/concepts.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,13 @@ The container can then process the message and perform any required actions, suc
148148

149149
## Port
150150

151-
The port parameter specifies the network port that your container listens on for incoming requests. If your application or container is set up to listen on a different port, you must specify it using the port parameter when deploying your container to Serverless Containers. It must reflect the port configuration within your container for your service to function correctly.
151+
The port parameter specifies the network port that your container listens on for incoming requests. It must reflect the port configuration within your container for your service to function correctly.
152152

153153
The value defined in the port parameter will then be passed to your container during the deployment inside the `PORT` environment variable.
154154

155155
<Message type="note">
156-
Only one HTTP port can be exposed per Serverless Container.
156+
- Only one port can be exposed per Serverless Container.
157+
- Your container is accessible from the internet via ports 80 and 443, regardless of the specified port. The value you set determines how the Scaleway infrastructure accesses your container.
157158
</Message>
158159

159160
## Privacy policy
@@ -262,4 +263,4 @@ Unit used to measure the resource consumption of a container. It reflects the am
262263

263264
## Protocol
264265

265-
Serverless Containers supports **http1** (default) and **http2** (`h2c`). Use HTTP/2 if your container application is configured to listen for HTTP/2 requests, such as a **gRPC** service or a web server that uses HTTP/2 features like multiplexing, otherwise, HTTP/1 is recommended.
266+
Serverless Containers supports **http1** (default) and **http2** (`h2c`). Use HTTP/2 if your container application is configured to listen for HTTP/2 requests, such as a **gRPC** service or a web server that uses HTTP/2 features like multiplexing, otherwise, HTTP/1 is recommended.

0 commit comments

Comments
 (0)