Recently, the project is quite intense, so I don’t have much time to write a blog. I just happened to be fine these days, so I quickly record what I have learned recently.
Server environment<
Nginx (“engine x”) is a high-performance HTTP and reverse proxy server, as well as an IMAP/POP3/SMTP server. Nginx was developed by Igor Sysoev for the second most visited site in Russia, Rambler.ru. The first public version 0.1.0 was released on October 4, 2004. It releases the source code in the form of a BSD-like license, which is known for its stability, rich feature set, sample configuration files and low system resource consumption. On June 1, 2011, nginx 1.0.4 was released. Nginx is a lightweight web server/reverse proxy server and email (IMAP/POP3) proxy server, and is issued under a BSD-like protocol. Developed by Russian programmer Igor Sysoev, it is used by the Russian large-scale portal and search engine Rambler (Russian: Рамблер). Its characteristic is that it occupies less memory and has strong concurrency.
Recently, the project is quite intense, so I don’t have much time to write a blog. I just happened to be fine these days, so I quickly record what I have learned recently.
Server environment<
I use gunicorn/django (using django-rest-framework) behind nginx to run the application, and when using hyperlinkedmodelserializer, I have a little problem with the url return using the rest of the
1.Set up an experimental environment (using docker to deploy two nginx containers) h2> 1) Use to build the first nginx service
[[email protected]-node4 ~]# docker container run- d –name web01 -p
When I set client_max_body_size to 30m; everything works fine without ssl (accepts files up to 30MB). However, when I switch to ssl, it completely ignores this instruction. p> My configuration i
The map tiles on the ArcGIS official website are too slow. Think of the available NIGIX proxy.
Nginx is http proxy software under Linux, and it is also available under Windows.
The foll
Compile and install nginx1.10 (reproduced from: https://blog.csdn.net/goghdian/article/details/80264861)
Install dependent packages
yum install -y gcc-c++ pcre pcre-devel zlib zlib-devel open
I am running Nginx on Kubernetes.
When I use the following proxy_pass directive, it works as expected:
proxy_pass “http://service-1.default”; But the following does not work:
set
I have this atlas:
map $id $backend_host {
default http://primary -host;
1 http://primary-host;
2 http://secondary-host;
} The following locations:
location / {
set $id 1;
proxy_pa
Improve concurrent connectionsAdjust the number of worker processes Improve the affinity of the CPU, bind the CPU to the process, reduce the switching between processes, and avoid uneven use of CPU
I am using .ini files (according to uWSGI docs). Using environment variables is a good practice, but I cannot make the $environment name syntax work. p> Can I use special syntax to access them?<