configs: added include proxy conf example.
Signed-off-by: rscnt <rascnt@gmail.com>
This commit is contained in:
		
					parent
					
						
							
								0734110804
							
						
					
				
			
			
				commit
				
					
						9d521f3384
					
				
			
		
					 1 changed files with 24 additions and 0 deletions
				
			
		
							
								
								
									
										24
									
								
								configs/nginx.proxy.conf
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								configs/nginx.proxy.conf
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,24 @@
 | 
				
			||||||
 | 
					server {
 | 
				
			||||||
 | 
					    listen 8081;
 | 
				
			||||||
 | 
					    server_name destruction.io;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    location /static/ {
 | 
				
			||||||
 | 
						    alias /home/r/dynamicweb/static;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    location /media/ {
 | 
				
			||||||
 | 
						alias /home/r/dynamicweb/media;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    location / {
 | 
				
			||||||
 | 
						proxy_pass http://localhost:8080/;
 | 
				
			||||||
 | 
						proxy_pass_header Server;
 | 
				
			||||||
 | 
						proxy_set_header Host $host;
 | 
				
			||||||
 | 
						proxy_redirect off;
 | 
				
			||||||
 | 
						proxy_set_header X-Real-IP $remote_addr;
 | 
				
			||||||
 | 
						proxy_set_header X-Scheme $scheme;
 | 
				
			||||||
 | 
						proxy_connect_timeout 600;
 | 
				
			||||||
 | 
						proxy_send_timeout 600;
 | 
				
			||||||
 | 
						proxy_read_timeout 600;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue