Advertisement
Guest User

Untitled

a guest
Feb 19th, 2021
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.85 KB | None | 0 0
  1. server {
  2.   server_name popify.eddapps.com;
  3.  
  4.   location /static {
  5.     alias /home/slado122/projects/pop_master/static;
  6.   }
  7.  
  8.   location / {
  9.     proxy_pass http://localhost:8000;
  10.     include /etc/nginx/proxy_params;
  11.     proxy_redirect off;
  12.   }
  13.  
  14.  
  15.     listen 443 ssl; # managed by Certbot
  16.     ssl_certificate /etc/letsencrypt/live/popify.eddapps.com/fullchain.pem; # managed by Certbot
  17.     ssl_certificate_key /etc/letsencrypt/live/popify.eddapps.com/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 = popify.eddapps.com) {
  24.         return 301 https://$host$request_uri;
  25.     } # managed by Certbot
  26.  
  27.  
  28.   server_name popify.eddapps.com;
  29.     listen 80;
  30.     return 404; # managed by Certbot
  31.  
  32.  
  33. }
  34.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement