Nginx Reverse Proxy | Django Deployment | Docker | Staticfiles

Поделиться
HTML-код
  • Опубликовано: 20 окт 2024
  • The Docker Nginx Mastery Series focuses on building and administrating Nginx services. In this tutorial we focus on create a reverse proxy, deploying a Django application with Gunicorn.
    Repository:
    github.com/ver...

Комментарии • 55

  • @sumit1234567891011
    @sumit1234567891011 Год назад +1

    After wasting 2 days, I found this video it solved my problem. Thanks a lot.

  • @majestif
    @majestif 2 года назад +3

    Awesome series! Looking forward to the next parts, especially on caching. Thanks for your videos.

    • @veryacademy
      @veryacademy  2 года назад +1

      Caching up next, won't be too long. Its bank holidays here in UK so got family and what not, try to get the next instalment out on Tuesday/Wednesday

  • @akira_asahi
    @akira_asahi Год назад +1

    Thank you for the video. For me this gunicorn / nginx thing is too much. You made it much easier to understand.

  • @AndresGonzalez-hn6mz
    @AndresGonzalez-hn6mz 2 года назад +1

    Thank you so much for this video. I have watched so many hours on nginx looking for a solution to an error, and you sir explain things so well and thoroughly, that better than fixing, I understood more deeply and was able to troubleshoot.

  • @koala280
    @koala280 2 года назад

    This video just broke my 5 hours of trial and error (or only error) streak. Tank you soo much. If somebody else got a problem with installing mysqlclient just add following line in Dockerfile of the django app between copy requirements and pip install requirements: RUN apk add gcc musl-dev mariadb-connector-c-dev

  • @_mrmark
    @_mrmark 9 месяцев назад +1

    Спасибо. Ура, наконец-то у меня получилось подключить статику!

  • @MarkusEicher70
    @MarkusEicher70 10 месяцев назад

    Hi there. Many thanks for this demonstration on how to setup nginx as a proxy for Django. 🤛 I appreciate your content and I'm looking forward to the next videos I want to optimize this for production use for my personal websites.

  • @samucancld
    @samucancld 2 года назад

    best video in the subject by FAR, thanks man

  • @edwinguevara8803
    @edwinguevara8803 2 года назад

    Thank you so much! This video tutorial has been very useful and easy to understand.
    Kudos!

  • @gailleamolong9149
    @gailleamolong9149 Год назад +1

    underrated channel ngl

  • @takharamazanpolat7610
    @takharamazanpolat7610 Год назад

    Thank you, very clear explanation!

  • @jorgec8323
    @jorgec8323 2 года назад +2

    Thank you for always doing great content, this is insanely good. I am always surprised by the quality of this content, I wonder will you ever do anything related to Django and Caching?

    • @veryacademy
      @veryacademy  2 года назад +1

      Intro to Caching is the next tutorial with Nginx. I will then turn to a run of tutorials about deployment with Nginx and Django on DigitalOcean. Thank you for reminding me about Django Caching! I have a list of well over 100 Django tutorials, I will get it done eventually.

    • @jorgec8323
      @jorgec8323 2 года назад +1

      @@veryacademy You are just amazing!

    • @veryacademy
      @veryacademy  2 года назад

      Thank you Jorge, we all are amazing!

  • @sonnix31
    @sonnix31 2 года назад

    Thank you sir, very much appreciated.

  • @annahri
    @annahri 2 года назад +1

    You deserve more subs and views!

  • @ailuros_
    @ailuros_ 2 года назад +1

    Thanks for subtitling the video :)

  • @ajmalmuhammed490
    @ajmalmuhammed490 Год назад +1

    this is really great tutorial, could you please include react production build serving through nginx

  • @MartinMoll-hw4dn
    @MartinMoll-hw4dn 4 месяца назад

    Hi! Congrats for the video and one question: this solution ensures that a django web serverver application can execute requests to third party servers like google firebase auth? Thanks

  • @farhadshakibaca
    @farhadshakibaca 2 года назад

    Thank you so much for this video

  • @miguelvasquez9849
    @miguelvasquez9849 11 месяцев назад

    Is it recommended that Django project files and static files be in a volume?

  • @biscotty6669
    @biscotty6669 Год назад

    docker-compose build is failing with 'module 'dotenv' has no attribute 'dotenv_values''" . I can run the django app manually and it spins up fine. But docker-compose gives that error.

  • @alessandroscimone5463
    @alessandroscimone5463 2 года назад +1

    really fantastic!

  • @pietroaminpuddu7388
    @pietroaminpuddu7388 2 года назад

    Securing the containerized Django application (SSL) and deploying it would be a great continuation.

    • @veryacademy
      @veryacademy  2 года назад

      Next up is Django with secure link example then ssl probably with digital ocean. Then we move to api gateway

    • @pietroaminpuddu7388
      @pietroaminpuddu7388 2 года назад

      ​@@veryacademy Just a question. Is out there some guide for SSL and Deploying which follows the project structure you are using in this video? Thanks a lot :)

  • @DM-ww9wf
    @DM-ww9wf Год назад

    Hi Zander, 2 questions...
    - I noticed @21:00 at the top of your docker-compose file there's no " version: 'x.y' '" which I thought was required - assuming its not and just best practice? If this is not entered what is the default, latest?
    - Using the code ( @21:00 ) that is working in your video, I get an error "Additional property env_file is not allowed"... I have the latest installation of docker and at the time of this comment the video is 6 months old. Any idea why this is occurring?
    Thanks

    • @DM-ww9wf
      @DM-ww9wf Год назад

      Q1 - still relevant.
      Q2 - my bad... improper indenting caused this error.

  • @uh.d959
    @uh.d959 Год назад

    thank you!!!! Files that didn't work with nginx are being read.

  • @gurhangoktas6618
    @gurhangoktas6618 2 года назад

    Thanks you for videos. They are very helpfull for learning . I have a question. Have you any video or example for django - docker - gunicron - nginx about internal redirect for secure media files. I cant able to publish my secure media files with this setup and react frontend. If you havent create any content yet about that , it would be very helpfull. Thank you for i learned everything from you.

  • @md5alx
    @md5alx 2 года назад

    Thank you. SSL is work ??

  • @brunomachado8571
    @brunomachado8571 2 года назад +1

    Awesome tutorial! One question :) after I have everything up and running I notice I dont know the pass and user name you have for enter django admin page. I watch the tutorial more than once and you dont refer it anywhere...could you please tell what are those? thank you

    • @veryacademy
      @veryacademy  2 года назад

      User: admin Pass: admin

    • @veryacademy
      @veryacademy  2 года назад

      If not let me know, try admin and password

    • @brunomachado8571
      @brunomachado8571 2 года назад

      @@veryacademy no Mate, none worked :)
      Can you also post the link to the first tutorial? The one with static html files?
      Thank you in advance.
      Definitely the best explained tutorial I´ve found about this subject. I´ve leaned more from this one tutorial, tahn from a thousand others.

    • @brunomachado8571
      @brunomachado8571 2 года назад

      Another thing, when I try to create superuser I get ALLOWED_HOSTS = os.environ.get("ALLOWED_HOSTS").split(" ")
      AttributeError: 'NoneType' object has no attribute 'split'
      Would you be so kind as to provide a solution? :)

    • @anselmobd
      @anselmobd 2 года назад

      ​@@brunomachado8571 Hi! The os.environ.get is not finding the ALLOWED_HOSTS environment variable, so it returned None, than has no attribute 'split'.

  • @user1491
    @user1491 8 месяцев назад +1

    Oops, after I use nginx according to these instructions for the static files, the messages via Celery no longer work.

    • @veryacademy
      @veryacademy  8 месяцев назад

      Hmm, sorry, I can't help with this; let me know if you find out what the problem is.

    • @user1491
      @user1491 8 месяцев назад

      @@veryacademy I found out that when I access the app via nginx, the async messages from Redis are not returned. Redis blocks them. If I have defined a port and access the app via this port bypassing nginx, there are no problems. I'll have a look at ....

    • @user1491
      @user1491 8 месяцев назад

      @@veryacademy I found out that when I access the app via nginx, the async messages from Redis are not returned. Redis blocks them. If I have defined a port and access the app via this port bypassing nginx, there are no problems. I'll have a look at ....
      I'm using Channels ...

    • @user1491
      @user1491 8 месяцев назад

      I have noticed that nginx does not forward the messages from channels-redis. If I also create a port in the yml file and bypass nginx, I receive my messages from channels-redis, but not via port 80 (nginx). Sorry, I use channels-redis, not celery ...

  • @MDAbdurRahimcs50
    @MDAbdurRahimcs50 Год назад

    Great video on the internet, I learn a lot, but I want to add SSL to my application, can you make a video on How to add SSL?

  • @ibrahimoglu
    @ibrahimoglu 2 года назад +1

    👍

  • @biscotty6669
    @biscotty6669 Год назад +1

    I'm really enjoying this series. Thank you. I'm stuck at around 10 mins into this video. I can't get past the "Forbidden" problem. If I look in the container I can see that /usr/share/nginx/html/main/index.html does exist. (If it makes any difference I'm working on my own remote server which I control via ssh. Everything has worked fine until now though.) I'd appreciate any help because I'm anxious to move forward.

    • @veryacademy
      @veryacademy  Год назад

      hmmm sorry i cant really suggest anything here for you!

    • @biscotty6669
      @biscotty6669 Год назад

      @@veryacademy Thanks for the reply. I actually posted in the wrong place but anyway I worked through it. Having another issue now.