Last active
July 29, 2024 21:18
-
-
Save Lauriy/8e1b7445c070479e371cc0bf9fe97258 to your computer and use it in GitHub Desktop.
Nginx reverse proxy in front of a WSGI socket
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream django_rik_proovitoo { | |
server unix:///home/rik/rik_proovitöö/run/app.sock; | |
} | |
server { | |
listen 443 ssl http2; | |
listen [::]:443 ssl http2; | |
server_name rik.indoorsman.ee; | |
ssl_certificate /etc/letsencrypt/live/rik.indoorsman.ee/fullchain.pem; | |
ssl_certificate_key /etc/letsencrypt/live/rik.indoorsman.ee/privkey.pem; | |
ssl_trusted_certificate /etc/letsencrypt/live/rik.indoorsman.ee/chain.pem; | |
include nginxconfig.io/security.conf; | |
location /static/ { | |
alias /home/rik/rik_proovitöö/static_collected/; | |
} | |
location / { | |
uwsgi_pass django_rik_proovitoo; | |
include uwsgi_params; | |
} | |
include nginxconfig.io/general.conf; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment