I am self-hosting umami as a static web app on azure, together with a PostgreSQL db. The app is a next.js app. I am using a azure front door as well. All works well right out of the box when deployed, only issue is that when it is logging client IP:s, it picks up the static web app IP, not the actual client browsing the website, so all visits to the tracked website say they are from same country. Umami has option to add an environment variable, where you define which header should be picked up from the request, i.e CLIENT_IP_HEADER. I have tried using X-Forwarded-For, which doesn't work at all, and X-Real-IP logs the static web app IP again. How do I get the IP of the client browsing my site?
Get client IP in my next.js app served as an Azure static web app
43 Views Asked by DRNR At
1
There are 1 best solutions below
Related Questions in NEXT.JS
- Error **net::ERR_CONNECTION_RESET** error while uploading files to AWS S3 using multipart upload and Pre-Signed URL
- Check list of pages with axios
- Calling functions from Main Component while using tanstack table
- NextJS 14 site working in development but not in vercel
- Route Handler not working Next auth, Next Intl & Next 14
- NextJS Docker build fails: fetch failed ECONNREFUSED
- Need some advice on differentiating between subscriptions using Stripe
- Update Sidebar Height to Cover the Document Height (with React Pro Sidebar)
- How do I send an audio file to OpenAi?
- Next.js not updating state during OnClick after router.push to same page with different ID
- Next js delay before applying Emotion and MUI styles
- Next.js. Server actions in form using formik. Action with arguments didnt work
- Protect Server Actions with Next Auth in Next JS 14
- Next-Auth credentials login troubles debugging
- Hydration failed because the initial UI does not match what was rendered on the server: Next js Tanstack table
Related Questions in AZURE-STATIC-WEB-APP
- How to use relative urls in MSAL's redirectUri?
- Blazor WASM client index.html without MainLayout
- Azure Static Web App with Custom Domain not working with Traffic Splitting
- Microsoft Azure static React App not returning json
- React vite typescript deploy to azure static web app from github repo
- Azure Static WebApp database connection preview issue
- Is it possible to combine Azure Function staging slots and preview environments in Azure Static Web app?
- Static Web App Securing Routes with roles when routes have parameters in them
- How to get response from 2nd azure static web app when called from the 1st static web app?
- Blazor app is very slow on azure static web app
- Can I use http api in static azure web app
- Adding a tab app to teams with developer portal
- Azure Static Web App not using environment.prod.ts value for connection string
- How do I deploy an Astro SSR site with a NodeJS adapter to Azure Static Web Apps?
- DataApiBuilderException while trying to run swa start
Related Questions in AZURE-FRONT-DOOR
- Azure Front-Door - Redirection is not working in some browsers
- Connect Azure front door with APIM and Azure Web App
- Get client IP in my next.js app served as an Azure static web app
- Performance testing - receiving high rate of HTTP 429 Too Many Requests
- How to troubleshoot origin health?
- Azure Front Door customise cache key depending on request header value
- Azure Front Door URL rewrite to display pages from microsite hosted in different domain
- Azure App Service returns a 403 error when making a self-request with a Private Endpoint from Front Door in place
- How to tell if a request is coming from Scotland?
- Azure App Service: Cant resolve SCM domain from behind Azure Front Door
- Configure multiple backends with Azure Front Door using paths
- How to automatically approve a private endpoint request from front door using bicep?
- I want to restrict access of my azure Kubernetes nginx ingress only for a particular location (api path) , only to be accessed from azure front door
- how to add traffic manager in front of front door
- Automating Azure FrontDoor Managed Certificate Renewal for Custom Domains with CNAME chain
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I am not experienced in deploying next.js as a static web app, but since you are using Azure Front door, you also have the option to use the
X-Azure-ClientIPheader. That should give you the client IP address.