Advertisement
Guest User

domain.com

a guest
Mar 15th, 2019
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.58 KB | None | 0 0
  1. server {
  2.     # Update this line to be your domain
  3.     server_name domain.com;
  4.  
  5.     # These shouldn't need to be changed
  6.     listen 80 default_server;
  7.     listen [::]:80;
  8.     return 301 https://$host$request_uri;
  9. }
  10.  
  11. server {
  12.     # Update this line to be your domain
  13.     server_name domain.com;
  14.     root /Users/alex/www/;
  15.     index index.html index.htm;
  16.     listen 443 ssl;
  17.     listen [::]:443 ssl;
  18.     ssl_certificate /etc/letsencrypt/live/domain.com/fullchain.pem; # managed by Certbot
  19.     ssl_certificate_key /etc/letsencrypt/live/domain.com/privkey.pem; # managed by Certbot
  20.     include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
  21.     ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
  22.  
  23.     add_header Strict-Transport-Security "max-age=31536000" always;
  24.    
  25.     location ~ \.php$ {
  26.         fastcgi_pass   127.0.0.1:9000;
  27.         fastcgi_buffers 256 128k;
  28.         fastcgi_connect_timeout 300s;
  29.         fastcgi_send_timeout 300s;
  30.         fastcgi_read_timeout 300s;
  31.         fastcgi_param   SCRIPT_FILENAME /Users/alex/www$fastcgi_script_name;
  32.         include        fastcgi_params;
  33.     }
  34.  
  35.     location /RPC2 {
  36.         include scgi_params;
  37.         scgi_pass 127.0.0.1:5000;
  38.     }
  39.  
  40.  
  41.     location /sonarr/ {
  42.         proxy_pass        http://127.0.0.1:8989;
  43.         proxy_set_header  X-Real-IP  $remote_addr;
  44.         proxy_set_header        Host            $host;
  45.         proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
  46.         proxy_set_header        X-Forwarded-Proto $scheme;
  47.         proxy_redirect off;
  48.     }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement