Docker practice - image production

Environmental Science Installation of docker, gitlab runner and runner binding with gitlab.com will not be covered in detail. Gitlab, I use gitlab.com Ubuntu runs gitlab runner and docker containers Make Dockerfile Contents of Dockerfile file The default user of RUN and COPY in this file is root USER nobody specifies that the operation com ...

Posted by pckidcomplainer on Fri, 22 Nov 2019 02:17:38 -0800

How to deploy the front-end dist directory?

The front-end deployment is actually a part of front-end engineering. This blog is my attempt to summarize the front-end deployment based on my practical work experience and amateur exploration. On the one hand, I have some records, on the other hand, I can give you some inspiration. Deploy to qiniu cloud Deploy to Alibaba cloud OSS and Tence ...

Posted by CBR on Fri, 22 Nov 2019 02:13:52 -0800

django production environment deployment: nginx+SSL certificate start wss+https

Download certificate It took me an hour here. I'm Tencent cloud's server. For the domain name purchased by Alibaba cloud, first apply for a free ssl Certificate in Tencent cloud. During this period, just follow the instructions. One step is to change the DNS in Alibaba cloud. I don't need to talk about it in detail. After I ge ...

Posted by nightdesigns on Thu, 21 Nov 2019 11:29:33 -0800

Nginx web page optimization

Nginx web page optimization (2) Change Number of Nginx Running Processes In high concurrency scenarios, more Nginx processes need to be started to ensure fast response to handle user requests and avoid blocking You can use the ps aux command to see the number of Nginx running processes Change the configuration method for the number of proces ...

Posted by wilburforce on Wed, 20 Nov 2019 17:11:46 -0800

Get the real ip address of the client in the background

In JSP, the method to get the IP address of the client is: request.getRemoteAddr(), which is effective in most cases. However, after passing Apache, Squid, nginx and other reverse proxy software, the real IP address of the client cannot be obtained. After the proxy, because the middle layer is added between the client and the s ...

Posted by azylka on Wed, 20 Nov 2019 10:24:20 -0800

Nginx Learning Reorganization

Installation and Configuration of Nginx 0 Installation Slightly, download it on the official website.Note that Nginx is written in C and is not cross-platform. Different operating systems need to download different Nginx. Nginx Basic Commands under 1 Windows start-up start nginx Close ./nginx -s quit ./nginx -s stop see information ./nginx -V ...

Posted by Naez on Tue, 19 Nov 2019 19:33:30 -0800

Nginx - rewrite (application scenario example)

Scenario 1 - Domain Name Based Jump The company's old domain name, www.accp.com, needs to be replaced by the new domain name, www.kgc.com, due to changes in business needs Old domain names cannot be abolished Jump from the old domain name to the new domain name with its parameters unchanged Experimental environment Linux Server (192.16 ...

Posted by redking on Mon, 18 Nov 2019 12:35:23 -0800

Nginx Service Optimizes Web Page Compression and Anti-theft Chain

Configure Nginx for Web Page Compression Nginx's ngx_http_gzip_module compression module provides the ability to compress file content, allowing the Nginx server to compress output content before sending it to the client, saving bandwidth on the site and improving the user's access experience. It is installed by default.Compression performance ...

Posted by faraco on Sun, 17 Nov 2019 13:51:12 -0800

Configure Nginx web page optimization in Linux system

Configure Nginx hidden version number In the production environment, the version number of Nginx needs to be hidden to avoid the leakage of security vulnerabilities View method Use fiddler tool to view Nginx version number in Windows client Use "curl-i web address" command to view in CentOS system The method of hiding version ...

Posted by ilovetoast on Fri, 15 Nov 2019 13:34:29 -0800

Nginx service optimization hidden version number

Configure Nginx hidden version number In the production environment, the version number of Nginx needs to be hidden to avoid the leakage of security vulnerabilities View method Use fiddler tool to view Nginx version number in Windows client Use "curl-i web address" command to view in CentOS system The method of hiding version num ...

Posted by mrodrigues on Fri, 15 Nov 2019 11:51:53 -0800