daily pastebin goal
30%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2.     listen 80;
  3.     server_name radarr.sudoash.tv;
  4.  
  5.     include letsencrypt;
  6.  
  7.     location / {
  8.         return 301 https://$host$request_uri;
  9.     }
  10. }
  11.  
  12. server {
  13.     listen 443 ssl http2;
  14.  
  15.     ssl_certificate /usr/local/etc/certbot/live/sudoash.tv/fullchain.pem;
  16.     ssl_certificate_key /usr/local/etc/certbot/live/sudoash.tv/privkey.pem;
  17.  
  18.     include ssl-params;
  19.  
  20.     server_name radarr.sudoash.tv;
  21.  
  22.     access_log /usr/local/var/log/nginx/radarr.sudoash.tv.access.log;
  23.     error_log /usr/local/var/log/nginx/radarr.sudoash.tv.error.log;
  24.  
  25.     location / {
  26.      proxy_pass  http://localhost:7878;
  27.      proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
  28.      proxy_redirect off;
  29.      proxy_buffering off;
  30.      proxy_set_header        Host            $host;
  31.      proxy_set_header        X-Real-IP       $remote_addr;
  32.      proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
  33.    }
  34. }
RAW Paste Data
Top