Advertisement
rogersjcaleb

nevarious.thestinkytofu.com

Aug 24th, 2022
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. ##
  2. # Virtual Host Configs
  3. ##
  4. # It looks like this forces all requests to be https
  5. server {
  6. listen 80;
  7. listen [::]:80;
  8.  
  9. server_name nefarious.thestinkytofu.com www.nefarious.thestinkytofu.com;
  10. return 301 https://$server_name$request_uri;
  11. }
  12.  
  13. server {
  14. server_name nefarious.thestinkytofu.com;
  15.  
  16. gzip on;
  17.  
  18. location / {
  19. proxy_pass http://localhost:8000/;
  20. proxy_http_version 1.1;
  21. proxy_set_header Upgrade $http_upgrade;
  22. proxy_set_header Connection 'upgrade';
  23. proxy_set_header Host $host;
  24. proxy_cache_bypass $http_upgrade;
  25. }
  26.  
  27.  
  28. listen 443 ssl;
  29. listen [::]:443 ssl;
  30.  
  31. ssl_certificate /etc/letsencrypt/live/nefarious.thestinkytofu.com/fullchain.pem; # CHANGE ME
  32. ssl_certificate_key /etc/letsencrypt/live/nefarious.thestinkytofu.com/privkey.pem; # CHANGE ME
  33. include /etc/letsencrypt/options-ssl-nginx.conf;
  34. }
  35.  
  36.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement