Comments (2)
Support for setting X-Forwarded-Proto
is available today (it's part of the listener configuration):
https://unit.nginx.org/configuration/#ip-protocol-forwarding
from unit.
Hi @ipeterov Thanks for reaching out and thanks @lcrilly for jumping in!
Beside X-Forwarded-Proto
and X-Forwarded-For
adding custom request headers is currently not natively supported. BUT you are able to set environment variables in the environment
section.
Then, a next step - you can make use of PHPs auto-prepend-file). In this script you will be able to convert Env to Http-Request-Headers. Does this make sense? I have used this in another old application with some great success. The performance implication is almost nothing (of course, depends on what are you doing in the prepended file).
from unit.
Related Issues (20)
- Missing http.ServerResponse.flushHeaders function HOT 4
- Unit building PHP modules. Version confusion. HOT 7
- Unable to compile an nginx unit Golang application under Windows HOT 1
- Docker: Unable to build images for PHP 8.3.0RC6 using packages Makefile HOT 17
- PHP 8.3 official unit image HOT 7
- Add HTTP Range header support HOT 1
- Can Unit run NodeJS Nuxt applications? HOT 8
- Nginx unit daemon json logs HOT 3
- Best practice for handling concurrent jobs in a multi-instance Express app HOT 1
- python asgi stop response HOT 6
- Are Python WebSockets under SSL intended to work? HOT 10
- Does ngix for windows support http_perl_module? HOT 2
- npm: unit-http: should we replace the https package as well?
- Nginx unit's analog for fpm max_children HOT 1
- how to add in image HOT 3
- compile unit with only needed language support
- Trailing slash rewrite - duplicated content SEO issue
- "error": "Failed to apply new configuration." - REG HOT 2
- questions around embedding `libunit` in Julia HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unit.