Skip to content

wasafali-wse/admin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

this is file etc/nginx/conf.d/myproject.conf

server { listen 192.168.100.115:80; # or just 'listen 80;' server_name _; # or specify your domain or IP

		    # Serve static files
		    location /static/ {
			            alias /var/www/admin/staticfiles/;  # match STATIC_ROOT
					        }

        # Serve media files
        location /media/ {
		        alias /var/www/admin/media/;  # match MEDIA_ROOT
				    }

	    # Proxy pass to Gunicorn
	    location / {
		            proxy_pass http://127.0.0.1:8000;  # Gunicorn is running here
				            proxy_set_header Host $host;
			            proxy_set_header X-Real-IP $remote_addr;
				            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
					            proxy_set_header X-Forwarded-Proto $scheme;
						        }

}

About

this django project is made for temprary use for shop .

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors