configs: added nginx conf example
Signed-off-by: rscnt <rascnt@gmail.com>
This commit is contained in:
		
					parent
					
						
							
								f3b560f602
							
						
					
				
			
			
				commit
				
					
						3338894c23
					
				
			
		
					 1 changed files with 8 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -1,19 +1,20 @@
 | 
			
		|||
server {
 | 
			
		||||
    listen 8081;
 | 
			
		||||
    listen destruction.io:8080;
 | 
			
		||||
    server_name destruction.io;
 | 
			
		||||
 | 
			
		||||
    location /static/ {
 | 
			
		||||
	    alias /home/r/dynamicweb/static;
 | 
			
		||||
    location /static {
 | 
			
		||||
	    alias /home/r/dynamicweb/static/;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    location /media/ {
 | 
			
		||||
	alias /home/r/dynamicweb/media;
 | 
			
		||||
    location /media {
 | 
			
		||||
	    alias /home/r/dynamicweb/media/;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    location / {
 | 
			
		||||
	proxy_pass http://localhost:8080/;
 | 
			
		||||
	proxy_pass http://127.0.0.1:8000/;
 | 
			
		||||
	proxy_pass_header Server;
 | 
			
		||||
	proxy_set_header Host $host;
 | 
			
		||||
	proxy_set_header Host $host:8080;
 | 
			
		||||
	proxy_set_header X-Forwarded-Host $host:8080;
 | 
			
		||||
	proxy_redirect off;
 | 
			
		||||
	proxy_set_header X-Real-IP $remote_addr;
 | 
			
		||||
	proxy_set_header X-Scheme $scheme;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue