-
Notifications
You must be signed in to change notification settings - Fork 0
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
Handle OPTIONS #16
base: master
Are you sure you want to change the base?
Handle OPTIONS #16
Conversation
With the changes, we reduce by 50% the HTTP trafic on our services.
Build succeeded.
|
Build succeeded.
|
Build succeeded.
|
This does not work as is because of the directives inheritance rules in nginx. ref https://www.nginx.com/blog/avoiding-top-10-nginx-configuration-mistakes/#directive-inheritance |
I could not get the version in the server block to work. One of the reason is that add add_header directives disappear once we do a add_header in the location. I also introduced a directory named all-locations.d that is used to include some logic that should replicated to all locations. All service that want to benefit from this change will need to include /etc/nginx/locations/https-available/all-locations.d/*;
Build succeeded.
|
I've made a new version that can be included in all locations. It requires more changes since all locations need to include it. I also added a All service that want to leverage from this change would have to include the directory in there locations. I've made the change to wazo-auth as an example #16 |
After discussing this subject I've decided not to make the |
Build succeeded.
|
While testing this change I noticed that I get very few OPTIONS request on multiple stacks. I think we tend to see them as developers because we use a private browser when testing. On a very busy stack I counted 2827 OPTIONS out of a total of 127980 requests on nginx 2.2% |
With the changes, we reduce by 50% the HTTP trafic on our services.
WAZO-3232