Skip to content

Instantly share code, notes, and snippets.

@toraritte
Created January 31, 2023 04:22
Show Gist options
  • Select an option

  • Save toraritte/d750a6c7d265bdf80e77dc49eaf200c0 to your computer and use it in GitHub Desktop.

Select an option

Save toraritte/d750a6c7d265bdf80e77dc49eaf200c0 to your computer and use it in GitHub Desktop.

Revisions

  1. toraritte created this gist Jan 31, 2023.
    33 changes: 33 additions & 0 deletions django-https-deploy.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,33 @@
    + [django set up https - Google Search](https://www.google.com/search?q=django+set+up+https&oq=django+set+up+https&aqs=chrome..69i57j0i13i512j0i8i13i30j0i390l3j69i60.4372j0j7&sourceid=chrome&ie=UTF-8#ip=1)
    + [Setting up SSL in settings.py - Using Django - Django Forum](https://forum.djangoproject.com/t/setting-up-ssl-in-settings-py/7147)
    + [tls - Trying to make a Django-based site use HTTPS-only, not sure if it's secure? - Information Security Stack Exchange](https://security.stackexchange.com/questions/8964/trying-to-make-a-django-based-site-use-https-only-not-sure-if-its-secure)
    + [How to deploy an HTTPS-only site, with Django/nginx? - Stack Overflow](https://stackoverflow.com/questions/8153875/how-to-deploy-an-https-only-site-with-django-nginx)
    + [Django Tutorial Part 11: Deploying Django to production - Learn web development | MDN](https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Deployment)
    + [Securely Deploy a Django App With Gunicorn, Nginx, & HTTPS – Real Python](https://realpython.com/django-nginx-gunicorn/)
    + [How To Deploy Django App with Nginx, Gunicorn, PostgreSQL and Let's Encrypt SSL on Ubuntu](https://djangocentral.com/deploy-django-with-nginx-gunicorn-postgresql-and-lets-encrypt-ssl-on-ubuntu/)
    + [permissions - What is the www-data user? - Ask Ubuntu](https://askubuntu.com/questions/873839/what-is-the-www-data-user)
    + [How To Set Up Django with Postgres, Nginx, and Gunicorn on Ubuntu 20.04 | DigitalOcean](https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-20-04)
    + [what is a systemd socket file - Google Search](https://www.google.com/search?q=what+is+a+systemd+socket+file&oq=what+is+a+systemd+socket+file&aqs=chrome..69i57j69i64.4251j0j7&sourceid=chrome&ie=UTF-8)
    + [What is systemd's target, service and socket? - Unix & Linux Stack Exchange](https://unix.stackexchange.com/questions/159462/what-is-systemds-target-service-and-socket)
    + [systemd for Administrators, Part 1](http://0pointer.de/blog/projects/systemd-for-admins-1.html)
    + [Initial Server Setup with Ubuntu 20.04 | DigitalOcean](https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-20-04)
    + [postgres create application user using a script securely - Google Search](https://www.google.com/search?q=postgres+create+application+user+using+a+script+securely&oq=postgres+create+application+user+using+a+script+securely&aqs=chrome..69i57j0i546j0i30i546l2j0i546.18608j0j9&sourceid=chrome&ie=UTF-8)
    + [postgresql - Securely create role in Postgres using SQL script and environment variables - Stack Overflow](https://stackoverflow.com/questions/72985242/securely-create-role-in-postgres-using-sql-script-and-environment-variables)
    + [severalnines.com | 521: Web server is down](https://severalnines.com/database-blog/how-automate-deployment-postgresql-database/)
    + [Databases | Django documentation | Django](https://docs.djangoproject.com/en/4.1/ref/databases/#optimizing-postgresql-s-configuration)
    + [PostgreSQL: Documentation: 15: 8.5. Date/Time Types](https://www.postgresql.org/docs/current/datatype-datetime.html)
    + [PostgreSQL: Documentation: 15: 13.2. Transaction Isolation](https://www.postgresql.org/docs/current/transaction-iso.html)
    + [Getting Started - Let's Encrypt](https://letsencrypt.org/getting-started/)
    + [Certbot](https://certbot.eff.org/)
    + [RFC 8555: Automatic Certificate Management Environment (ACME)](https://www.rfc-editor.org/rfc/rfc8555)
    + [Understanding Different SSL/TLS Certificate Types - The SSL Store™](https://www.thesslstore.com/knowledgebase/ssl-support/understanding-different-certificate-types/)
    + [letsencrypt certbot setup with nixos nix nix-shell - Google Search](https://www.google.com/search?q=letsencrypt+certbot+setup+with+nixos+nix+nix-shell&sxsrf=AJOqlzXhejBr12R1u4Rtv8_Z1kvUj_fZtQ%3A1675099900625&ei=_P7XY4PlJeqoptQPlsuOCA&ved=0ahUKEwiD06i06e_8AhVqlIkEHZalAwEQ4dUDCBE&uact=5&oq=letsencrypt+certbot+setup+with+nixos+nix+nix-shell&gs_lcp=Cgxnd3Mtd2l6LXNlcnAQAzIFCAAQogQyBQgAEKIEMgUIABCiBDIFCAAQogQ6CggAEEcQ1gQQsAM6BwgjELACECc6BwgAEB4QogRKBAhBGABKBAhGGABQjA1Yj0dg0UhoCHABeAKAAeUDiAG4LJIBCjUuMjMuNS4xLjGYAQCgAQHIAQjAAQE&sclient=gws-wiz-serp)
    + [Gunicorn - Python WSGI HTTP Server for UNIX](https://gunicorn.org/#deployment)
    + [Settings — Gunicorn 20.1.0 documentation](https://docs.gunicorn.org/en/latest/settings.html)
    + [Configuration Overview — Gunicorn 20.1.0 documentation](https://docs.gunicorn.org/en/latest/configure.html)
    + [Running Gunicorn — Gunicorn 20.1.0 documentation](https://docs.gunicorn.org/en/latest/run.html)
    + [PasteDeploy Configuration Files — The Pyramid Web Framework v2.0.1](https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/paste.html)
    + [Paste Deployment — Paste Deploy 3.0.1 documentation](https://docs.pylonsproject.org/projects/pastedeploy/en/latest/index.html)
    + [rakyll/hey: HTTP load generator, ApacheBench (ab) replacement](https://github.com/rakyll/hey)
    + [systemd - What is the difference between "systemctl start" and "systemctl enable"? - Ask Ubuntu](https://askubuntu.com/questions/733469/what-is-the-difference-between-systemctl-start-and-systemctl-enable)
    + [Documentation - Let's Encrypt](https://letsencrypt.org/docs/)