Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing features (redirects, required header, project statistics) #42

Merged
merged 4 commits into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions getting-started/redirects.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
title: Redirects
description: How to configure HTTP redirects for your Edgee project
icon: swap
---

import EdgeeSdk from '/snippets/edgee-sdk.mdx';

<EdgeeSdk />

Redirects allows you to route your traffic from one URL to another, using HTTP status code such as `302 Found` for temporary redirects.
This can be useful when you want to redirect users from an old URL to a new one, for example during a website migration or replatforming.

## How to add new redirect rules

Browse to your project's **Settings** panel and select **Redirects**.
Here, you need to create new `Source -> Target` pairs corresponding to the absolute URLs of your website.

For example, Source: `/homepage` and Target: `/homepage-new`.

Click **Add Redirect** on the right and add as many pairs as you need.

Alternatively, you could upload a CSV file (no headers, 2 columns) to speed up the process.

<Frame caption="How to define HTTP redirects. Click on the image to zoom in.">
<img
className="block dark:hidden"
src="/images/redirects.png"
alt="How to add HTTP redirects"
dark:hidden
/>
<img
className="hidden dark:block"
src="/images/redirects-dark.png"
alt="How to add HTTP redirects"
/>
</Frame>


When you are done, don't forget to click **Save redirections**.

If you need to remove an existing redirect pair, simply click on the "-" button next to it and then save again.

<Note>
Please note that propagating your project's settings to all edge nodes might take some time, usually up to a minute or two.
</Note>
27 changes: 26 additions & 1 deletion getting-started/statistics.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,29 @@ import EdgeeSdk from '/snippets/edgee-sdk.mdx';

<EdgeeSdk />

<Note>This page is under construction! Please be patient =)</Note>

You can find your project's monthly statistics on the main project dashboard:

- **Total requests**: they represent the total number of requests: a request is processed every time your visitors perform an
HTTP(s) request through Edgee, including HTML pages, JS/CSS assets, images, and so on.
- **Data Collection events**: they represent the total number of analytics events collected via Edgee: a data collection event
is collected every time your visitors generate an action on your website such as a page view or a custom event like a button click or page scroll.

<Frame caption="How to clone your routing settings. Click on the image to zoom in.">
<img
className="block dark:hidden"
src="/images/project-statistics.png"
alt="How to view your project statistics"
dark:hidden
/>
<img
className="hidden dark:block"
src="/images/project-statistics-dark.png"
alt="How to view your project statistics"
/>
</Frame>

<Note>
These statistics are updated periodically and represent your monthly consumption to to date.
They will reset automatically at the beginning of each month.
</Note>
Binary file added images/project-statistics-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/project-statistics.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/redirects-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/redirects.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/required-header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions mint.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"getting-started/project-settings",
"getting-started/routing",
"getting-started/domains",
"getting-started/redirects",
"getting-started/caching",
"getting-started/cookies",
"getting-started/statistics"
Expand Down
14 changes: 14 additions & 0 deletions services/security/access-control.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,20 @@ adding a layer of security that protects your content from unauthorized access.
/>
</Frame>


### Required Header

Require a specific header to be present in the request to your site or app.
If the header is not present, the request will be blocked.

<Frame caption="Go to your project > Security > Access control to add Required Headers.">
<img
src="/images/required-header.png"
alt="Required Header"
align={"center"}
/>
</Frame>

### Trusted IPs

Enhance security by allowing access only from known, trusted IP addresses.
Expand Down