Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Into

This is a simple Django project which shows how to use django-nginx-secure-links: https://github.com/lightechllc/django-nginx-secure-links/

Quick Setup

docker compose up -d

Important notes

  1. Admin access:
  2. Django views examples:
  3. We set up MEDIA_URL = 'http://127.0.0.1:8090/media/' using nginx absolute url, it allows us to be directly connected to nginx container by copy and pasting URL to browser.
  4. For emulating Nginx local setup we described steps using ubuntu image there: Dockerfile.nginx. The Dockerfile should not be used on production, it's just a simple example how to set up nginx-extras.
  5. Nginx site config example file described there: default.site.conf.

Optional

You can also generate Nginx locations config blocks for media files by running command:

docker  compose exec backend python manage.py secure_links_nginx_location

Clean up resources

docker compose down

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages