Advertisement
Guest User

Untitled

a guest
Feb 29th, 2020
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1.  
  2. server {
  3. server_name ciclods.it wwww.ciclods.it;
  4.  
  5. location = /favicon.ico { access_log off; log_not_found off; }
  6. location /static/ {
  7. root /home/ciclouser/ciclo_dir;
  8. }
  9.  
  10. location / {
  11. include proxy_params;
  12. proxy_pass http://unix:/run/gunicorn.sock;
  13. }
  14.  
  15. listen 443 ssl; # managed by Certbot
  16. ssl_certificate /etc/letsencrypt/live/ciclods.it/fullchain.pem; # managed by Certbot
  17. ssl_certificate_key /etc/letsencrypt/live/ciclods.it/privkey.pem; # managed by Certbot
  18. include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
  19. ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
  20.  
  21. }
  22. server {
  23. if ($host = ciclods.it) {
  24. return 301 https://$host$request_uri;
  25. } # managed by Certbot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement