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 answers
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 migrate from Azure Static Web Apps to Azure App Service?
- "Backend call failure" error in Nextjs App deployed on Azure static web app
- INVALID_URL deploying next.js app to Azure Static Webapp during github actions build
- Azure Static Web App: Add an header for each JS file
- Azure Table REST API / 403 (Server failed to authenticate the request. Works in Postman but not on static web page
- Restrict access to Azure static web app to Entra ID's with an emailadres with certain domainname?
- Get client IP in my next.js app served as an Azure static web app
- Azure Static Web App function API refusing connection from web app
- How to upload images via Gatsby Azure Static Web App into Azure Database
- How to handle REST API calls in Azure Static web apps
- gatsby-node.js file throws an error after uploading to Gatsby Azure Static Web App
- Azure Static Web Apps - Limit 104857600 bytes
- How to debug Custom Authentication (GetRoles api) in Azure Static Web App?
- Deploying Both the /browser and /server folders of an Angular SSR app to Azure Static Web Apps
- How to deploy to Azure Static Web App with database connection in Svelte using GitHub workflow?
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
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?
Popular Tags
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)
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.