Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- server_name wishlistsprod.com;
- location = /favicon.ico { access_log off; log_not_found off; }
- location /static/ {
- root /home/vokler/wishlist-server/wishlist;
- }
- location /media/ {
- root /home/vokler/wishlist-server/wishlist;
- }
- location / {
- include proxy_params;
- proxy_pass http://unix:/run/gunicorn.sock;
- }
- listen 443 ssl; # managed by Certbot
- ssl_certificate /etc/letsencrypt/live/wishlistsprod.com/fullchain.pem; # managed by Certbot
- ssl_certificate_key /etc/letsencrypt/live/wishlistsprod.com/privkey.pem; # managed by Certbot
- include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
- ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
- }
- server {
- if ($host = wishlistsprod.com) {
- return 301 https://$host$request_uri;
- } # managed by Certbot
- listen 80;
- server_name wishlistsprod.com;
- return 404; # managed by Certbot
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement