From cb7f4683c0ed91907a92ccc1de6b9766712140fa Mon Sep 17 00:00:00 2001 From: Rachel-nas <77396432+Rachel-nas@users.noreply.github.com> Date: Mon, 27 Jan 2025 15:36:28 +0100 Subject: [PATCH 1/6] typo correction in networking and IP adresses ranges (#512) ## Describe your PR _I just fixed the oven by two, because there are no longer 4 but 2 IP ranges_ ## Checklist - [ ] My PR is related to an opened issue : # - [x] I've read the [contributing guidelines](/CleverCloud/documentation/blob/main/CONTRIBUTING.md) ## Reviewers _Who should review these changes?_ @CleverCloud/reviewers Co-authored-by: Rachel Nascimento --- content/doc/administrate/network.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/doc/administrate/network.md b/content/doc/administrate/network.md index 279778115..a4f7ac1f6 100644 --- a/content/doc/administrate/network.md +++ b/content/doc/administrate/network.md @@ -55,7 +55,7 @@ If you are interested, please ask the support / your sales contact for a quote. The Paris region is owned and handled by Clever Cloud. We own or entrust the associated AS's and IP addresses ranges. -Here are the current four addresses ranges your application may have an outgoing IP in: +Here are the current two addresses ranges your application may have an outgoing IP in: - 91.208.207.0/24 - 185.133.116.0/22 From 9e53d56e736458478283f72fc836f0036dc6445b Mon Sep 17 00:00:00 2001 From: Julia March <101819212+juliamrch@users.noreply.github.com> Date: Mon, 27 Jan 2025 21:46:28 +0900 Subject: [PATCH 2/6] Update external-doc-update.yml --- .github/workflows/external-doc-update.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/external-doc-update.yml b/.github/workflows/external-doc-update.yml index 68e351b7a..7fe7a04da 100644 --- a/.github/workflows/external-doc-update.yml +++ b/.github/workflows/external-doc-update.yml @@ -31,6 +31,7 @@ jobs: with: files: | content/guides/astro.md + context/guides/nuxt.md # Create issue and assign PR author - name: Create issue From bbc0c093e3aa34653cc83875a2d6dae8a94b7ab0 Mon Sep 17 00:00:00 2001 From: Stanislav Sauvin Date: Fri, 24 Jan 2025 16:52:38 +0100 Subject: [PATCH 3/6] Add SSH/SFTP public keys for FSBucket addons --- content/doc/addons/fs-bucket.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/content/doc/addons/fs-bucket.md b/content/doc/addons/fs-bucket.md index eb414cb0b..54d9612c3 100644 --- a/content/doc/addons/fs-bucket.md +++ b/content/doc/addons/fs-bucket.md @@ -119,6 +119,35 @@ variable, see [special environment variables]({{< ref "doc/develop/env-variables The **File explorer** tab of the **add-on dashboard** gives you access to your files in the FS bucket. +### From your favorite SFTP client + +The **Add-on information** tab of your FS Bucket in [Clever Cloud Console](https://console.clever-cloud.com) displays information you need to connect using SSH File Transfer Protocol (SFTP). You can use the following SSH public keys to ensure the connection is authentic and trusted: + +| Algorithm | Key size | Fingerprint | +|-----------|----------|----------------------------------------------------| +| ED25519 | 256 | `SHA256:+ku6hhQb1O3OVzkZa2B+htPD+P+5K/X6QQYWXym/4Zo` | +| ED25519 | 256 | `SHA256:8tZzRvA3Fh9poG7g1bu8m0LQS819UBh7AYcEXJYiPqw` | +| ED25519 | 256 | `SHA256:HHGCP5cf0jQbQrIRXjiC9aYJGNQ+L9ijOmJUueLp+9A` | +| ED25519 | 256 | `SHA256:Hyt6ox+v2Lrvdfl29jwe1/dBq9zh2fmq2DO6rqurl7o` | +| ED25519 | 256 | `SHA256:drShQbl3Ox+sYYYP+urOCtuMiJFh7k1kECdvZ4hMuAE` | +| ED25519 | 256 | `SHA256:h1oUNRkYaIycchUsyAXPQHnu6MtTF2YUEYuisu+vnOE` | +| RSA | 4096 | `SHA256:+550bmBCNAHscjOmKrdweueVUz2E6h1KzmSV+0c0U7w` | +| RSA | 4096 | `SHA256:1O7d6cdmqj42Dw4nX90Y+6zIFTUI+aIwD0SLMQuj0ko` | +| RSA | 4096 | `SHA256:AkHQnQXJ1lFEtliLHl8hlG7NiIZZgVn/uuRMCZJOKJk` | +| RSA | 4096 | `SHA256:Atxhx7U0MOuZC7e4vs1tpyTJmNttB7d4+HNC5hiavFo` | +| RSA | 4096 | `SHA256:Bla7GeL6hggg+rf6iDlKMrzIhxEBYB3VL7Q6PYGJYt4` | +| RSA | 4096 | `SHA256:H5ZhQ/5JdMPSG49ojUNEhwSuRD663mnIJb/YDFFntyk` | +| RSA | 4096 | `SHA256:TZr6eFrzoJmn4RS55Tb6yTd+WV9lTGtW0q+uLVbI7IE` | +| RSA | 4096 | `SHA256:ZYFb1AsB+q++NRf7yW8E5rNOfxTRwjpJt6hqFP/NBNs` | +| RSA | 4096 | `SHA256:d+nTyowvYtcxF28mCUu1ilqPJuLMExGyJ16Sv/pvoVY` | +| RSA | 4096 | `SHA256:flpv4s3VxOrQFc/IG+BpR1s9dgDvR07A6zunNqO4Co0` | +| RSA | 4096 | `SHA256:hvZN8rgSG82weLOeMTXdh1VwhjuRv+MJNnUt/X9R39g` | +| RSA | 4096 | `SHA256:ls20B8C6Jdqx7RPQAjzVX7KmnrHizJum2sEvNhMcl60` | +| RSA | 4096 | `SHA256:u1AzFc2AdFmlPRdNIZsn0sQJ/CKbfC2ZmXnQfabPek4` | +| RSA | 4096 | `SHA256:wUPBX3X5gALgxXqD+IwG5qPRb0jbiOZ8/U1BOZeNhtk` | +| RSA | 4096 | `SHA256:yRHC/tAlBpHLlRZ5rwbZ1z+159Bj3yg0VxHf+hXINLg` | +| RSA | 4096 | `SHA256:yhn79aqxOGQZ+LXdN1/vIY+jwRIbBamlVT1+HdFoA6o` | + ### From your favorite FTP client The **Add-on information** tab of your FS Bucket add-on displays the information From c88aa1b639684a371f7dd3ac6f38f9cfa3c9ac66 Mon Sep 17 00:00:00 2001 From: Corentin BARAULT <74433435+Kirbeerus@users.noreply.github.com> Date: Tue, 28 Jan 2025 17:16:57 +0100 Subject: [PATCH 4/6] Add prerender.io to Static doc (#491) ## Describe your PR Some client may want to prerender there SPA application to have better SEO. One of the way to do it is by using prerender.io Added a part in the documentation to talk about how to do it on Clever Cloud. You can check if prerender.io work correctly on your app by using this guide. https://docs.prerender.io/docs/how-to-test-your-site-after-you-have-successfully-validated-your-prerender-integration ## Checklist - [x] My PR is related to an opened issue : # - [x] I've read the [contributing guidelines](/CleverCloud/documentation/blob/main/CONTRIBUTING.md) ## Reviewers _Who should review these changes?_ @CleverCloud/reviewers --------- Co-authored-by: Julia March <101819212+juliamrch@users.noreply.github.com> Co-authored-by: Pierre L. / Peyo <166715564+PLhuillery@users.noreply.github.com> --- content/doc/applications/static/_index.md | 30 +++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/content/doc/applications/static/_index.md b/content/doc/applications/static/_index.md index 51f9c596e..186b2a064 100644 --- a/content/doc/applications/static/_index.md +++ b/content/doc/applications/static/_index.md @@ -66,6 +66,36 @@ RewriteRule ^ - [L] RewriteRule ^ /index.html ``` +## Prerendering with Prerender.io + +When you use a SPA framework, you are using Client side rendering. +One of the problem with this method is a poor SEO as search engine crawlers have more difficulty reading the content of this type of application. +To minimize this issue, prerendering can be a solution. + +If you want to Prerender your application on Clever Cloud, one solution is to use [Prerender.io](https://prerender.io/). +To use it with our static applications, you need a `.htaccess` file like this at the root of your project: + +```ApacheConf + + RequestHeader set X-Prerender-Token "" + RequestHeader set X-Prerender-Version "prerender-apache@2.0.0" + + + + RewriteEngine On + + + RewriteCond %{HTTP_USER_AGENT} googlebot|bingbot|yandex|baiduspider|facebookexternalhit|twitterbot|rogerbot|linkedinbot|embedly|quora\ link\ preview|showyoubot|outbrain|pinterest\/0\.|pinterestbot|slackbot|vkShare|W3C_Validator|whatsapp|redditbot|applebot|flipboard|tumblr|bitlybot|skypeuripreview|nuzzel|discordbot|google\ page\ speed|qwantify|bitrix\ link\ preview|xing-contenttabreceiver|google-inspectiontool|chrome-lighthouse|telegrambot [NC,OR] + RewriteCond %{QUERY_STRING} _escaped_fragment_ + RewriteCond %{REQUEST_URI} ^(?!.*?(\.js|\.css|\.xml|\.less|\.png|\.jpg|\.jpeg|\.gif|\.pdf|\.doc|\.txt|\.ico|\.rss|\.zip|\.mp3|\.rar|\.exe|\.wmv|\.doc|\.avi|\.ppt|\.mpg|\.mpeg|\.tif|\.wav|\.mov|\.psd|\.ai|\.xls|\.mp4|\.m4a|\.swf|\.dat|\.dmg|\.iso|\.flv|\.m4v|\.torrent|\.ttf|\.woff|\.svg)) + + RewriteRule ^(index\.html|index\.php)?(.*) http://service.prerender.io/%{REQUEST_SCHEME}://%{HTTP_HOST}$2 [P,END] + + +``` +You can find your `PRERENDER_TOKEN` on your [Prerender.io account](https://prerender.io/). + +You can verify your configuration work using [this guide](https://docs.prerender.io/docs/how-to-test-your-site-after-you-have-successfully-validated-your-prerender-integration). ## Apache Configuration with `CC_WEBROOT` If you set the `CC_WEBROOT = /` environment variable, make sure you put your `.htaccess` file at the root of your `/`. This is where Apache will look for directives when you deploy an application in a Static runtime. From 1812997c59563f847d2f4a6ddc2591b282ac7cd5 Mon Sep 17 00:00:00 2001 From: Julie POUNY <63869305+Juju-archy@users.noreply.github.com> Date: Tue, 28 Jan 2025 17:22:13 +0100 Subject: [PATCH 5/6] Diag network issue with curl (#504) ## Describe your PR This guide provides a method for diagnosing network-related issues using the curl command. By analyzing detailed timing information, you can determine whether problems originate from the network infrastructure, DNS resolution, TLS handshake, or server response ## Checklist - [x] My PR is related to an opened issue : #480 - [x] I've read the [contributing guidelines](/CleverCloud/documentation/blob/main/CONTRIBUTING.md) ## Reviewers _Who should review these changes?_ @CleverCloud/reviewers Co-authored-by: jpouny Co-authored-by: Pierre L. / Peyo <166715564+PLhuillery@users.noreply.github.com> --- content/doc/find-help/troubleshooting.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/content/doc/find-help/troubleshooting.md b/content/doc/find-help/troubleshooting.md index bf07d3559..d9eb6f661 100644 --- a/content/doc/find-help/troubleshooting.md +++ b/content/doc/find-help/troubleshooting.md @@ -173,6 +173,13 @@ For operations that may exceed the 180-second limit, implement one of these appr - Break up long-running operations into smaller tasks Use your embedded [Grafana]({{< ref "doc/metrics/">}} "Grafana on Clever Cloud") to monitor resource usage when implementing any of these solutions. + +##### How can I diagnosing Network Issue with `curl` + +To gather detailed timing information for each step of the connection process, run the following `curl` command: +``` bash +curl -o /dev/null -s -w "DNS resolution: %{time_namelookup}s\nTCP connection: %{time_connect}s\nTLS handshake: %{time_appconnect}s\nTime to first byte: %{time_starttransfer}s\nTotal time: %{time_total}s\n" https:// +``` {{% /details %}} From 901b211da727ffaaa5d4812125f0563a87e9fadd Mon Sep 17 00:00:00 2001 From: Julia March <101819212+juliamrch@users.noreply.github.com> Date: Wed, 29 Jan 2025 16:04:36 +0900 Subject: [PATCH 6/6] Update review-app.yml --- .github/workflows/review-app.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/review-app.yml b/.github/workflows/review-app.yml index 9bf774418..7eaa7c322 100644 --- a/.github/workflows/review-app.yml +++ b/.github/workflows/review-app.yml @@ -23,7 +23,7 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} fetch-depth: 0 - name: Manage review app - uses: CleverCloud/clever-cloud-review-app@v1.1.1 + uses: CleverCloud/clever-cloud-review-app@beta env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} CLEVER_SECRET: ${{ secrets.CLEVER_SECRET }} @@ -39,4 +39,4 @@ jobs: type: 'static-apache' set-env: true environment: 'review' - domain: '${{ github.event.pull_request.base.repo.name }}-PR-${{ github.event.number }}.cleverapps.io/developers' \ No newline at end of file + domain: '${{ github.event.pull_request.base.repo.name }}-PR-${{ github.event.number }}.cleverapps.io/developers'